While updating my ubuntu 22.04 I am having these issues

Asked by Faisal Shaikh

Ign:1 https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 InRelease
Ign:2 https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 InRelease
Hit:3 https://dl.google.com/linux/chrome/deb stable InRelease
Hit:4 https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 Release
Hit:5 https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 Release
Get:7 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Hit:8 http://in.archive.ubuntu.com/ubuntu jammy InRelease
Hit:10 http://in.archive.ubuntu.com/ubuntu jammy-updates InRelease
Get:11 http://in.archive.ubuntu.com/ubuntu jammy-backports InRelease [107 kB]
Ign:12 http://security.ubuntu.com/ubuntu impish-security InRelease
Hit:13 https://deb.nodesource.com/node_16.x jammy InRelease
Err:14 http://security.ubuntu.com/ubuntu impish-security Release
  404 Not Found [IP: 185.125.190.36 80]
Reading package lists... Done
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.
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.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

You have errors in the configuration of the package management system.

It seems that you are running Ubuntu 22.04 (jammy), but your system still looks for updates for Ubuntu 20.04 (focal) and 21.10 (impish). That does not make sense and should be corrected.

For diagnostic purposes please copy/paste the output that you receive for the following commands:

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

Revision history for this message
Faisal Shaikh (faisy7) said (last edit ):
#2

I have Installed one package while installing a mongodb database , it was recommended to run that mongodb server . So that package was not available in 22.04 ubuntu it was from 20.04.

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

https://itsfoss.com/key-is-stored-in-legacy-trusted-gpg/

Fixing legacy key. You should also address the "impish" repo error. Manfred's command will make this clearer

Revision history for this message
Faisal Shaikh (faisy7) said :
#4

/etc/apt/sources.list.d/impish-security.list

     1 deb http://security.ubuntu.com/ubuntu impish-security main

/etc/apt/sources.list.d/nodesource.list

     1 deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x jammy main
     2 deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x jammy main

/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/mongodb-org-6.0.list

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

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

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

/etc/apt/sources.list

     1 #deb cdrom:[Ubuntu 22.04.1 LTS _Jammy Jellyfish_ - Release amd64 (20220809.1)]/ 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://security.ubuntu.com/ubuntu jammy-security main restricted
    40 # deb-src http://security.ubuntu.com/ubuntu jammy-security main restricted
    41 deb http://security.ubuntu.com/ubuntu jammy-security universe
    42 # deb-src http://security.ubuntu.com/ubuntu jammy-security universe
    43 deb http://security.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.

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

sudo rm /etc/apt/sources.list.d/impish-security.list
sudo apt update

Should do it

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

1. The error message

Err:14 http://security.ubuntu.com/ubuntu impish-security Release
  404 Not Found [IP: 185.125.190.36 80]

can be solved with the command
sudo rm /etc/apt/sources.list.d/impish-security.list

2. For the mongodb entries:

Which version of mongodb do you need? Version 5 or version 6?
I am quite sure that the link to mongodb 5 for focal is not required because it is overruled by the link to mongodb 6 for jammy.
(command to clean that up: "sudo rm /etc/apt/sources.list.d/mongodb-org-5.0.list")

Revision history for this message
Faisal Shaikh (faisy7) said :
#7

Thanks a lot for this it worked , I did this upgrade because my webcam was not detetced in cheese it got stuck . I was having driver issues in windows it was solved there but here i am not able to get the problem.

Can you help with this problem?

Provide an answer of your own, or ask Faisal Shaikh for more information if necessary.

To post a message you must log in.