Update issues

Hi
On start up I sometimes get an error message saying something about an internal error. Now my laptop is running slow and occasionally crashing.

I realised I haven’t had an update for a long time, so tried to update via the ‘Software Updater’, which “Failed to download repository information”. Internet connection is fine.

I tried, with my very limited knowledge, via the terminal – Auto-remove, dist upgrade – which returns several error messages, such as:

Err:1 Index of /ubuntu xenial-updates/main amd64 isc-dhcp-client amd64 4.3.3-5ubuntu12.4
404 Not Found [IP: 91.189.88.161 80]

The 404 message seems most ‘insistent’.

Any advice would be gratefully received.

Thanks

Can you run:

gedit /etc/apt/sources.list

and post the contents of the file that opens


Also run these commands in sequence:

sudo apt-get update

then

sudo apt-get upgrade

then

sudo apt-get dist-upgrade

then REBOOT.

Did that get rid of the message ?

deb cdrom:[Ubuntu 12.04.3 LTS Precise Pangolin - Release amd64 (20130820.1)]/ dists/precise/main/binary-i386/

deb cdrom:[Ubuntu 12.04.3 LTS Precise Pangolin - Release amd64 (20130820.1)]/ dists/precise/restricted/binary-i386/

deb cdrom:[Ubuntu 12.04.3 LTS Precise Pangolin - Release amd64 (20130820.1)]/ precise main restricted

See UpgradeNotes - Community Help Wiki for how to upgrade to

newer versions of the distribution.

deb Index of /ubuntu xenial main restricted
deb-src Index of /ubuntu xenial main restricted

Major bug fix updates produced after the final release of the

distribution.

deb Index of /ubuntu xenial-updates main restricted
deb-src Index of /ubuntu xenial-updates main restricted

N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu

team. Also, please note that software in universe WILL NOT receive any

review or updates from the Ubuntu security team.

deb Index of /ubuntu xenial universe
deb-src Index of /ubuntu xenial universe
deb Index of /ubuntu xenial-updates universe
deb-src Index of /ubuntu xenial-updates universe

N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu

team, and may not be under a free licence. Please satisfy yourself as to

your rights to use the software. Also, please note that software in

multiverse WILL NOT receive any review or updates from the Ubuntu

security team.

deb Index of /ubuntu xenial multiverse
deb-src Index of /ubuntu xenial multiverse
deb Index of /ubuntu xenial-updates multiverse
deb-src Index of /ubuntu xenial-updates multiverse

N.B. software from this repository may not have been tested as

extensively as that contained in the main release, although it includes

newer versions of some applications which may provide useful features.

Also, please note that software in backports WILL NOT receive any review

or updates from the Ubuntu security team.

deb Index of /ubuntu xenial-backports main restricted universe multiverse
deb-src Index of /ubuntu xenial-backports main restricted universe multiverse

deb Index of /ubuntu xenial-security main restricted
deb-src Index of /ubuntu xenial-security main restricted
deb Index of /ubuntu xenial-security universe
deb-src Index of /ubuntu xenial-security universe
deb Index of /ubuntu xenial-security multiverse
deb-src Index of /ubuntu xenial-security multiverse

Uncomment the following two lines to add software from Canonical’s

‘partner’ repository.

This software is not part of Ubuntu, but is offered by Canonical and the

respective vendors as a service to Ubuntu users.

deb Index of /ubuntu precise partner

deb-src Index of /ubuntu precise partner

deb http://archive.canonical.com/ xenial partner
deb-src http://archive.canonical.com/ xenial partner

The commands you suggested return the same error after the first one.

Which I’m guessing is because it looks like I’m trying to update a version that is not supported ???

Have you added any PPA’s ?

What’s the output from:

for X in /etc/apt/sources.list.d/*.list; do echo; echo; echo "** $X:"; echo; cat $X; done

and

for APT in `find /etc/apt/ -name \*.list`; do grep -o "^deb http://ppa.launchpad.net/[a-z0-9\-]\+/[a-z0-9\-]\+" $APT | while read ENTRY ; do USER=`echo $ENTRY | cut -d/ -f4` PPA=`echo $ENTRY | cut -d/ -f5` ; echo ppa:$USER/$PPA ; done ; done

Can you also post the output from:

dpkg -l | grep isc-dhcp-client

** /etc/apt/sources.list.d/fossfreedom-rhythmbox-plugins-precise.list:

deb Index of /fossfreedom/rhythmbox-plugins/ubuntu trusty main # disabled on upgrade to trusty

deb-src Index of /fossfreedom/rhythmbox-plugins/ubuntu trusty main # disabled on upgrade to trusty

** /etc/apt/sources.list.d/fossfreedom-rhythmbox-plugins-precise.list.distUpgrade:

deb Index of /fossfreedom/rhythmbox-plugins/ubuntu trusty main # disabled on upgrade to trusty

deb-src Index of /fossfreedom/rhythmbox-plugins/ubuntu trusty main # disabled on upgrade to trusty

** /etc/apt/sources.list.d/google-earth.list:

THIS FILE IS AUTOMATICALLY CONFIGURED

You may comment out this entry, but any other modifications may be lost.

deb http://dl.google.com/linux/earth/deb/ stable main # disabled on upgrade to xenial

** /etc/apt/sources.list.d/google-earth.list.distUpgrade:

THIS FILE IS AUTOMATICALLY CONFIGURED

You may comment out this entry, but any other modifications may be lost.

deb http://dl.google.com/linux/earth/deb/ stable main

** /etc/apt/sources.list.d/google-earth.list.save:

THIS FILE IS AUTOMATICALLY CONFIGURED

You may comment out this entry, but any other modifications may be lost.

deb http://dl.google.com/linux/earth/deb/ stable main

** /etc/apt/sources.list.d/jockey.list:

deb http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 main # disabled on upgrade to trusty

** /etc/apt/sources.list.d/jockey.list.distUpgrade:

deb http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 main # disabled on upgrade to trusty

** /etc/apt/sources.list.d/jockey.list.save:

deb http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 main

** /etc/apt/sources.list.d/tualatrix-ppa-precise.list:

deb Index of /tualatrix/ppa/ubuntu trusty main # disabled on upgrade to trusty

deb-src Index of /tualatrix/ppa/ubuntu trusty main # disabled on upgrade to trusty

** /etc/apt/sources.list.d/tualatrix-ppa-precise.list.distUpgrade:

deb Index of /tualatrix/ppa/ubuntu trusty main # disabled on upgrade to trusty

deb-src Index of /tualatrix/ppa/ubuntu trusty main # disabled on upgrade to trusty

** /etc/apt/sources.list.d/tualatrix-ppa-precise.list.save:

deb Index of /tualatrix/ppa/ubuntu precise main
deb-src Index of /tualatrix/ppa/ubuntu precise main

for APT in find /etc/apt/ -name \*.list; do grep -o “^deb http://ppa.launchpad.net/[a-z0-9\-]\+/[a-z0-9\-]\+” $APT | while read ENTRY ; do USER=echo $ENTRY | cut -d/ -f4 PPA=echo $ENTRY | cut -d/ -f5 ; echo ppa:$USER/$PPA ; done ; done

Returns nothing.

dpkg -l | grep isc-dhcp-client Returns:

ii isc-dhcp-client 4.3.3-5ubuntu12.3 amd64 DHCP client for automatically obtaining an IP address

4.3.3-5ubuntu12.3
and indeed
4.3.3-5ubuntu12.4

aren’t in the default repos … so you’ve installed it from somewhere, probably a PPA.

What happens if you run:

sudo apt-get install isc-dhcp-client=4.3.3-5ubuntu12.6

?

E: Version ‘4.3.3-5ubuntu12.6’ for ‘isc-dhcp-client’ was not found

Looking in the settings of the updater, I noticed the ‘source code’ box was not checked. I enabled this and now the updater works, but after hitting ‘install’ a dialogue box appears: Requires installation of untrusted packages.

I tried the update again from the terminal, which again failed.

:-\

run:

sudo apt-get update

then

sudo apt-get install isc-dhcp-client=4.3.3-5ubuntu12.6

because 12.6 is DEFINITELY in the xenial-updates repo … and you appear to have that enabled.

Software updater appeared automatically when I logged on this morning, but with the same warning about ‘untrusted packages’ . I closed it and followed those instructions via the terminal.

I did Still no joy:

Get:1 http://gb.archive.ubuntu.com/ubuntu xenial InRelease [247 kB] Get:2 http://archive.canonical.com xenial InRelease [11.5 kB] Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB] Ign:2 http://archive.canonical.com xenial InRelease Get:4 http://gb.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB] Ign:1 http://gb.archive.ubuntu.com/ubuntu xenial InRelease Ign:4 http://gb.archive.ubuntu.com/ubuntu xenial-updates InRelease Get:5 http://gb.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB] Ign:5 http://gb.archive.ubuntu.com/ubuntu xenial-backports InRelease Ign:3 http://security.ubuntu.com/ubuntu xenial-security InRelease Fetched 565 kB in 0s (622 kB/s) Reading package lists... Done W: GPG error: http://archive.canonical.com xenial InRelease: At least one invalid signature was encountered. W: The repository 'http://archive.canonical.com xenial InRelease' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: http://gb.archive.ubuntu.com/ubuntu xenial InRelease: At least one invalid signature was encountered. W: The repository 'http://gb.archive.ubuntu.com/ubuntu xenial InRelease' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: http://gb.archive.ubuntu.com/ubuntu xenial-updates InRelease: At least one invalid signature was encountered. W: The repository 'http://gb.archive.ubuntu.com/ubuntu xenial-updates InRelease' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: http://gb.archive.ubuntu.com/ubuntu xenial-backports InRelease: At least one invalid signature was encountered. W: The repository 'http://gb.archive.ubuntu.com/ubuntu xenial-backports InRelease' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: http://security.ubuntu.com/ubuntu xenial-security InRelease: At least one invalid signature was encountered. W: The repository 'http://security.ubuntu.com/ubuntu xenial-security InRelease' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details.

What’s the output from:

ls -al /etc/apt/trusted.gpg.d

and

ls -al /etc/apt/sources.list.d

Thanks for your perseverance on this, Mark. 8)

First output:
drwxr-xr-x 2 root root 4096 Apr 25 2014 .
drwxr-xr-x 6 root root 4096 Jul 30 2016 …
-rw------- 1 root root 1216 Feb 22 2014 jockey-drivers.gpg
-rw------- 1 root root 0 Feb 22 2014 jockey-drivers.gpg~

Second output:
drwxr-xr-x 2 root root 4096 Feb 11 14:39 .
drwxr-xr-x 6 root root 4096 Jul 30 2016 …
-rw-r–r-- 1 root root 228 Feb 11 14:39 fossfreedom-rhythmbox-plugins-precise.list
-rw-r–r-- 1 root root 228 Jul 29 2016 fossfreedom-rhythmbox-plugins-precise.list.distUpgrade
-rw-r–r-- 1 root root 228 Feb 11 14:39 fossfreedom-rhythmbox-plugins-precise.list.save
-rw-r–r-- 1 root root 209 Feb 11 14:39 google-earth.list
-rw-r–r-- 1 root root 175 Jul 29 2016 google-earth.list.distUpgrade
-rw-r–r-- 1 root root 209 Feb 11 14:39 google-earth.list.save
-rw-r–r-- 1 root root 102 Feb 11 14:39 jockey.list
-rw-r–r-- 1 root root 102 Jul 29 2016 jockey.list.distUpgrade
-rw-r–r-- 1 root root 102 Feb 11 14:39 jockey.list.save
-rw-r–r-- 1 root root 196 Feb 11 14:39 tualatrix-ppa-precise.list
-rw-r–r-- 1 root root 196 Jul 29 2016 tualatrix-ppa-precise.list.distUpgrade
-rw-r–r-- 1 root root 196 Feb 11 14:39 tualatrix-ppa-precise.list.save

What’s the output from:

cat /etc/apt/sources.list.d/jockey.list

deb http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 main # disabled on upgrade to trusty

Okay, open a terminal and run these commands in sequence:

cd /etc/apt/sources.list.d

then

sudo rm -v jockey.list

then

sudo rm -v jockey.list.save

then

sudo rm -v jockey.list.distUpgrade

then

cd /etc/apt/trusted.gpg.d

then

sudo rm -v jockey-drivers.gpg

then

sudo rm -v jockey-drivers.gpg~

now do you still get errors from:

sudo apt-get update

That’s done it, Mark. Thank you so much for your help. 8)

.

You’re most welcome :slight_smile: