Contrary to the note above, I haven’t found the answer to my problem.
I have read almost a dozen apt-get update questions, most from askubuntu.com, with «failed to fetch» errors and tried the solutions answered there. Unfortunately, none worked. I just recently installed Ubuntu 12.04 on my laptop, dual booting it alongside Windows 7. When i tried
sudo apt-get update
on the terminal, the following kept occuring:
Err http://ph.archive.ubuntu.com precise InRelease
Err http://ph.archive.ubuntu.com precise-updates InRelease
Err http://ph.archive.ubuntu.com precise-backports InRelease
Err http://ph.archive.ubuntu.com precise Release.gpg
Unable to connect to ph.archive.ubuntu.com:http: [IP: 91.189.92.177 80]
Err http://ph.archive.ubuntu.com precise-updates Release.gpg
Unable to connect to ph.archive.ubuntu.com:http: [IP: 91.189.92.177 80]
Err http://ph.archive.ubuntu.com precise-backports Release.gpg
Unable to connect to ph.archive.ubuntu.com:http: [IP: 91.189.92.177 80]
Err http://extras.ubuntu.com precise InRelease
Err http://extras.ubuntu.com precise Release.gpg
Unable to connect to extras.ubuntu.com:http:
Err http://security.ubuntu.com precise-security InRelease
Err http://security.ubuntu.com precise-security Release.gpg
Unable to connect to security.ubuntu.com:http: [IP: 91.189.92.190 80]
Reading package lists... Done
W: Failed to fetch http://ph.archive.ubuntu.com/ubuntu/dists/precise/InRelease
W: Failed to fetch http://ph.archive.ubuntu.com/ubuntu/dists/precise-updates/InRelease
W: Failed to fetch http://ph.archive.ubuntu.com/ubuntu/dists/precise-backports/InRelease
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/InRelease
W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/precise/InRelease
W: Failed to fetch http://ph.archive.ubuntu.com/ubuntu/dists/precise/Release.gpg Unable to connect to ph.archive.ubuntu.com:http: [IP: 91.189.92.177 80]
W: Failed to fetch http://ph.archive.ubuntu.com/ubuntu/dists/precise-updates/Release.gpg Unable to connect to ph.archive.ubuntu.com:http: [IP: 91.189.92.177 80]
W: Failed to fetch http://ph.archive.ubuntu.com/ubuntu/dists/precise-backports/Release.gpg Unable to connect to ph.archive.ubuntu.com:http: [IP: 91.189.92.177 80]
W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/precise/Release.gpg Unable to connect to extras.ubuntu.com:http:
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/Release.gpg Unable to connect to security.ubuntu.com:http: [IP: 91.189.92.190 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.
Note:
This happened immediately after I installed Ubuntu 12.04. I am very new to the Linux/Ubuntu world and a noob when it comes to these kind of stuff.
The Sources list in the Update Manager (and Software Center) settings was short. It only contained 2 lines with «Canonical» in it, 2 lines with «Independent» in it, and 2 other lines. I think the list was short because it was a freshly installed Ubuntu.
Connection to the internet seems fine and my friend whose laptop had just been installed with Ubuntu 12.04 around the same time as mine, seems to have no problem with his update. We share the same connection so I think internet connection issues couldn’t have been the reason for the error.
Attempted Solutions:
From here, I explored around /etc/resolvconf/resolv.conf.d
and added in the /etc/resolvconf/resolv.conf.d/head
the following:
nameserver 8.8.8.8
nameserver 8.8.4.4
Error still occured.
From here and here, I repeatedly changed which Mirror server to use in the Update manager and Software sources settings. Again, error still occured.
I also tried editing my sources list, unchecking the lines with «independent» on it(as suggested). According to here, I tried removing the derb-src
lines in the sources list. Still, to no avail.
Lastly, this site suggests running the following:
echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null
or, for a permanent solution,
echo "nameserver 8.8.8.8" | sudo tee /etc/resolvconf/resolv.conf.d/base > /dev/null
Sadly, nothing worked for me. In all forums that I have been to, the answer related to nameserver 8.8.8.8
seems to come up most often. Take note also that I really did not understand the solutions, what they meant or how are they done. I just simply followed them.
This is the output for cat /etc/apt/sources.list
:
# deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ dists/precise/main/binary-i386/
# deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ dists/precise/restricted/binary-i386/
# deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ precise main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu precise main restricted
deb-src http://archive.ubuntu.com/ubuntu precise main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu precise-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu precise-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://archive.ubuntu.com/ubuntu precise universe
deb-src http://archive.ubuntu.com/ubuntu precise universe
deb http://archive.ubuntu.com/ubuntu precise-updates universe
deb-src http://archive.ubuntu.com/ubuntu precise-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://archive.ubuntu.com/ubuntu precise multiverse
deb-src http://archive.ubuntu.com/ubuntu precise multiverse
deb http://archive.ubuntu.com/ubuntu precise-updates multiverse
deb-src http://archive.ubuntu.com/ubuntu precise-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://archive.ubuntu.com/ubuntu precise-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu precise-backports main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu precise-security main restricted
deb-src http://archive.ubuntu.com/ubuntu precise-security main restricted
deb http://archive.ubuntu.com/ubuntu precise-security universe
deb-src http://archive.ubuntu.com/ubuntu precise-security universe
deb http://archive.ubuntu.com/ubuntu precise-security multiverse
deb-src http://archive.ubuntu.com/ubuntu precise-security multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu precise partner
# deb-src http://archive.canonical.com/ubuntu precise partner
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu precise main
deb-src http://extras.ubuntu.com/ubuntu precise main
And the following is for cat /etc/resolv.conf
:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1
search nip.upd.edu.ph
It has been pointed out that the answer is here but unfortunately that didn’t work either. I tried choosing different servers but the «choose server» was never available. Searching for the best server yielded a «No suitable server» result. I think the mirror servers are fine and again, there seems to be no issue with internet connection.
Using ping -c3 archive.ubuntu.com
and ping -c3 8.8.8.8
both yielded 0% packet loss
. The ping for 8.8.8.8 sometimes yielded 33% packet loss
but mostly 0%.
Typing nslookup google.com
yields
Server: 127.0.0.1
Address: 127.0.0.1#53
Output of ps aux | grep dns
:
nobody 1761 0.0 0.0 33012 1284 ? S 17:04 0:00 /usr/sbin/dnsmasq
--no-resolv --keep-in-foreground --no-hosts --bind-interfaces --pid-file=/var
/run/sendsigs.omit.d/network-manager.dnsmasq.pid --listen-address=127.0.0.1 --conf-
file=/var/run/nm-dns-dnsmasq.conf --cache-size=0 --proxy-dnssec
joa 2197 0.0 0.0 13576 928 pts/0 S+ 17:10 0:00 grep --color=auto dns
The apt
command-line tool is one of the critical components of Debian and Ubuntu-based Linux distros. It facilitates retrieval and installation of packages reliably, thus, allowing users to enjoy the hassle-free installation of software and its dependencies. It is certainly one of the distinguishing features of Linux.
Sometimes, you may encounter the annoying Failed to fetch
error while trying to use the apt
tool which may look something like the following:
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/precise/Release.gpg Temporary failure resolving 'in.archive.ubuntu.com'
In this tutorial, we will take a look at possible reasons one may encounter this error and its solutions.
Are there any pre-requisites?
There are no major pre-requisites for being able to fix this issue but keep in mind that you need to have the superuser privilege for your device. If you are not the admin or do not have access to the password of the device, you might not be able to fix this issue.
With the pre-requisites out of the way, now let us look at the possible reasons this error may occur.
Reason 1: Issues with your internet connection
As the apt
command fetches packages from the web servers, there is no doubt that you must to have a proper internet connection.
If you are unsure why the terminal is unable to connect to the internet, go through the following steps to perform a diagnosis.
Diagnosis: Run the ping tool
The best way to determine whether the terminal is connected to the internet is by trying to ping a host. Enter the following command:
If you are getting a continuous sequence of replies from the host as shown in the above image, it means that your internet is working fine. Press Ctrl+C to stop the ping tool.
Solution: Fixing the internet connection
One of the following things might get you back online:
- Look for disconnected ethernet cables.
- The WiFi/Network adapter might be switched off, try turning it on.
- Look for malfunctions in your network devices.
- Try contacting the ISP.
Reason 2: You might be connected to a proxy network
If your device is connected to a network belonging to an organization (like your office, university, library, etc.), chances are, you might be connected to the internet through a proxy server.
You will need to configure the proxy settings for APT to work. Follow the steps below:
Solution 1: Configuring the proxy settings for APT
We have to manually create a separate configuration file called proxy.conf
in the apt configuration folder.
- Enter the following code in the terminal:
sudo touch /etc/apt/apt.conf.d/proxy.conf
When prompted, enter the password. This code will create the desired proxy.conf file in the location /etc/apt/apt.conf.d/proxy.conf.
2. Using the Vi editor, now we will edit the text file. Enter the following code:
sudo vi /etc/apt/apt.conf.d/proxy.conf
3. You will enter the edit mode, now add the following piece of code:
Acquire { HTTP::proxy "http://<proxy-hostname>:<proxy-port>"; HTTPS::proxy "http://<proxy-hostname>:<proxy-port>"; }
Make sure that you replace the <proxy-hostname>
with your proxy server hostname and <proxy-port>
with the port. For example, if your proxy hostname is 10.32.0.1 and port is 8080, the code will look like this:
Acquire { HTTP::proxy "http://10.32.0.1:8080"; HTTPS::proxy "http://10.32.0.1:8080"; }
4. Exit the vi editor saving the changes by entering :wq!
5. Restart your device and check if your problem is resolved.
Reason 3: You are using a release that has reached its EoL (End of Life)
If you are using an old or interim release (like the Ubuntu 21.04), it might have reached its end of life and isn’t supported anymore. You will need to upgrade to a newer version for the proper function of APT.
Solution 1: Upgrading your system to the latest version
1. First, you need to retrieve the updated package list:
2. Now, run the below codes to download and install the required packages:
sudo apt-get upgrade sudo apt-get dist-upgrade
3. You will need to install the update manager:
sudo apt-get install update-manager-core
4. Reboot your device, then enter the following code to start downloading and upgrading your distribution:
Now the system will start downloading the latest version. It might take hours depending on the download size and your device specification.
References
Ubuntu Help & Ask Ubuntu: EOLUpgrades – Community Help Wiki (ubuntu.com) | Setting proxy for apt from the terminal – Ask Ubuntu
Conclusion
Unless one fully understands the details behind the exceptions thrown by the terminal in Linux, solving issues like this can become somewhat tricky. Nevertheless, I hope that the above-mentioned guide was able to solve the problems.
Just installed Ubuntu 13.10 (Saucy) and anything I try to install via sudo apt-get install
is failing and throwing a series of 404
erros.
Example — installing tmux
[jeeves@HAL] hadoop > sudo apt-get install tmux
[sudo] password for jeeves:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
tmux
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 247 kB of archives.
After this operation, 577 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
tmux
Install these packages without verification [y/N]? Y
Err http://us.archive.ubuntu.com/ubuntu/ saucy/main tmux amd64 1.8-4
404 Not Found [IP: 91.189.91.23 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/t/tmux/tmux_1.8-4_amd64.deb 404 Not Found [IP: 91.189.91.23 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
In this case it can’t fetch an archive URL.
I get something similar when installing mysql-server
....
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/mysql-common_5.5.37-0ubuntu0.13.10.1_all.deb 404 Not Found [IP: 91.189.91.23 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/libmysqlclient18_5.5.37-0ubuntu0.13.10.1_amd64.deb 404 Not Found [IP: 91.189.91.23 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/libd/libdbi-perl/libdbi-perl_1.627-1_amd64.deb 404 Not Found [IP: 91.189.91.15 80]
....
… and numerous other packages.
I even tried sudo apt-get update
and running with --fix-missing?
Is the Ubuntu repository just down (which seems odd given how many people rely on it) or did I miss something?
EDIT: Here’s what happens when I try sudo apt-get update
. The update itself doesn’t work because of resources that can’t be found
> sudo apt-get update
Hit http://download.virtualbox.org maverick InRelease
Ign http://us.archive.ubuntu.com saucy InRelease
Ign http://us.archive.ubuntu.com saucy-updates InRelease
Ign http://extras.ubuntu.com saucy InRelease
Ign http://us.archive.ubuntu.com saucy-backports InRelease
Hit http://download.virtualbox.org maverick/contrib amd64 Packages
Hit http://download.virtualbox.org maverick/non-free amd64 Packages
Ign http://us.archive.ubuntu.com saucy Release.gpg
Hit http://extras.ubuntu.com saucy Release.gpg
Hit http://download.virtualbox.org maverick/contrib i386 Packages
Ign http://us.archive.ubuntu.com saucy-updates Release.gpg
Hit http://download.virtualbox.org maverick/non-free i386 Packages
Ign http://us.archive.ubuntu.com saucy-backports Release.gpg
Ign http://us.archive.ubuntu.com saucy Release
Ign http://security.ubuntu.com saucy-security InRelease
Hit http://extras.ubuntu.com saucy Release
Ign http://us.archive.ubuntu.com saucy-updates Release
Ign http://security.ubuntu.com saucy-security Release.gpg
Ign http://us.archive.ubuntu.com saucy-backports Release
Ign http://security.ubuntu.com saucy-security Release
Hit http://extras.ubuntu.com saucy/main Sources
Ign http://us.archive.ubuntu.com saucy/main Sources/DiffIndex
Ign http://security.ubuntu.com saucy-security/main Sources/DiffIndex
Ign http://us.archive.ubuntu.com saucy/restricted Sources/DiffIndex
Ign http://security.ubuntu.com saucy-security/restricted Sources/DiffIndex
Hit http://extras.ubuntu.com saucy/main amd64 Packages
Ign http://us.archive.ubuntu.com saucy/universe Sources/DiffIndex
Ign http://security.ubuntu.com saucy-security/universe Sources/DiffIndex
Ign http://us.archive.ubuntu.com saucy/multiverse Sources/DiffIndex
Hit http://extras.ubuntu.com saucy/main i386 Packages
Ign http://security.ubuntu.com saucy-security/multiverse Sources/DiffIndex
Ign http://us.archive.ubuntu.com saucy/main amd64 Packages/DiffIndex
Ign http://security.ubuntu.com saucy-security/main amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy/restricted amd64 Packages/DiffIndex
Ign http://security.ubuntu.com saucy-security/restricted amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy/universe amd64 Packages/DiffIndex
Ign http://security.ubuntu.com saucy-security/universe amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy/multiverse amd64 Packages/DiffIndex
Ign http://security.ubuntu.com saucy-security/multiverse amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy/main i386 Packages/DiffIndex
Ign http://download.virtualbox.org maverick/contrib Translation-en_US
Ign http://security.ubuntu.com saucy-security/main i386 Packages/DiffIndex
Ign http://download.virtualbox.org maverick/contrib Translation-en
Ign http://us.archive.ubuntu.com saucy/restricted i386 Packages/DiffIndex
Ign http://download.virtualbox.org maverick/non-free Translation-en_US
Ign http://download.virtualbox.org maverick/non-free Translation-en
Ign http://us.archive.ubuntu.com saucy/universe i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy/multiverse i386 Packages/DiffIndex
Ign http://security.ubuntu.com saucy-security/restricted i386 Packages/DiffIndex
Ign http://security.ubuntu.com saucy-security/universe i386 Packages/DiffIndex
Ign http://security.ubuntu.com saucy-security/multiverse i386 Packages/DiffIndex
Ign http://extras.ubuntu.com saucy/main Translation-en_US
Ign http://extras.ubuntu.com saucy/main Translation-en
Ign http://us.archive.ubuntu.com saucy-updates/main Sources/DiffIndex
Ign http://us.archive.ubuntu.com saucy-updates/restricted Sources/DiffIndex
Ign http://us.archive.ubuntu.com saucy-updates/universe Sources/DiffIndex
Ign http://us.archive.ubuntu.com saucy-updates/multiverse Sources/DiffIndex
Ign http://us.archive.ubuntu.com saucy-updates/main amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-updates/restricted amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-updates/universe amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-updates/multiverse amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-updates/main i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-updates/restricted i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-updates/universe i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-updates/multiverse i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-backports/main Sources/DiffIndex
Ign http://us.archive.ubuntu.com saucy-backports/restricted Sources/DiffIndex
Ign http://us.archive.ubuntu.com saucy-backports/universe Sources/DiffIndex
Ign http://us.archive.ubuntu.com saucy-backports/multiverse Sources/DiffIndex
Ign http://us.archive.ubuntu.com saucy-backports/main amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-backports/restricted amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-backports/universe amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-backports/multiverse amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-backports/main i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-backports/restricted i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-backports/universe i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-backports/multiverse i386 Packages/DiffIndex
Ign http://security.ubuntu.com saucy-security/main Translation-en_US
Ign http://security.ubuntu.com saucy-security/main Translation-en
Ign http://security.ubuntu.com saucy-security/multiverse Translation-en_US
Ign http://security.ubuntu.com saucy-security/multiverse Translation-en
Ign http://security.ubuntu.com saucy-security/restricted Translation-en_US
Ign http://security.ubuntu.com saucy-security/restricted Translation-en
Ign http://security.ubuntu.com saucy-security/universe Translation-en_US
Ign http://security.ubuntu.com saucy-security/universe Translation-en
Err http://security.ubuntu.com saucy-security/main Sources
404 Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com saucy-security/restricted Sources
404 Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com saucy-security/universe Sources
404 Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com saucy-security/multiverse Sources
404 Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com saucy-security/main amd64 Packages
404 Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com saucy-security/restricted amd64 Packages
404 Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com saucy-security/universe amd64 Packages
404 Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com saucy-security/multiverse amd64 Packages
404 Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com saucy-security/main i386 Packages
404 Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com saucy-security/restricted i386 Packages
404 Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com saucy-security/universe i386 Packages
404 Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com saucy-security/multiverse i386 Packages
404 Not Found [IP: 91.189.91.23 80]
Ign http://us.archive.ubuntu.com saucy/main Translation-en_US
Ign http://us.archive.ubuntu.com saucy/main Translation-en
Ign http://us.archive.ubuntu.com saucy/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com saucy/multiverse Translation-en
Ign http://us.archive.ubuntu.com saucy/restricted Translation-en_US
Ign http://us.archive.ubuntu.com saucy/restricted Translation-en
Ign http://us.archive.ubuntu.com saucy/universe Translation-en_US
Ign http://us.archive.ubuntu.com saucy/universe Translation-en
Ign http://us.archive.ubuntu.com saucy-updates/main Translation-en_US
Ign http://us.archive.ubuntu.com saucy-updates/main Translation-en
Ign http://us.archive.ubuntu.com saucy-updates/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com saucy-updates/multiverse Translation-en
Ign http://us.archive.ubuntu.com saucy-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com saucy-updates/restricted Translation-en
Ign http://us.archive.ubuntu.com saucy-updates/universe Translation-en_US
Ign http://us.archive.ubuntu.com saucy-updates/universe Translation-en
Ign http://us.archive.ubuntu.com saucy-backports/main Translation-en_US
Ign http://us.archive.ubuntu.com saucy-backports/main Translation-en
Ign http://us.archive.ubuntu.com saucy-backports/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com saucy-backports/multiverse Translation-en
Ign http://us.archive.ubuntu.com saucy-backports/restricted Translation-en_US
Ign http://us.archive.ubuntu.com saucy-backports/restricted Translation-en
Ign http://us.archive.ubuntu.com saucy-backports/universe Translation-en_US
Ign http://us.archive.ubuntu.com saucy-backports/universe Translation-en
Err http://us.archive.ubuntu.com saucy/main Sources
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy/restricted Sources
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy/universe Sources
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy/multiverse Sources
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy/main amd64 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy/restricted amd64 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy/universe amd64 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy/multiverse amd64 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy/main i386 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy/restricted i386 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy/universe i386 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy/multiverse i386 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-updates/main Sources
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-updates/restricted Sources
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-updates/universe Sources
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-updates/multiverse Sources
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-updates/main amd64 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-updates/restricted amd64 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-updates/universe amd64 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-updates/multiverse amd64 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-updates/main i386 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-updates/restricted i386 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-updates/universe i386 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-updates/multiverse i386 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-backports/main Sources
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-backports/restricted Sources
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-backports/universe Sources
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-backports/multiverse Sources
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-backports/main amd64 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-backports/restricted amd64 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-backports/universe amd64 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-backports/multiverse amd64 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-backports/main i386 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-backports/restricted i386 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-backports/universe i386 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-backports/multiverse i386 Packages
404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/main/source/Sources 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/main/source/Sources 404 Not Found [IP: 91.189.91.23 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/restricted/source/Sources 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/restricted/source/Sources 404 Not Found [IP: 91.189.91.23 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/universe/source/Sources 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/universe/source/Sources 404 Not Found [IP: 91.189.91.23 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/multiverse/source/Sources 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/multiverse/source/Sources 404 Not Found [IP: 91.189.91.23 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/main/binary-amd64/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/main/binary-amd64/Packages 404 Not Found [IP: 91.189.91.23 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/restricted/binary-amd64/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/restricted/binary-amd64/Packages 404 Not Found [IP: 91.189.91.23 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/universe/binary-amd64/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/universe/binary-amd64/Packages 404 Not Found [IP: 91.189.91.23 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/multiverse/binary-amd64/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/multiverse/binary-amd64/Packages 404 Not Found [IP: 91.189.91.23 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/main/binary-i386/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/main/binary-i386/Packages 404 Not Found [IP: 91.189.91.23 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/restricted/binary-i386/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/universe/binary-i386/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/multiverse/binary-i386/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/restricted/binary-i386/Packages 404 Not Found [IP: 91.189.91.23 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/universe/binary-i386/Packages 404 Not Found [IP: 91.189.91.23 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/multiverse/binary-i386/Packages 404 Not Found [IP: 91.189.91.23 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/main/source/Sources 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/restricted/source/Sources 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/universe/source/Sources 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/multiverse/source/Sources 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/main/binary-amd64/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/restricted/binary-amd64/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/universe/binary-amd64/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/multiverse/binary-amd64/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/main/binary-i386/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/restricted/binary-i386/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/universe/binary-i386/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/multiverse/binary-i386/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-backports/main/source/Sources 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-backports/restricted/source/Sources 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-backports/universe/source/Sources 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-backports/multiverse/source/Sources 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-backports/main/binary-amd64/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-backports/restricted/binary-amd64/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-backports/universe/binary-amd64/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-backports/multiverse/binary-amd64/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-backports/main/binary-i386/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-backports/restricted/binary-i386/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-backports/universe/binary-i386/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-backports/multiverse/binary-i386/Packages 404 Not Found [IP: 91.189.91.24 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
When using the desktop version of Ubuntu you’ll eventually get or probably have the problem that apt-get update
throws a lot «Failed to fetch 404 Not Found» errors. Additionally, you may have the same problem when running apt-get install
. Don’t worry, it will be fixed in a minute.
The Problem
You may see messages like the ones below when executing apt-get update
or apt-get install
. That is because Ubuntu releases are only supported for 9 months. LTS (Long Term Support) releases have support for 5 years. Once support is cut for the version you’re using, you’ll see those error messages. Ubuntu moves the repositories to another server and the defined URL to reach the sources are no longer available on default location http://archive.ubuntu.com/ubuntu/dist/
.
$ sudo apt-get update
Ign http://de.archive.ubuntu.com raring Release.gpg
Ign http://de.archive.ubuntu.com raring-updates Release.gpg
Ign http://de.archive.ubuntu.com raring-backports Release.gpg
Ign http://security.ubuntu.com raring-security Release.gpg
Ign http://de.archive.ubuntu.com raring Release
Ign http://de.archive.ubuntu.com raring-updates Release
Ign http://de.archive.ubuntu.com raring-backports Release
…
404 Not Found [IP: 91.189.92.201 80]
Err http://security.ubuntu.com raring-security/restricted Sources
404 Not Found [IP: 91.189.92.201 80]
Err http://security.ubuntu.com raring-security/universe Sources
404 Not Found [IP: 91.189.92.201 80]
Err http://security.ubuntu.com raring-security/multiverse Sources
404 Not Found [IP: 91.189.92.201 80]
Ign http://de.archive.ubuntu.com raring-backports/main Translation-en
Ign http://de.archive.ubuntu.com raring-backports/multiverse Translation-en
Err http://security.ubuntu.com raring-security/main amd64 Packages
…
W: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/raring/restricted/source/Sources 404 Not Found [IP: 141.30.13.30 80]
W: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/raring/universe/source/Sources 404 Not Found [IP: 141.30.13.30 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/main/source/Sources 404 Not Found [IP: 91.189.92.201 80]
W: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/raring/multiverse/source/Sources 404 Not Found [IP: 141.30.13.30 80]
…
E: Some index files failed to download. They have been ignored, or old ones used instead.
How to Fix The Problem
There are two solutions to get your apt
commands working again. First: upgrade the Ubuntu release. Second: update the sources url to the old package repositories. Both solutions are described below in more detail.
Distribution Upgrade
The most simple solution is to upgrade your Ubuntu instance to the newest release:
sudo apt-get dist-upgrade
If the distribution upgrade is not an option right now, you can update the sources url for the Ubuntu repositories to find the old packages.
Update Packages Url
You can use the sed
command to update the sources in /etc/apt/sources.list
file to the new location for old package repositories2.
Run the following command to update archive.ubuntu.com
and security.ubuntu.com
package repository4 URLs with old-releases.ubuntu.com
. Since the normal Ubuntu releases link to the archive.…
and security.…
URLs, the support will be removed after their live cycle of 9 months and respective repositories3 moved to old-releases.…
.
sudo sed -i -e 's/archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
**Linux Mint additionally requires the execution of this command:**
sudo sed -i -e 's/archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list.d/official-package-repositories.list
To check whether there are other files in /etc/apt/sources.list.d/
which need to be updated, use the following grep
command.
grep -E 'archive.ubuntu.com|security.ubuntu.com' /etc/apt/sources.list.d/*
That’s it. Now you can update your sources again.
sudo apt-get update
Bazinga!
- 1: Myles McNamara’s blog post saved me a lot of time to understand the problem and find a solution
- 2: Ask Ubuntu: Install Software From Old Repositories (sed command)
- 3: Ubuntu Old Releases
- 4: Ubuntu Current Releases
Кто не встречал ошибок в процессе обновления Ubuntu? Ошибки обновления в Ubuntu и иных дистрибутивах Linux встречаются часто и не вызывают удивления. В статье описан ряд часто встречающихся ошибок и способы их решения.
Данная статья является частью серии, посвященной новичкам в Ubuntu, и она призвана помочь лучше понять работу с дистрибутивом.
В данном туториале мы рассмотрим часто встречающиеся ошибки, которые можно встретить при обновлении Ubuntu. Они зачастую происходят тогда, когда пытаешься добавить софт или репозитории самостоятельно.
Если во время обновления системы появляются ошибки, паниковать не стоит. Ошибки случаются часто и решения есть. Вы научитесь как решить часто встречающиеся ошибки.
Ошибка 0: Failed to download repository information
Многие пользователи Ubuntu обновляют систему через графическую программное средство обновления. Вам приходит оповещения, что стали доступными обновления для вашей системы и теперь можно нажать на кнопку для начала скачивания и установки.
Обычно так и происходит, но иногда можно увидеть подобную ошибку:
Скорее всего ошибка покажется странной, так как интернет работает, но вас все равно просят его проверить.
Заметили, что я назвал ее “Ошибка 0”? Это потому что это по сути не ошибка. То есть, скорее всего, она не связана с подключением к интернету. Тем не менее помимо этого путающего сообщения больше информации нет.
Если вы видите данное сообщение, а подключение к интернету в порядке, то значит пришло время надевать шляпу детектива и пошевелить мозгами.
Нам придется использовать командную строку. Для того чтобы ее быстро открыть можете воспользоваться сочетанием клавиш ctrl+alt+T. Исполните в ней данную команду:
sudo apt update
Дождитесь завершения процесса. Рассмотрите последние 3-4 строки вывода. Они покажут действительные причины ошибки sudo apt-get update. Вот пример:
Дальше туториал будет посвящен способам решения ошибок, указанных в нескольких последних строчках вывода командной строки.
Ошибка 1: Problem With MergeList
Когда вы запустите обновление в терминале, то можете увидеть ошибку “Problem With MergeList”:
E:Encountered a section with no Package: header, E:Problem with MergeList /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_precise_universe_binary-i386_Packages, E:The package lists or status file could not be parsed or opened.’
По какой-то причине файл в директории /var/lib/apt/lists сломался. Вы можете удалить все файлы в указанной директории и запустить обновление снова. Исполните указанные команды одна за другое:
sudo rm -r /var/lib/apt/lists/* sudo apt-get clean && sudo apt-get update
Проблемы должны исчезнуть
Ошибка 2: Hash Sum mismatch
Вы можете встретиться с ошибкой “Hash Sum mismatch”. Ее решение аналогично тому, что мы написали выше.
W:Failed to fetch bzip2:/var/lib/apt/lists/partial/in.archive.ubuntu.com_ubuntu_dists_oneiric_restricted_binary-i386_Packages Hash Sum mismatch, W:Failed to fetch bzip2:/var/lib/apt/lists/partial/in.archive.ubuntu.com_ubuntu_dists_oneiric_multiverse_binary-i386_Packages Hash Sum mismatch, E:Some index files failed to download. They have been ignored, or old ones used instead
Скорее всего ошибка происходит из-за несовпадения на серверах кэша метаданных. Для исправления ситуации используйте данные команды:
sudo rm -rf /var/lib/apt/lists/* sudo apt update
Ошибка 3: Failed to fetch with error 404 not found
Если вы попытаетесь добавить репозиторий, который недоступен в вашей текущей версии Ubuntu, то увидите ошибку 404 not found:
W: Failed to fetch http://ppa.launchpad.net/venerix/pkg/ubuntu/dists/raring/main/binary-i386/Packages 404 Not Found E: Some index files failed to download. They have been ignored, or old ones used instead.
Вы добавили PPA в надежде установить приложение, но оно недоступно для вашей версии Ubuntu, и появилась ошибка. Вот почему следует заранее проверять доступно ли PPA для вашей версии Ubuntu или нет. Как удостовериться, что для вашей версии есть PPA, можно посмотреть здесь.
Так или иначе решением данной проблемы является удаление проблемной PPA из списка репозиториев. Название PPA вы найдете в сообщении об ошибке. Зайдите в средство Software & Updates:
Здесь пройдите во вкладку Other Software и поищите PPA. Уберите галочку, чтобы PPA удалилась из системы.
Ваш список программ после этого обновится. Теперь, если вы снова запустите обновление, ошибка исчезнет.
Ошибка 4: Failed to download package files
В данной ситуации доступна новая версия программы, но эта версия не распространена на все зеркала. Если вы не используете зеркало, то решить эту проблему просто — сделайте источником программы основной сервер. Пройдите в Software & Updates там измените сменить сервер с которого происходит скачивание на main (основной):
Ошибка 5: GPG error: The following signatures couldn’t be verified
Добавление PPA может также привести к оповещению “GPG error: The following signatures couldn’t be verified” во время обновления:
W: GPG error: http://repo.mate-desktop.org saucy InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 68980A0EA10B4DE8
Все что надо в данном случае сделать, так это добавить публичный код в систему. Возьмите ключ из сообщения. В сообщении выше это 68980A0EA10B4DE8.
Данный ключ можно использовать так:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 68980A0EA10B4DE8
Как только ключ будет добавлен, запустите обновление и все должны быть в порядке.
Ошибка 6: BADSIG error
Еще одна знаковая ошибка при обновлении Ubuntu — это “BADSIG error”, которая выглядит примерно так:
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://extras.ubuntu.com precise Release: The following signatures were invalid: BADSIG 16126D3A3E5C1192 Ubuntu Extras Archive Automatic Signing Key W: GPG error: http://ppa.launchpad.net precise Release: The following signatures were invalid: BADSIG 4C1CBC1B69B0E2F4 Launchpad PPA for Jonathan French W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/precise/Release
Все репозитории подписаны GPG, и по какой-то причине система считает их неверными. Необходимо обновить ключи подписей. Проще всего это сделать путем повторной генерации списка apt get (с ключами подписей) и он должен иметь верный ключ.
Используйте следующие команды одну за другой:
cd /var/lib/apt sudo mv lists oldlist sudo mkdir -p lists/partial sudo apt-get clean sudo apt-get update
Ошибка 7: Partial upgrade error
Обновление через терминал может привести к такому:
Not all updates can be installed Run a partial upgrade, to install as many updates as possible
Для исправления ошибки исполните в терминале данную команду:
sudo apt-get install -f
Ошибка 8: Could not get lock /var/cache/apt/archives/lock
Данная ошибка происходит, когда еще одна программа использует APT. Допустим вы устанавливаете что-то через Ubuntu Software Center и в одновременно пытается запустить apt в терминале.
E: Could not get lock /var/cache/apt/archives/lock – open (11: Resource temporarily unavailable) E: Unable to lock directory /var/cache/apt/archives/
Проверьте не использует ли apt другая программа. Это может быть команда в терминале, Software Center, Software Updater, Software & Updates или иной другой соф, который занимается установкой и удалением приложений.
Если можете такие программы закрыть, закрывайте. Если что-то в процессе, то дождитесь завершения.
Если ничего найти не можете, используйте данную команду для того, чтобы прекратить все подобные процессы:
sudo killall apt apt-get
Это хитрая проблема, так что придется попотеть. Если это не поможет, то рекомендуем эту статью.
Встречали ли вы другие ошибки при обновлении?
Так завершается обзор часто встречающихся ошибок при обновлении Ubuntu. Надеюсь данная статья поможет вам с ними справится.
Вы не встречали других ошибок при обновлении Ubuntu недавно, о которых здесь не говорится? Расскажите в комментариях.