"apt update" error

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
bushwack
Level 1
Level 1
Posts: 17
Joined: Mon Jul 27, 2020 4:56 am

"apt update" error

Post by bushwack »

I get this when I run apt update in terminal:

Code: Select all

Ign:1 http://packages.linuxmint.com vera InRelease         
Hit:2 http://security.ubuntu.com/ubuntu jammy-security InRelease               
Hit:3 https://ppa.launchpadcontent.net/jonaski/strawberry/ubuntu jammy InRelease
Hit:4 https://ppa.launchpadcontent.net/nicotine-team/stable/ubuntu jammy InRelease
Hit:5 https://ppa.launchpadcontent.net/rvm/smplayer/ubuntu jammy InRelease     
Ign:6 http://archive.ubuntu.com/ubuntu jammy InRelease                         
Ign:7 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Ign:8 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:9 http://packages.linuxmint.com vera Release
Ign:6 http://archive.ubuntu.com/ubuntu jammy InRelease
Ign:7 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Ign:8 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Ign:6 http://archive.ubuntu.com/ubuntu jammy InRelease
Ign:7 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Ign:8 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Err:6 http://archive.ubuntu.com/ubuntu jammy InRelease
  Could not resolve 'archive.ubuntu.com'
Err:7 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
  Could not resolve 'archive.ubuntu.com'
Err:8 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
  Could not resolve 'archive.ubuntu.com'
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy/InRelease  Could not resolve 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease  Could not resolve 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease  Could not resolve 'archive.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
and this when I update in update manager:

Code: Select all

Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy/InRelease  Could not resolve 'archive.ubuntu.com'Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease  Could not resolve 'archive.ubuntu.com'Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease  Could not resolve 'archive.ubuntu.com'Some index files failed to download. They have been ignored, or old ones used instead.
Last edited by LockBot on Fri Dec 01, 2023 11:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
Midnight True
Level 7
Level 7
Posts: 1549
Joined: Wed Jul 20, 2022 3:23 am
Location: Southern and Southwestern area of Mato
Contact:

Re: "apt update" error

Post by Midnight True »

bushwack wrote: Thu Jun 01, 2023 12:00 pm
Please try changing to mirrors with the fastest speed on your system
Diesell
Level 1
Level 1
Posts: 1
Joined: Tue May 16, 2023 1:07 pm

Re: "apt update" error

Post by Diesell »

In Linux Mint, I faced the same problem. Based given things I ran the below command

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

The output shows below files contains impish repository.

1. /etc/apt/sources.list.save
2. /etc/apt/sources.list.distUpgrade
3. /etc/apt/sources.list.d/impish-security.list

Since the two first files uses for backup purposes (As I understand), by only commenting in /etc/apt/sources.list.d/impish-security.list file, The problem have been solved for me.
Last edited by Diesell on Fri Jun 02, 2023 10:08 am, edited 1 time in total.
bushwack
Level 1
Level 1
Posts: 17
Joined: Mon Jul 27, 2020 4:56 am

Re: "apt update" error

Post by bushwack »

Diesell wrote: Fri Jun 02, 2023 10:07 am grep -nvr "^#" /etc/apt/ | grep impish

The output shows below files contains impish repository.
mine results:

Code: Select all

grep: /etc/apt/trusted.gpg.d/linuxmint-keyring.gpg~: binary file matches
grep: /etc/apt/trusted.gpg.d/ubuntu-keyring-2016-dbgsym.gpg: binary file matches
grep: /etc/apt/trusted.gpg.d/ubuntu-keyring-2012-cdimage.gpg: binary file matches
grep: /etc/apt/trusted.gpg.d/ubuntu-defaults.chroot.key.gpg: binary file matches
grep: /etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg: binary file matches
grep: /etc/apt/trusted.gpg.d/linuxmint-keyring.gpg: binary file matches
grep: /etc/apt/keyrings/jonaski-strawberry-jammy.gpg: binary file matches
grep: /etc/apt/keyrings/nicotine-team-stable-jammy.gpg: binary file matches
grep: /etc/apt/keyrings/rvm-smplayer-jammy.gpg: binary file matches
grep: /etc/apt/trusted.gpg: binary file matches
Locked

Return to “Software & Applications”