Hello can anyone help me I am having problem in running sudo apt update in the 22.04. No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.1 LTS Release: 22.04 Codename: jammy
$ sudo apt update
Hit:1 https://dl.google.com/linux/chrome/deb stable InRelease
Ign:2 http://security.ubuntu.com/ubuntu impish-security InRelease
Hit:3 http://packages.microsoft.com/repos/code stable InRelease
Hit:4 https://download.docker.com/linux/ubuntu jammy InRelease
Ign:5 http://old-releases.ubuntu.com/ubuntu jammy InRelease
Hit:7 https://packages.cloud.google.com/apt cloud-sdk InRelease
Err:8 http://security.ubuntu.com/ubuntu impish-security Release
404 Not Found [IP: 2001:67c:1562::15 80]
Ign:9 http://old-releases.ubuntu.com/ubuntu jammy-updates InRelease
Hit:6 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu jammy InRelease
Hit:10 https://packages.cloud.google.com/apt kubernetes-xenial InRelease
Ign:11 http://old-releases.ubuntu.com/ubuntu jammy-backports InRelease
Ign:12 https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 InRelease
Ign:13 http://old-releases.ubuntu.com/ubuntu jammy-security InRelease
Hit:14 https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 Release
Err:15 http://old-releases.ubuntu.com/ubuntu jammy Release
404 Not Found [IP: 2001:67c:1562::25 80]
Err:16 http://old-releases.ubuntu.com/ubuntu jammy-updates Release
404 Not Found [IP: 2001:67c:1562::25 80]
Err:18 http://old-releases.ubuntu.com/ubuntu jammy-backports Release
404 Not Found [IP: 2001:67c:1562::25 80]
Err:20 http://old-releases.ubuntu.com/ubuntu jammy-security Release
404 Not Found [IP: 2001:67c:1562::25 80]
Hit:19 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease
Hit:21 https://deb.nodesource.com/node_18.x jammy InRelease
Reading package lists... Done
E: The repository 'http://security.ubuntu.com/ubuntu impish-security Release' no longer has 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.
E: The repository 'http://old-releases.ubuntu.com/ubuntu jammy 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.
E: The repository 'http://old-releases.ubuntu.com/ubuntu jammy-updates 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.
E: The repository 'http://old-releases.ubuntu.com/ubuntu jammy-backports 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.
E: The repository 'http://old-releases.ubuntu.com/ubuntu jammy-security 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.
After running this, Hello I had follow this sudo mv /etc/apt/sources.list /etc/apt/sources.list.old gksudo gedit /etc/apt/sources.list Copy/paste all the text from the newly generated sources.list to this file. Save it and close Gedit. Now, update apt. sudo apt-get update Now I getting this in my terminal,
sudo apt update
Hit:1 https://download.docker.com/linux/ubuntu jammy InRelease
Hit:2 http://packages.microsoft.com/repos/code stable InRelease
Ign:3 https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 InRelease
Hit:4 https://dl.google.com/linux/chrome/deb stable InRelease
Hit:5 https://deb.nodesource.com/node_18.x jammy InRelease
Hit:7 https://packages.cloud.google.com/apt cloud-sdk InRelease
Get:8 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Hit:9 http://archive.canonical.com/ubuntu jammy InRelease
Hit:6 https://packages.cloud.google.com/apt kubernetes-xenial InRelease
Hit:10 http://archive.ubuntu.com/ubuntu jammy InRelease
Hit:11 https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 Release
Hit:12 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:14 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:13 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu jammy InRelease
Ign:15 http://security.ubuntu.com/ubuntu impish-security InRelease
Err:16 http://security.ubuntu.com/ubuntu impish-security Release
404 Not Found [IP: 2001:67c:1562::18 80]
Hit:17 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease
Reading package lists... Done
E: The repository 'http://security.ubuntu.com/ubuntu impish-security Release' no longer has 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.
Now this I have when i run sudo nano etc/apt/sources/list
deb http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu jammy-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu jammy partner
cp /etc/apt/sources.list /etc/apt/sources.list.bak
and thissudo sed -i -re 's/([a-z]{2}.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
and then run sudo apt-get update && sudo apt-get dist-upgrade and this happen – GCT Sep 15 '22 at 10:02http://old-releases.ubuntu.com/ubuntu jammy
need to be changed tohttp://archive.ubuntu.com/
, as well as all lines that contain the impish release need to either be removed, or disabled (ie. commented out with a "#" at the start of the line) – guiverc Sep 15 '22 at 10:02vim
orvi
) if it was me, but a GUI tool can be used too if using a desktop system. – guiverc Sep 15 '22 at 10:12Now, update apt.
sudo apt-get update
– GCT Sep 15 '22 at 10:21/etc/apt/sources.list.d
) that includes the linehttp://security.ubuntu.com/ubuntu impish-security
. Find it and remove it! – Artur Meinild Sep 15 '22 at 11:07/etc/apt/sources.list.d/
is a directory and not a file... The primary sources are found in/etc/apt/sources.list
but other files can be added by users on the system inside the directory/etc/apt/sources.list.d/
which is empty on a clean install – guiverc Sep 15 '22 at 11:11nano
you're using cannot do this (sorry I don't use it)... As that directory is empty on a new install; any files & thus names of files within it will have been given by users of your system who havesudo
permissions... so you'll have to ask those users, or look what's in there yourself (or ask an administrator of that system to look) – guiverc Sep 15 '22 at 12:43