Problem with Software Updater

After upgrade to jammy from focal.
software updater lists ccc the gnu compiler collection - base package, ( as a security update) but will not let me tick it for downloading.
I have tried apt-get update and get the following readout:-
Hit:1 Index of /ubuntu jammy InRelease
Hit:2 Index of /ubuntu jammy-updates InRelease
Hit:3 Index of /ubuntu xenial-updates InRelease
Hit:4 Index of /ubuntu xenial-security InRelease
Hit:5 Index of /ubuntu jammy-security InRelease
Ign:6 Index of /stable/deb/ stable InRelease
Hit:7 Index of /stable/deb/ stable Release
Hit:8 Index of /ubuntu jammy-security InRelease
Reading package lists... Done
W: http://gb.archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
Can any body help?

sudo cp /etc/apt/trusted.gpg /etc/apt/trusted.gpg.d/

4 Likes

Thank you, that appears to have fixed it.

1 Like

Correction, I am still getting the same problem. Any ideas?

I should have written to move the file ... since it is copied, just sudo rm /etc/apt/trusted.gpg

sudo apt update should be clean.

1 Like

@duncan why do you have these lines? your release is jammy (22.04)

1 Like

I have no idea, but do not know how to get rid of them

Use the update Manager and look for the repos you have, if you see anything with xenial, remove.

Thank you for your continued help, I did that in the first instance. I have since re-done and tried apt upgrade, and get the following:-
sonyuser@SonyVaio:~$ sudo apt update
Hit:1 Index of /ubuntu jammy InRelease
Hit:2 Index of /ubuntu jammy-updates InRelease
Hit:3 Index of /ubuntu xenial-updates InRelease
Get:4 Index of /ubuntu xenial-security InRelease [99.8 kB]
Hit:5 Index of /ubuntu jammy-security InRelease
Ign:6 Index of /stable/deb/ stable InRelease
Hit:7 Index of /stable/deb/ stable Release
Get:8 Index of /ubuntu jammy-security InRelease [110 kB]
Fetched 210 kB in 2s (132 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
sonyuser@SonyVaio:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done

News about significant security updates, features and services will

appear here to raise awareness and perhaps tease /r/Linux :wink:

Use 'pro config set apt_news=false' to hide this and future APT news.

The following packages have been kept back:
gcc-10-base gcc-10-base:i386
0 to upgrade, 0 to newly install, 0 to remove and 2 not to upgrade.
sonyuser@SonyVaio:~$

P.S I have removed all xenial from updater manager

I still see those lines ...

Yep, me to, despite having removed xenial from update manager. I'm confused

Your jammy repos should be in /etc/apt/sources.list Look in this file to make sure there are no xenial references. If they are, insert # as the first char to comment them out. There is also a dir, /etc/apt/sources.list.d/ which may contain other repos (files ending in .list) If they are not needed, remove them. Since all this happens in the /etc/apt dir, you need to use sudo.

sudo apt update should be clean and without any refs to xenial.

6 Likes

Done all that, and got rid of Xenial, Thank you for the spring cleaning tips!

4 Likes