not able to perform update

Asked by Maneesh

maneesh@maneesh-Nitro-AN515-58:~$ sudo apt update
[sudo] password for maneesh:
Hit:1 https://dl.google.com/linux/chrome/deb stable InRelease
Get:2 http://packages.microsoft.com/repos/code stable InRelease [3,569 B]
Ign:3 http://security.ubuntu.com/ubuntu impish-security InRelease
Ign:4 https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 InRelease
Get:5 http://packages.microsoft.com/repos/code stable/main arm64 Packages [66.0 kB]
Err:6 http://security.ubuntu.com/ubuntu impish-security Release
  404 Not Found [IP: 185.125.190.36 80]
Hit:7 http://in.archive.ubuntu.com/ubuntu jammy InRelease
Get:8 http://in.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Get:9 http://packages.microsoft.com/repos/code stable/main amd64 Packages [65.6 kB]
Get:10 http://packages.microsoft.com/repos/code stable/main armhf Packages [66.5 kB]
Ign:11 https://download.docker.com/linux/debian jammy InRelease
Hit:12 https://download.docker.com/linux/ubuntu jammy InRelease
Hit:13 https://repo.skype.com/deb stable InRelease
Hit:14 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy InRelease
Ign:15 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 InRelease
Ign:16 https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 InRelease
Get:17 http://in.archive.ubuntu.com/ubuntu jammy-backports InRelease [108 kB]
Err:18 https://download.docker.com/linux/debian jammy Release
  404 Not Found [IP: 18.155.68.15 443]
Get:19 http://in.archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Hit:20 https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 Release
Get:22 http://in.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [993 kB]
Hit:23 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 Release
Get:25 http://in.archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages [469 kB]
Get:26 http://in.archive.ubuntu.com/ubuntu jammy-updates/main amd64 DEP-11 Metadata [102 kB]
Get:27 http://in.archive.ubuntu.com/ubuntu jammy-updates/main amd64 c-n-f Metadata [14.0 kB]
Get:28 http://in.archive.ubuntu.com/ubuntu jammy-updates/universe i386 Packages [607 kB]
Get:29 http://in.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [899 kB]
Ign:30 https://www.scootersoftware.com bcompare4 InRelease
Get:31 http://in.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 DEP-11 Metadata [269 kB]
Hit:32 https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 Release
Hit:33 https://www.scootersoftware.com bcompare4 Release
Get:36 http://in.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 DEP-11 Metadata [940 B]
Get:37 http://in.archive.ubuntu.com/ubuntu jammy-backports/main amd64 DEP-11 Metadata [7,996 B]
Get:38 http://in.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 DEP-11 Metadata [12.5 kB]
Get:39 http://in.archive.ubuntu.com/ubuntu jammy-security/main amd64 DEP-11 Metadata [41.6 kB]
Get:40 http://in.archive.ubuntu.com/ubuntu jammy-security/main amd64 c-n-f Metadata [9,020 B]
Get:41 http://in.archive.ubuntu.com/ubuntu jammy-security/universe amd64 DEP-11 Metadata [18.5 kB]
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.
W: https://repo.skype.com/deb/dists/stable/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
E: The repository 'https://download.docker.com/linux/debian 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.
W: https://repo.mongodb.org/apt/ubuntu/dists/xenial/mongodb-org/3.6/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: https://repo.mongodb.org/apt/ubuntu/dists/bionic/mongodb-org/4.2/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: https://repo.mongodb.org/apt/ubuntu/dists/focal/mongodb-org/5.0/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the output of:

lsb_release -a; uname -a

Thanks

You have a lot of different distributions named in your sources here

Revision history for this message
Maneesh (maneesh1539) said :
#2

maneesh@maneesh-Nitro-AN515-58:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.2 LTS
Release: 22.04
Codename: jammy

maneesh@maneesh-Nitro-AN515-58:~$ uname -a
Linux maneesh-Nitro-AN515-58 5.19.0-38-generic #39~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 17 21:16:15 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

Thank you,

Yes I tried myself solving it. In that attempt I updated whenever I was prompted. Tbh I had no idea what I was doing. So I ditched that way and am trying to find help from people unlike me, who is able to understand this problem.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

If you run:

sudo egrep -R 'impish|focal|xenial|bionic' /etc/apt/*

What is the output please?

Revision history for this message
Maneesh (maneesh1539) said :
#4

maneesh@maneesh-Nitro-AN515-58:~$ sudo egrep -R 'impish|focal|xenial|bionic' /etc/apt/*
[sudo] password for maneesh:
/etc/apt/sources.list.d/mongodb-org-4.2.list:deb [arch=amd64,arm64] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse
/etc/apt/sources.list.d/impish-security.list:deb http://security.ubuntu.com/ubuntu impish-security main
/etc/apt/sources.list.d/mongodb-org-5.0.list:deb [arch=amd64,arm64] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse
/etc/apt/sources.list.d/mongodb-org-5.0.list.save:deb [arch=amd64,arm64] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse
/etc/apt/sources.list.d/impish-security.list.save:deb http://security.ubuntu.com/ubuntu impish-security main
/etc/apt/sources.list.d/mongodb-org-3.6.list:deb [arch=amd64,arm64] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 multiverse
/etc/apt/sources.list.d/mongodb-org-3.6.list.save:deb [arch=amd64,arm64] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 multiverse
/etc/apt/sources.list.d/mongodb-org-4.2.list.save:deb [arch=amd64,arm64] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

Open a terminal window and execute the following commands:

sudo rm /etc/apt/sources.list.d/impish-security.list
sudo rm /etc/apt/sources.list.d/impish-security.list.save
sudo rm /etc/apt/sources.list.d/mongodb-org-3.6.list
sudo rm /etc/apt/sources.list.d/mongodb-org-3.6.list.save
sudo rm /etc/apt/sources.list.d/mongodb-org-4.2.list
sudo rm /etc/apt/sources.list.d/mongodb-org-4.2.list.save

sudo gedit /etc/apt/sources.list.d/mongodb-org-5.0.list
in the editor window that opens, change all occurrences of "focal" to "jammy" and then save the file and close the editor.

And finally, what is the output of the command

find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

Revision history for this message
Maneesh (maneesh1539) said :
#6

maneesh@maneesh-Nitro-AN515-58:~$ find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

/etc/apt/sources.list

     1 # deb cdrom:[Ubuntu 22.04 LTS _Jammy Jellyfish_ - Release amd64 (20220419)]/ jammy main restricted
     2
     3 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
     4 # newer versions of the distribution.
     5 deb http://in.archive.ubuntu.com/ubuntu/ jammy main restricted
     6 # deb-src http://in.archive.ubuntu.com/ubuntu/ jammy main restricted
     7
     8 ## Major bug fix updates produced after the final release of the
     9 ## distribution.
    10 deb http://in.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
    11 # deb-src http://in.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
    12
    13 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    14 ## team. Also, please note that software in universe WILL NOT receive any
    15 ## review or updates from the Ubuntu security team.
    16 deb http://in.archive.ubuntu.com/ubuntu/ jammy universe
    17 # deb-src http://in.archive.ubuntu.com/ubuntu/ jammy universe
    18 deb http://in.archive.ubuntu.com/ubuntu/ jammy-updates universe
    19 # deb-src http://in.archive.ubuntu.com/ubuntu/ jammy-updates universe
    20
    21 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    22 ## team, and may not be under a free licence. Please satisfy yourself as to
    23 ## your rights to use the software. Also, please note that software in
    24 ## multiverse WILL NOT receive any review or updates from the Ubuntu
    25 ## security team.
    26 deb http://in.archive.ubuntu.com/ubuntu/ jammy multiverse
    27 # deb-src http://in.archive.ubuntu.com/ubuntu/ jammy multiverse
    28 deb http://in.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
    29 # deb-src http://in.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
    30
    31 ## N.B. software from this repository may not have been tested as
    32 ## extensively as that contained in the main release, although it includes
    33 ## newer versions of some applications which may provide useful features.
    34 ## Also, please note that software in backports WILL NOT receive any review
    35 ## or updates from the Ubuntu security team.
    36 deb http://in.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
    37 # deb-src http://in.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
    38
    39 deb http://in.archive.ubuntu.com/ubuntu/ jammy-security main restricted
    40 # deb-src http://security.ubuntu.com/ubuntu jammy-security main restricted
    41 deb http://in.archive.ubuntu.com/ubuntu/ jammy-security universe
    42 # deb-src http://security.ubuntu.com/ubuntu jammy-security universe
    43 deb http://in.archive.ubuntu.com/ubuntu/ jammy-security multiverse
    44 # deb-src http://security.ubuntu.com/ubuntu jammy-security multiverse
    45
    46 # This system was installed using small removable media
    47 # (e.g. netinst, live or single CD). The matching "deb cdrom"
    48 # entries were disabled at the end of the installation process.
    49 # For information about how to configure apt package sources,
    50 # see the sources.list(5) manual.

/etc/apt/sources.list.d/vscode.list

     1 ### THIS FILE IS AUTOMATICALLY CONFIGURED ###
     2 # You may comment out this entry, but any other modifications may be lost.
     3 deb [arch=amd64,arm64,armhf] http://packages.microsoft.com/repos/code stable main

/etc/apt/sources.list.d/skype-stable.list

     1 deb [arch=amd64] https://repo.skype.com/deb stable main

/etc/apt/sources.list.d/mongodb-org-5.0.list

     1 deb [arch=amd64,arm64] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/5.0 multiverse

/etc/apt/sources.list.d/docker.list

     1 deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu jammy stable

/etc/apt/sources.list.d/archive_uri-https_download_docker_com_linux_debian-jammy.list

     1 deb [arch=amd64] https://download.docker.com/linux/debian jammy stable
     2 # deb-src [arch=amd64] https://download.docker.com/linux/debian jammy stable

/etc/apt/sources.list.d/scootersoftware.list

     1 deb [signed-by=/usr/share/keyrings/scootersoftware-keyring.gpg] https://www.scootersoftware.com/ bcompare4 non-free

/etc/apt/sources.list.d/google-chrome.list

     1 ### THIS FILE IS AUTOMATICALLY CONFIGURED ###
     2 # You may comment out this entry, but any other modifications may be lost.
     3 deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main

/etc/apt/sources.list.d/deadsnakes-ubuntu-ppa-jammy.list

     1 deb https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu/ jammy main
     2 # deb-src https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu/ jammy main
maneesh@maneesh-Nitro-AN515-58:~$

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

This looks better. If you run:

sudo apt update

Is it now smooth?

Revision history for this message
Maneesh (maneesh1539) said :
#8

The errors have reduced

maneesh@maneesh-Nitro-AN515-58:~$ sudo apt update
[sudo] password for maneesh:
Hit:1 https://dl.google.com/linux/chrome/deb stable InRelease
Get:2 http://packages.microsoft.com/repos/code stable InRelease [3,569 B]
Ign:3 https://download.docker.com/linux/debian jammy InRelease
Get:4 http://packages.microsoft.com/repos/code stable/main arm64 Packages [66.1 kB]
Hit:5 https://download.docker.com/linux/ubuntu jammy InRelease
Hit:6 http://in.archive.ubuntu.com/ubuntu jammy InRelease
Hit:7 https://repo.skype.com/deb stable InRelease
Get:8 http://packages.microsoft.com/repos/code stable/main armhf Packages [66.5 kB]
Get:9 http://in.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Err:10 https://download.docker.com/linux/debian jammy Release
  404 Not Found [IP: 54.192.150.13 443]
Get:11 http://packages.microsoft.com/repos/code stable/main amd64 Packages [65.7 kB]
Ign:12 https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/5.0 InRelease
Get:13 http://in.archive.ubuntu.com/ubuntu jammy-backports InRelease [108 kB]
Ign:14 https://www.scootersoftware.com bcompare4 InRelease
Hit:15 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy InRelease
Get:16 https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/5.0 Release [3,094 B]
Get:17 http://in.archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Hit:18 https://www.scootersoftware.com bcompare4 Release
Get:20 http://in.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [996 kB]
Get:21 https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/5.0 Release.gpg [801 B]
Get:22 http://in.archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages [471 kB]
Get:23 http://in.archive.ubuntu.com/ubuntu jammy-updates/main amd64 DEP-11 Metadata [102 kB]
Get:24 http://in.archive.ubuntu.com/ubuntu jammy-updates/universe i386 Packages [608 kB]
Get:25 http://in.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [900 kB]
Get:26 https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/5.0/multiverse arm64 Packages [6,494 B]
Get:27 http://in.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 DEP-11 Metadata [269 kB]
Get:28 http://in.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 DEP-11 Metadata [940 B]
Get:29 https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/5.0/multiverse amd64 Packages [7,985 B]
Get:30 http://in.archive.ubuntu.com/ubuntu jammy-backports/main amd64 DEP-11 Metadata [7,968 B]
Get:31 http://in.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 DEP-11 Metadata [12.5 kB]
Get:32 http://in.archive.ubuntu.com/ubuntu jammy-security/main amd64 DEP-11 Metadata [41.6 kB]
Get:33 http://in.archive.ubuntu.com/ubuntu jammy-security/universe amd64 DEP-11 Metadata [18.5 kB]
Reading package lists... Done
E: The repository 'https://download.docker.com/linux/debian 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.
W: https://repo.skype.com/deb/dists/stable/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: https://repo.mongodb.org/apt/ubuntu/dists/jammy/mongodb-org/5.0/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
maneesh@maneesh-Nitro-AN515-58:~$

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#9

The docker repo doesn't support jammy and should be removed
https://download.docker.com/linux/debian/dists/

You can do this with:

sudo rm /etc/apt/sources.list.d/archive_uri-https_download_docker_com_linux_debian-jammy.list

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#10

You'll need to update the GPG keys for MongoDB and Skype. You can use this link to get sorted
https://askubuntu.com/questions/1403556/key-is-stored-in-legacy-trusted-gpg-keyring-after-ubuntu-22-04-update

Revision history for this message
Maneesh (maneesh1539) said :
#11

Thanks actionparsnip, that solved my question.