Osmc update doesn't works - solved!

Hi.
My update doesn’t works automatically.

When i run it manually then i am getting this messages.

osmc@osmc:~$ sudo apt-get update

Hit:8 http://dl.ubnt.com/unifi/debian stable InRelease
Reading package lists… Done
E: The repository ‘Index of /osmc/osmc/download/dev/gmc ./ Release’ does not have a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
osmc@osmc:~$ sudo apt-get dist-upgrade
Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
osmc@osmc:~$

https://paste.osmc.tv/cowiyexano

Please help.

Looks like you were running the nightly versions at some stage. (A long time ago as that looks like a krypton nightly link)

Edit:

sudo nano /etc/apt/ sources.list

And remove:

deb Index of /osmc/osmc/download/dev/gmc ./

Save and then rerun:

sudo apt-get update
sudo apt-get dist-upgrade

The source list is empty!!!

warn… there’s a space after apt/…

Try to edit this files whit a FTP client it’s a good alternative…

This my it’s:

deb http://ftp.debian.org/debian stretch main contrib non-free

deb http://ftp.debian.org/debian/ stretch-updates main contrib non-free

deb http://security.debian.org/ stretch/updates main contrib non-free

deb http://apt.osmc.tv stretch main

#deb http://apt.osmc.tv stretch-devel main

deb http://www.deb-multimedia.org stretch main non-free

deb-src http://www.deb-multimedia.org stretch main non-free

If you thinks you need…

Hhm strange. Permission denied.
Trying with the default osmc user and pw via winscp.

typos in file name, should be

sudo nano /etc/apt/sources.list

(plural of source, no blanks in path)

My problem is that i can’t save the changes in the file now.
Seems to be that i need to run it with root pw, which i don’t remember :frowning:

Just login via ssh and do sudo nano /etc/apt/sources.list

1 Like

And don’t use fausto’s example. It contains extraneous sources not provided by osmc which could create problems later.

2 Likes

here is a clean sources.list:

deb http://ftp.debian.org/debian stretch main contrib non-free

deb http://ftp.debian.org/debian/ stretch-updates main contrib non-free

deb http://security.debian.org/ stretch/updates main contrib non-free

deb http://apt.osmc.tv stretch main

Thanks this has worked for me :slight_smile:
My sources.list looks exactly the same now!

oh… exactly. I don’t remember because i add the deb-multimedia source… i thinks right now i can remove :slight_smile:
I have also the devel commented out if i need…