4

I am getting the following error message while running sudo apt update on Ubuntu 22.04 LTS

Hit:1 http://in.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:3 http://in.archive.ubuntu.com/ubuntu jammy-updates InRelease
Ign:4 http://security.ubuntu.com/ubuntu impish-security InRelease
Hit:5 http://in.archive.ubuntu.com/ubuntu jammy-backports InRelease
Err:6 http://security.ubuntu.com/ubuntu impish-security Release
  404  Not Found [IP: 2620:2d:4000:1::16 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.

This is the contents of my /etc/apt/sources.list file

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://in.archive.ubuntu.com/ubuntu/ jammy main restricted

deb-src http://in.archive.ubuntu.com/ubuntu/ jammy main restricted

Major bug fix updates produced after the final release of the

distribution.

deb http://in.archive.ubuntu.com/ubuntu/ jammy-updates main restricted

deb-src http://in.archive.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://in.archive.ubuntu.com/ubuntu/ jammy universe

deb-src http://in.archive.ubuntu.com/ubuntu/ jammy universe

deb http://in.archive.ubuntu.com/ubuntu/ jammy-updates universe

deb-src http://in.archive.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://in.archive.ubuntu.com/ubuntu/ jammy multiverse

deb-src http://in.archive.ubuntu.com/ubuntu/ jammy multiverse

deb http://in.archive.ubuntu.com/ubuntu/ jammy-updates multiverse

deb-src http://in.archive.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://in.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse

deb-src http://in.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu jammy-security main restricted #deb-src http://security.ubuntu.com/ubuntu jammy-security main restricted deb http://security.ubuntu.com/ubuntu jammy-security universe

deb-src http://security.ubuntu.com/ubuntu jammy-security universe

deb http://security.ubuntu.com/ubuntu jammy-security multiverse

deb-src http://security.ubuntu.com/ubuntu jammy-security multiverse

This system was installed using small removable media

(e.g. netinst, live or single CD). The matching "deb cdrom"

entries were disabled at the end of the installation process.

For information about how to configure apt package sources,

see the sources.list(5) manual.

I am somewhat new to Ubuntu and have so far tried every solution I could find on the internet. But still I am not able to fix this issue. Any help will be greatly appreciated.

Rahul Vk
  • 43
  • 1
  • 1
  • 4

2 Answers2

7

It seems that some old repositories from 21.10 are still on the list, even after you've upgraded.

/etc/apt/sources.list is only one of the lists that apt-get uses. In order to see if there are other lists that contain any impish repository, run this on a terminal;

grep -nvr "^#" /etc/apt/ | grep impish

If this command outputs anything, comment out by adding # at the beginning of those lines, or delete the whole line. Where these lines are will be given at the beginning of the output at every line.

0

i got the same problem. solved it by remove all character before ".archive" like this:

deb http://in.archive.ubuntu.com/ubuntu/

--->

deb http://archive.ubuntu.com/ubuntu
muru
  • 207,228
mral29
  • 1