syncthing.net not an acceptable filetype ??

echo "deb https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list
nigel@nigel-VirtualBox:~$ sudo apt-get install apt-transport-https
Reading package lists... Done
Building dependency tree       
Reading state information... Done
apt-transport-https is already the newest version (1.6.12ubuntu0.1).
The following packages were automatically installed and are no longer required:
  efibootmgr libegl1-mesa libfwup1 libwayland-egl1-mesa
  linux-headers-5.3.0-46 linux-headers-5.3.0-46-generic
  linux-image-5.3.0-46-generic linux-modules-5.3.0-46-generic
  linux-modules-extra-5.3.0-46-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
N: Ignoring file 'syncthing.net' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
nigel@nigel-VirtualBox:~$ 

WHat can I do to remove this error???

Many thanks for any assistance.

BD

Remove the erroneously created file with the name it complains about.

1 Like

Thank you for your reply. But the filename is part of the installation procedure. So why is it now incorrectly named ( did not like the file extension) syncthing.net is the name of the file

BD

No it isn’t. syncthing.list is. syncthing.net being a file in that directory is obviously the result of user’s error (most likely mistyping a command).

The command used was echo “deb https://apt.syncthing.net/ syncthing stable” | sudo tee /etc/apt/sources.list.d/syncthing.list

Iused copy and past.

Taken from https://www.linuxbabe.com/ubuntu/install-syncthing-ubuntu-desktop-server

This page is in no way part of official Syncthing documentation.

This command does not create a syncthing.net file in /etc/apt/sources/list.d/, so this was definitely not the command that provoked the situation.

1 Like

Ok so I looked under aptsyncthingnet
and they give the same installation procedure at the one from linusbabe.

Add the release PGP keys:

curl -s https://syncthing.net/release-key.txt | sudo apt-key add -

Add the “stable” channel to your APT sources:

echo “deb https://apt.syncthing.net/ syncthing stable” | sudo tee /etc/apt/sources.list.d/syncthing.list

Update and install syncthing:

sudo apt-get update sudo apt-get install syncthing

I cannot see what is going wrong. I suppose I could delete the syncthing-list and retry - but I cannot see where things are going wrong.

Don’t you get it? You have a file called syncthing.net in your /etc/apt/sources.list.d/. It shouldn’t be there. No one knows why you created it. Delete that file. Leave syncthing.list alone.

I thought I made it very very clear that I did not create the file syncthing.net . I followed the install using cut and paste.I wrote that too. I have no idea why the file was created and I need to know why. looking at my history file there is nothing there that would create the file.

Well, I think your own system made it very clear you have that file, and that’s your problem:

I assumed you’ve created it, but maybe it was someone else with access to your machine. Maybe even Russian hackers…