Score:0

Getting 404 not found when I do sudo update Ubuntu Server 22.04

vn flag

I am getting the following error when I try to update the apt repository in Ubuntu Server 22.04

channaveer@channaveer:~$ sudo apt update
Ign:1 http://old-releases.ubuntu.com/ubuntu jammy InRelease
Ign:2 http://security.ubuntu.com/ubuntu impish-security InRelease
Ign:3 http://old-releases.ubuntu.com/ubuntu jammy-updates InRelease
Err:4 http://security.ubuntu.com/ubuntu impish-security Release
  404  Not Found [IP: 91.189.91.38 80]
Ign:5 http://old-releases.ubuntu.com/ubuntu jammy-backports InRelease
Ign:6 http://old-releases.ubuntu.com/ubuntu jammy-security InRelease
Err:7 http://old-releases.ubuntu.com/ubuntu jammy Release
  404  Not Found [IP: 91.189.91.124 80]
Err:8 http://old-releases.ubuntu.com/ubuntu jammy-updates Release
  404  Not Found [IP: 91.189.91.124 80]
Err:9 http://old-releases.ubuntu.com/ubuntu jammy-backports Release
  404  Not Found [IP: 91.189.91.124 80]
Err:10 http://old-releases.ubuntu.com/ubuntu jammy-security Release
  404  Not Found [IP: 91.189.91.124 80]
Reading package lists... Done
E: The repository 'http://security.ubuntu.com/ubuntu impish-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.
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.

How can I remove all these error when I do sudo apt update

Following is my **/etc/apt/sources.list**

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://old-releases.ubuntu.com/ubuntu jammy main restricted
# deb-src http://old-releases.ubuntu.com/ubuntu jammy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://old-releases.ubuntu.com/ubuntu jammy-updates main restricted
# deb-src http://old-releases.ubuntu.com/ubuntu jammy-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 http://old-releases.ubuntu.com/ubuntu jammy universe
# deb-src http://old-releases.ubuntu.com/ubuntu jammy universe
deb http://old-releases.ubuntu.com/ubuntu jammy-updates universe
# deb-src http://old-releases.ubuntu.com/ubuntu jammy-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 http://old-releases.ubuntu.com/ubuntu jammy multiverse
# deb-src http://old-releases.ubuntu.com/ubuntu jammy multiverse
deb http://old-releases.ubuntu.com/ubuntu jammy-updates multiverse
# deb-src http://old-releases.ubuntu.com/ubuntu jammy-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 http://old-releases.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
# deb-src http://old-releases.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse

deb http://old-releases.ubuntu.com/ubuntu jammy-security main restricted
# deb-src http://old-releases.ubuntu.com/ubuntu jammy-security main restricted
deb http://old-releases.ubuntu.com/ubuntu jammy-security universe
# deb-src http://old-releases.ubuntu.com/ubuntu jammy-security universe
deb http://old-releases.ubuntu.com/ubuntu jammy-security multiverse
# deb-src http://old-releases.ubuntu.com/ubuntu jammy-security multiverse
David avatar
cn flag
Why are you trying to get files from old-releases? Or from this one? http://security.ubuntu.com/ubuntu impish-security Release
David avatar
cn flag
Remove these entries from the sources list and then try. BTW Impish is 21.10.
Channaveer Hakari avatar
vn flag
@David while installing MongoDB I copied the latest code from MongoDB doc and this issue started.
Channaveer Hakari avatar
vn flag
@David can you please help how can I remove these entries
Channaveer Hakari avatar
vn flag
@David this path /etc/apt/sources.list ?
Score:2
cn flag

Open a terminal.

Edit the file /etc/apt/sources.list and remove the invalid entries for impish and old-release.

sudo nano /etc/apt/sources.list

Save the file and retry apt upgrade.

Channaveer Hakari avatar
vn flag
I removed all the files and added from other ubuntu server. But still I get the same **impish-security** issue. Tried even clearing cache and other stuff but didnt work out. Any help is really appriciated
David avatar
cn flag
Did youy remove this one? Ign:2 http://security.ubuntu.com/ubuntu impish-security InRelease
David avatar
cn flag
By the way if the answer works please accept it. Up vote and accept are different .
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.