On a Ubuntu 21.04 the sudo apt update
command generates console ouput as follows:
barium@berta$ sudo apt update
...
Ign:3 http://security.debian.org stable/updates InRelease
Err:4 http://security.debian.org stable/updates Release
404 Not Found [IP: 2a04:4e42:6c::644 80]
...
Hit:9 http://archive.ubuntu.com/ubuntu hirsute-security InRelease
Reading package lists... Done
E: The repository 'http://security.debian.org stable/updates 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.
Manual changes to the Ubuntu Software & Updates Manager produce the same error message.
The /etc/apt/sources.list
contains among others the following deb statements:
barium@berta$ cat /etc/apt/sources.list
...
deb http://archive.ubuntu.com/ubuntu hirsute-security main restricted
deb http://archive.ubuntu.com/ubuntu hirsute-security universe
deb http://archive.ubuntu.com/ubuntu hirsute-security multiverse
...
In an answer to a similar post it was suggested to replace 'archive.ubuntu.com' and 'security.ubuntu.com' with 'old-releases.ubuntu.com'. That didn't work.
security.debian.org
in the/etc/apt/sources.list
as well as files in the folder/etc/apt/sources.list.d
that refers to Debian. – user68186 Nov 16 '21 at 16:14apt
&dpkg
cannot tell which packages are foreign or local - they upgrade to the latest available in the sources. It looks to me that you're using a Debian system & not a Ubuntu one.ubuntu-security-status
may provide some clues but I'd explore what you were running, and what you're now running as it may be neither - a frakensystem with bits of both & no longer either Ubuntu or Debian. – guiverc Nov 16 '21 at 22:01Might there be multiple sources.list files and if so where or how will I find them? In sources.list.d and elsewhere?
– barium Nov 17 '21 at 16:47