Hi- i’m sure this is due to having non-standard things installed, but I don’t know enough to fix it.
Running manual apt-get update and dist-upgrade also result in errors
Can anyone help an idiot? I’ve got too much I need to keep to abandon and restart…
The log is here: https://paste.osmc.tv/idehiguteb
Hi,
Please post these errors.
Thanks Tom.
I think you have just tried to upgrade from Debian ‘Jessie’. This is a two-stage process and may not have completed fully. Try to upgrade again and post any errors as Tom suggests.
1 Like
Thanks.
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Mar 29 16:31:34 2018 from cpc128788-hawk17-2-0-cust76.know.cable.virginm.net
Updating APT cache. Please be patient.
apt-get update was unsuccessful. If you are planning to install a package, please run apt-get update first and verify it was successful
osmc@osmc:~$ sudo apt-get update Hit http://linux-packages.resilio.com resilio-sync InRelease
Ign http://ftp.debian.org jessie InRelease
Hit http://ftp.debian.org jessie-updates InRelease
Hit http://security.debian.org jessie/updates InRelease
Get:1 http://linux-packages.getsync.com btsync InRelease [3749 B]
Hit https://dtcooper.github.io jessie InRelease
Hit http://ftp.debian.org jessie Release.gpg
Get:2 http://linux-packages.resilio.com resilio-sync/non-free armel Packages [479 B]
Hit http://apt.osmc.tv jessie InRelease
Hit http://ftp.debian.org jessie Release
Get:3 http://linux-packages.resilio.com resilio-sync/non-free armhf Packages [479 B]
Get:4 http://ftp.debian.org jessie-updates/main armel Packages/DiffIndex [10.9 kB]
Ign http://linux-packages.resilio.com resilio-sync/non-free Translation-en
Hit http://ftp.debian.org jessie-updates/contrib armel Packages
Get:5 http://ftp.debian.org jessie-updates/non-free armel Packages/DiffIndex [736 B]
Get:6 http://ftp.debian.org jessie-updates/main armhf Packages/DiffIndex [10.9 kB]
Hit http://ftp.debian.org jessie-updates/contrib armhf Packages
Get:7 http://ftp.debian.org jessie-updates/non-free armhf Packages/DiffIndex [736 B]
Hit http://ftp.debian.org jessie-updates/contrib Translation-en
Get:8 http://ftp.debian.org jessie-updates/main Translation-en/DiffIndex [3688 B]
Get:9 http://ftp.debian.org jessie-updates/non-free Translation-en/DiffIndex [736 B]
Ign http://linux-packages.getsync.com btsync InRelease
Ign http://linux-packages.getsync.com btsync/non-free armel Packages/DiffIndex
Ign http://linux-packages.getsync.com btsync/non-free armhf Packages/DiffIndex
Hit http://security.debian.org jessie/updates/non-free armel Packages
Hit http://security.debian.org jessie/updates/non-free armhf Packages
Get:10 http://linux-packages.getsync.com btsync/non-free armel Packages [476 B]
Get:11 http://linux-packages.getsync.com btsync/non-free armhf Packages [474 B]
Hit http://security.debian.org jessie/updates/non-free Translation-en
Ign http://linux-packages.getsync.com btsync/non-free Translation-en
Hit http://security.debian.org jessie/updates/main armel Packages
Hit http://security.debian.org jessie/updates/contrib armel Packages
Hit http://security.debian.org jessie/updates/main armhf Packages
Hit http://security.debian.org jessie/updates/contrib armhf Packages
Hit http://security.debian.org jessie/updates/contrib Translation-en
Hit http://security.debian.org jessie/updates/main Translation-en
Hit http://ftp.debian.org jessie/main armel Packages
Hit http://ftp.debian.org jessie/contrib armel Packages
Hit http://ftp.debian.org jessie/non-free armel Packages
Hit http://ftp.debian.org jessie/main armhf Packages
Hit http://ftp.debian.org jessie/contrib armhf Packages
Hit http://ftp.debian.org jessie/non-free armhf Packages
Hit http://ftp.debian.org jessie/contrib Translation-en
Hit http://ftp.debian.org jessie/main Translation-en
(Reading database … 28079 files and directories currently installed.)
Preparing to unpack …/resilio-sync_2.5.12-1_armel.deb …
W: GPG error: http://linux-packages.getsync.com btsync InRelease: The following signatures were invalid: KEYEXPIRED 1513951194 KEYEXPIRED 1513951194 KEYEXPIRED 1513951194 KEYEXPIRED 1513951194 KEYEXPIRED 1513951194
W: Failed to fetch http://apt.osmc.tv/dists/jessie/InRelease Unable to find
osmc@osmc:~$ sudo apt-get update Hit http://linux-packages.resilio.com resilio-sync InRelease
Ign http://ftp.debian.org jessie InRelease
Hit http://ftp.debian.org jessie-updates InRelease
Hit http://security.debian.org jessie/updates InRelease
Get:1 http://linux-packages.getsync.com btsync InRelease [3749 B]
Hit https://dtcooper.github.io jessie InRelease
Hit http://ftp.debian.org jessie Release.gpg
Get:2 http://linux-packages.resilio.com resilio-sync/non-free armel Packages [479 B]
Hit http://apt.osmc.tv jessie InRelease
Hit http://ftp.debian.org jessie Release
Get:3 http://linux-packages.resilio.com resilio-sync/non-free armhf Packages [479 B]
Get:4 http://ftp.debian.org jessie-updates/main armel Packages/DiffIndex [10.9 kB]
Hit http://ftp.debian.org jessie-updates/contrib armel Packages
Ign http://linux-packages.getsync.com btsync InRelease
Get:5 http://ftp.debian.org jessie-updates/non-free armel Packages/DiffIndex [736 B]
Get:6 http://ftp.debian.org jessie-updates/main armhf Packages/DiffIndex [10.9 kB]
Hit http://ftp.debian.org jessie-updates/contrib armhf Packages
Get:7 http://ftp.debian.org jessie-updates/non-free armhf Packages/DiffIndex [736 B]
Hit http://ftp.debian.org jessie-updates/contrib Translation-en
Hit http://security.debian.org jessie/updates/non-free armel Packages
Get:8 http://ftp.debian.org jessie-updates/main Translation-en/DiffIndex [3688 B]
Get:9 http://ftp.debian.org jessie-updates/non-free Translation-en/DiffIndex [736 B]
Hit http://security.debian.org jessie/updates/non-free armhf Packages
Hit http://security.debian.org jessie/updates/non-free Translation-en
Hit http://security.debian.org jessie/updates/main armel Packages
Ign http://linux-packages.getsync.com btsync/non-free armel Packages/DiffIndex
Hit http://security.debian.org jessie/updates/contrib armel Packages
Hit http://security.debian.org jessie/updates/main armhf Packages
Hit http://security.debian.org jessie/updates/contrib armhf Packages
Ign http://linux-packages.resilio.com resilio-sync/non-free Translation-en
Hit http://security.debian.org jessie/updates/contrib Translation-en
Hit http://security.debian.org jessie/updates/main Translation-en
Ign http://linux-packages.getsync.com btsync/non-free armhf Packages/DiffIndex
Hit http://ftp.debian.org jessie/main armel Packages
Hit http://ftp.debian.org jessie/contrib armel Packages
Hit http://ftp.debian.org jessie/non-free armel Packages
Hit http://ftp.debian.org jessie/main armhf Packages
Hit http://ftp.debian.org jessie/contrib armhf Packages
Hit http://ftp.debian.org jessie/non-free armhf Packages
Hit http://ftp.debian.org jessie/contrib Translation-en
Hit http://ftp.debian.org jessie/main Translation-en
Hit http://ftp.debian.org jessie/non-free Translation-en
Get:10 http://linux-packages.getsync.com btsync/non-free armel Packages [476 B]
Get:11 http://linux-packages.getsync.com btsync/non-free armhf Packages [474 B]
Ign http://linux-packages.getsync.com btsync/non-free Translation-en
Fetched 33.3 kB in 13s (2417 B/s)
W: GPG error: http://linux-packages.getsync.com btsync InRelease: The following signatures were invalid: KEYEXPIRED 1513951194 KEYEXPIRED 1513951194 KEYEXPIRED 1513951194 KEYEXPIRED 1513951194 KEYEXPIRED 1513951194
W: Failed to fetch http://apt.osmc.tv/dists/jessie/InRelease Unable to find expected entry ‘main/binary-armel/Packages’ in Release file (Wrong sources.list entry or malformed file)
W: Failed to fetch https://dtcooper.github.io/raspotify/dists/jessie/InRelease Unable to find expected entry ‘main/binary-armel/Packages’ in Release file (Wrong sources.list entry or malformed file)
E: Some index files failed to download. They have been ignored, or old ones used instead.
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:~$
Here are the logs
https://paste.osmc.tv/hobepuvezi
Please run the following and show us the output:
ls -l /etc/apt/sources.list.d
sudo find /var/lib/apt/lists -type f -delete
sudo apt-get update
ls -l /var/lib/apt/lists
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Mar 29 20:40:18 2018 from 192.168.0.4
osmc@osmc:~$ ls -l /etc/apt/sources.list.d
total 12
-rw-r--r-- 1 root root 65 Sep 5 2017 btsync.list
-rw-r--r-- 1 root root 53 Mar 29 15:51 raspotify.list
-rw-r--r-- 1 root root 77 Oct 24 20:45 resilio-sync.list
osmc@osmc:~$ sudo find /var/lib/apt/lists -type f -delete
osmc@osmc:~$ sudo apt-get update
Ign http://ftp.debian.org jessie InRelease
Get:1 http://ftp.debian.org jessie-updates InRelease [145 kB]
Get:2 http://security.debian.org jessie/updates InRelease [63.1 kB]
Get:3 http://linux-packages.getsync.com btsync InRelease [3749 B]
Get:4 http://linux-packages.resilio.com resilio-sync InRelease [3764 B]
Get:5 http://apt.osmc.tv jessie InRelease [4669 B]
Get:6 http://ftp.debian.org jessie Release.gpg [2434 B]
Get:7 http://ftp.debian.org jessie Release [148 kB]
Get:8 https://dtcooper.github.io jessie InRelease [1703 B]
Ign http://linux-packages.getsync.com btsync InRelease
Get:9 http://linux-packages.resilio.com resilio-sync/non-free armel Packages [479 B]
Get:10 http://linux-packages.resilio.com resilio-sync/non-free armhf Packages [479 B]
Get:11 http://ftp.debian.org jessie-updates/contrib armel Packages [32 B]
Get:12 http://ftp.debian.org jessie-updates/contrib armhf Packages [32 B]
Get:13 http://ftp.debian.org jessie-updates/contrib Translation-en [14 B]
Get:14 http://ftp.debian.org jessie-updates/main Translation-en [14.9 kB]
Get:15 http://ftp.debian.org jessie-updates/non-free Translation-en [496 B]
Get:16 http://ftp.debian.org jessie-updates/main armel Packages [20.6 kB]
Get:17 http://ftp.debian.org jessie-updates/non-free armel Packages [512 B]
Get:18 http://ftp.debian.org jessie-updates/main armhf Packages [20.1 kB]
Get:19 http://security.debian.org jessie/updates/main armel Packages [500 kB]Get:20 http://ftp.debian.org jessie-updates/non-free armhf Packages [516 B]
Get:21 http://security.debian.org jessie/updates/contrib armel Packages [1138 B]
Ign http://linux-packages.resilio.com resilio-sync/non-free Translation-en
Get:22 http://security.debian.org jessie/updates/non-free armel Packages [14 B]
Get:23 http://ftp.debian.org jessie/main armel Packages [6647 kB]
Get:24 http://security.debian.org jessie/updates/main armhf Packages [495 kB]Get:25 http://linux-packages.getsync.com btsync/non-free armel Packages [476 B]
Get:26 http://linux-packages.getsync.com btsync/non-free armhf Packages [474 B]
Get:27 http://security.debian.org jessie/updates/contrib armhf Packages [1138 B]
Get:28 http://security.debian.org jessie/updates/non-free armhf Packages [14 B]
Get:29 http://security.debian.org jessie/updates/contrib Translation-en [1211 B]
Get:30 http://security.debian.org jessie/updates/main Translation-en [258 kB]Ign http://linux-packages.getsync.com btsync/non-free Translation-en
Get:31 http://security.debian.org jessie/updates/non-free Translation-en [14 B]
Get:32 http://ftp.debian.org jessie/contrib armel Packages [36.7 kB]
Get:33 http://ftp.debian.org jessie/non-free armel Packages [59.7 kB]
Get:34 http://ftp.debian.org jessie/main armhf Packages [6644 kB]
Get:35 http://ftp.debian.org jessie/contrib armhf Packages [37.8 kB]
Get:36 http://ftp.debian.org jessie/non-free armhf Packages [62.5 kB]
Get:37 http://ftp.debian.org jessie/contrib Translation-en [38.3 kB]
Get:38 http://ftp.debian.org jessie/main Translation-en [4583 kB]
Get:39 http://ftp.debian.org jessie/non-free Translation-en [72.1 kB]
Fetched 19.9 MB in 25s (773 kB/s)
W: GPG error: http://linux-packages.getsync.com btsync InRelease: The following signatures were invalid: KEYEXPIRED 1513951194 KEYEXPIRED 1513951194 KEYEXPIRED 1513951194 KEYEXPIRED 1513951194 KEYEXPIRED 1513951194
W: Failed to fetch http://apt.osmc.tv/dists/jessie/InRelease Unable to find expected entry 'main/binary-armel/Packages' in Release file (Wrong sources.list entry or malformed file)
W: Failed to fetch https://dtcooper.github.io/raspotify/dists/jessie/InRelease Unable to find expected entry 'main/binary-armel/Packages' in Release file (Wrong sources.list entry or malformed file)
E: Some index files failed to download. They have been ignored, or old ones used instead.
osmc@osmc:~$ ls -l /var/lib/apt/lists
total 95548
-rw-r--r-- 1 root root 4669 Jan 9 21:38 apt.osmc.tv_dists_jessie_InRelease
-rw-r--r-- 1 root root 1703 Mar 24 22:06 dtcooper.github.io_raspotify_dists_jessie_InRelease
-rw-r--r-- 1 root root 145060 Mar 29 15:43 ftp.debian.org_debian_dists_jessie-updates_InRelease
-rw-r--r-- 1 root root 0 Jun 18 2017 ftp.debian.org_debian_dists_jessie-updates_contrib_binary-armel_Packages
-rw-r--r-- 1 root root 0 Jun 18 2017 ftp.debian.org_debian_dists_jessie-updates_contrib_binary-armhf_Packages
-rw-r--r-- 1 root root 0 Jun 18 2017 ftp.debian.org_debian_dists_jessie-updates_contrib_i18n_Translation-en
-rw-r--r-- 1 root root 96349 Feb 11 20:31 ftp.debian.org_debian_dists_jessie-updates_main_binary-armel_Packages
-rw-r--r-- 1 root root 92948 Feb 11 20:31 ftp.debian.org_debian_dists_jessie-updates_main_binary-armhf_Packages
-rw-r--r-- 1 root root 81161 Sep 9 2017 ftp.debian.org_debian_dists_jessie-updates_main_i18n_Translation-en
-rw-r--r-- 1 root root 642 Jun 18 2017 ftp.debian.org_debian_dists_jessie-updates_non-free_binary-armel_Packages
-rw-r--r-- 1 root root 642 Jun 18 2017 ftp.debian.org_debian_dists_jessie-updates_non-free_binary-armhf_Packages
-rw-r--r-- 1 root root 768 Jun 18 2017 ftp.debian.org_debian_dists_jessie-updates_non-free_i18n_Translation-en
-rw-r--r-- 1 root root 148406 Dec 9 10:27 ftp.debian.org_debian_dists_jessie_Release
-rw-r--r-- 1 root root 2434 Dec 9 10:31 ftp.debian.org_debian_dists_jessie_Release.gpg
-rw-r--r-- 1 root root 137750 Jul 22 2017 ftp.debian.org_debian_dists_jessie_contrib_binary-armel_Packages
-rw-r--r-- 1 root root 143015 Jul 22 2017 ftp.debian.org_debian_dists_jessie_contrib_binary-armhf_Packages
-rw-r--r-- 1 root root 143707 Jul 22 2017 ftp.debian.org_debian_dists_jessie_contrib_i18n_Translation-en
-rw-r--r-- 1 root root 33209073 Dec 9 10:00 ftp.debian.org_debian_dists_jessie_main_binary-armel_Packages
-rw-r--r-- 1 root root 33199795 Dec 9 10:00 ftp.debian.org_debian_dists_jessie_main_binary-armhf_Packages
-rw-r--r-- 1 root root 22370951 Dec 9 10:00 ftp.debian.org_debian_dists_jessie_main_i18n_Translation-en
-rw-r--r-- 1 root root 239196 Jul 22 2017 ftp.debian.org_debian_dists_jessie_non-free_binary-armel_Packages
-rw-r--r-- 1 root root 255747 Jul 22 2017 ftp.debian.org_debian_dists_jessie_non-free_binary-armhf_Packages
-rw-r--r-- 1 root root 309533 May 6 2017 ftp.debian.org_debian_dists_jessie_non-free_i18n_Translation-en
-rw-r--r-- 1 root root 3749 Jul 7 2016 linux-packages.getsync.com_btsync_deb_dists_btsync_Release
-rw-r--r-- 1 root root 683 Jul 7 2016 linux-packages.getsync.com_btsync_deb_dists_btsync_non-free_binary-armel_Packages
-rw-r--r-- 1 root root 683 Jul 7 2016 linux-packages.getsync.com_btsync_deb_dists_btsync_non-free_binary-armhf_Packages
-rw-r--r-- 1 root root 3764 Mar 2 10:51 linux-packages.resilio.com_resilio-sync_deb_dists_resilio-sync_InRelease
-rw-r--r-- 1 root root 705 Mar 2 10:51 linux-packages.resilio.com_resilio-sync_deb_dists_resilio-sync_non-free_binary-armel_Packages
-rw-r--r-- 1 root root 705 Mar 2 10:51 linux-packages.resilio.com_resilio-sync_deb_dists_resilio-sync_non-free_binary-armhf_Packages
-rw-r----- 1 root root 0 Mar 29 21:24 lock
drwxr-xr-x 2 root root 4096 Mar 29 21:25 partial
-rw-r--r-- 1 root root 63113 Mar 29 20:52 security.debian.org_dists_jessie_updates_InRelease
-rw-r--r-- 1 root root 3066 Feb 23 2017 security.debian.org_dists_jessie_updates_contrib_binary-armel_Packages
-rw-r--r-- 1 root root 3066 Feb 23 2017 security.debian.org_dists_jessie_updates_contrib_binary-armhf_Packages
-rw-r--r-- 1 root root 4825 Feb 23 2017 security.debian.org_dists_jessie_updates_contrib_i18n_Translation-en
-rw-r--r-- 1 root root 2757843 Mar 29 15:01 security.debian.org_dists_jessie_updates_main_binary-armel_Packages
-rw-r--r-- 1 root root 2727733 Mar 29 15:01 security.debian.org_dists_jessie_updates_main_binary-armhf_Packages
-rw-r--r-- 1 root root 1611765 Mar 28 10:10 security.debian.org_dists_jessie_updates_main_i18n_Translation-en
-rw-r--r-- 1 root root 0 Feb 23 2017 security.debian.org_dists_jessie_updates_non-free_binary-armel_Packages
-rw-r--r-- 1 root root 0 Feb 23 2017 security.debian.org_dists_jessie_updates_non-free_binary-armhf_Packages
-rw-r--r-- 1 root root 0 Feb 23 2017 security.debian.org_dists_jessie_updates_non-free_i18n_Translation-en
osmc@osmc:~$
Ok, for now you’ll need to edit btsync.list and raspotify.list in /etc/apt/sources.list.d and comment out everything by inserting a #
in column 1, then run
dpkg --print-architecture
sudo apt-get update
and show us the output.
Can you also comment out all the lines in resilio-sync.list and run another sudo apt-get update
. For some reason it’s looking for the wrong architecture (armel) on OSMC.
Perhaps we need to clear our the old entries:
sudo find /var/lib/apt/lists -type f -delete
sudo apt-get update
I’ll need to do a bit of research to see why it is looking for the wrong architecture but I’m out of time for today. Perhape someone in a different timezone can take up the reins.
I’m very grateful for the help.
Sleep well!
The answer came to me after I signed off: you have a multi-architecture installation.
The following should allow OSMC to update to Debian stretch, though the other repos we’ll need to deal with separately.
Edit /etc/apt/sources.list
and change the line:
deb http://apt.osmc.tv stretch main
to
deb [arch=armhf] http://apt.osmc.tv stretch main
then run
sudo apt-get update
and with luck the final error should have gone. If so, you can then run
sudo apt-get dist-upgrade
Assuming no problems, you’ll probably need to run:
reboot
sudo apt-get update
sudo apt-get dist-upgrade
It didn’t say quite that, but
Should I still alter that last line? I.e. not stretch
My error. It should have said jessie. So:
Edit /etc/apt/sources.list
and change the line:
deb http://apt.osmc.tv jessie main
to
deb [arch=armhf] http://apt.osmc.tv jessie main
It should update the file to stretch automatically.