christgau / wsdd

A Web Service Discovery host daemon.
MIT License
808 stars 97 forks source link

[Debian 9 stretch] Malformed entry 1 #161

Closed Shohreh closed 1 year ago

Shohreh commented 1 year ago

Hello,

To try and get Windows 10 to see my Debian 9 server running Samba, I tried installing wsdd to see if it solved the problem.

I followed the instructions, but it fails:

wget -O- https://pkg.ltec.ch/public/conf/ltec-ag.gpg.key | gpg --dearmour > /usr/share/keyrings/wsdd.gpg

source /etc/os-release

echo "deb [signed-by=/usr/share/keyrings/wsdd.gpg] https://pkg.ltec.ch/public/ 
${UBUNTU_CODENAME:-${VERSION_CODENAME:-UNKNOWN}} main" > /etc/apt/sources.list.d/wsdd.list

apt update

E: Malformed entry 1 in list file /etc/apt/sources.list.d/wsdd.list (Suite)
E: The list of sources could not be read.

Is there a simple work-around, short of installing Debian 10/11 ?

Thank you.

christgau commented 1 year ago

You should check the content of /etc/apt/sources.list.d/wsdd.list and follow the hint from the error message. You may post the actual content here if you do not find a solution.

Is there a simple work-around, short of installing Debian 10/11 ?

Probably, but Stretch's LTS EOL'ed about half a year ago, if you do not have extended LTS. I would strongly suggest to upgrade.

Shohreh commented 1 year ago

Thanks.

~# cat /etc/apt/sources.list.d/wsdd.list
deb [signed-by=/usr/share/keyrings/wsdd.gpg] https://pkg.ltec.ch/public/
stretch main

~# apt update
E: Malformed entry 1 in list file /etc/apt/sources.list.d/wsdd.list (Suite)
E: The list of sources could not be read.

Does it mean I can't run wsdd on Debian 9.13 (stretch)? If possible, I'd like to upgrade later.

fxrb commented 1 year ago

Are you sure there is a space between the repository's URL and the distribution name stretch?

Shohreh commented 1 year ago

Isn't it what it says in the doc (Debian-based Distributions > Others)?

Anyway, it looks like I have to bite the bullet and install Debian 10/11 since Debian 9 stopped at Python 3.5.3 while wsdd requires Python 3.7.

/tmp/wsdd-master/src# ./wsdd.py
  File "./wsdd.py", line 47
    WSDD_VERSION: str = '0.7.0'
                ^
SyntaxError: invalid syntax