- Ошибка «не удалось получить» возникает при запуске обновления apt-get. Как я могу это исправить?
- failed to fetch security undermined error [IP: 91.189.91.38 80] in ubuntu 20.04
- 1 Answer 1
- Thread: Failed to fetch archive.ubuntu and security.ubuntu
- Failed to fetch archive.ubuntu and security.ubuntu
- Re: Failed to fetch archive.ubuntu and security.ubuntu
- Re: Failed to fetch archive.ubuntu and security.ubuntu
- Re: Failed to fetch archive.ubuntu and security.ubuntu
- «apt-get update» always failed to fetch
- 5 Answers 5
- Ubuntu apt-get unable to fetch packages [closed]
- 15 Answers 15
Ошибка «не удалось получить» возникает при запуске обновления apt-get. Как я могу это исправить?
Вопреки примечанию выше, я не нашел ответа на мою проблему.
Я прочитал почти дюжину вопросов об обновлении apt-get, большинство из которых было задано по адресу askubuntu.com, с ошибками «не удалось получить» и попытался найти ответы на них. К сожалению, никто не работал. Я только недавно установил Ubuntu 12.04 на свой ноутбук, загрузив его одновременно с Windows 7. Когда я попытался
на терминале происходило следующее:
Примечание :
Это произошло сразу после того, как я установил Ubuntu 12.04. Я очень новичок в мире Linux / Ubuntu и начинающий, когда дело доходит до такого рода вещей.
Список источников в настройках диспетчера обновлений (и центра программного обеспечения) был коротким. Он содержал только 2 строки с «Canonical», 2 строки с «Independent» и 2 другие строки. Я думаю, что список был коротким, потому что это была недавно установленная Ubuntu.
Подключение к Интернету выглядит нормально, и у моего друга, чей ноутбук только что был установлен с Ubuntu 12.04 примерно в то же время, что и у меня, похоже, нет проблем с его обновлением. У нас одинаковое соединение, поэтому я думаю, что проблемы с интернет-соединением не могли быть причиной ошибки.
Попытки решения :
Из здесь , я исследовал вокруг /etc/resolvconf/resolv.conf.d и добавил в /etc/resolvconf/resolv.conf.d/head следующем:
Ошибка все еще произошла.
От сюда и здесь , я неоднократно меняла , который зеркало сервера использовать в менеджере обновлений и настройки источников программного обеспечения. Опять же, ошибка все еще произошла.
Я также попытался отредактировать свой список источников, сняв отметки со строкой «независимо» (как это было предложено). Согласно здесь , я попытался удалить derb-src строки в списке источников. Тем не менее, безрезультатно.
Наконец, этот сайт предлагает запустить следующее:
К сожалению, у меня ничего не получалось. На всех форумах, где я бывал, nameserver 8.8.8.8 чаще всего встречается ответ на этот вопрос . Обратите также внимание, что я действительно не понимал решения, что они имели в виду или как они делали. Я просто следовал за ними.
Это вывод для cat /etc/apt/sources.list :
И следующее для cat /etc/resolv.conf :
Было отмечено, что ответ здесь, но, к сожалению, это тоже не сработало. Я пытался выбрать разные серверы, но «выбрать сервер» никогда не был доступен. Поиск лучшего сервера дал результат «Нет подходящего сервера». Я думаю, что зеркальные серверы в порядке, и опять же, похоже, нет проблем с подключением к Интернету.
Источник
failed to fetch security undermined error [IP: 91.189.91.38 80] in ubuntu 20.04
First i did sudo apt update and sudo apt-get update worked fine but after doing sudo apt upgrade and sudo apt-get upgrade getting below error
sudo apt update —fix-missing
1 Answer 1
Revert your repositories list to the original Ubuntu Focal list by running the following command in the terminal:
A file editor will be opened. Delete all the lines in it and then copy and paste the following in the file editor:
Then, save and close the file by pressing Ctrl + X then press Y then press Enter
To verify you saved the file correctly, please run the following command in the terminal:
The output should be exactly:
Ubuntu repositories have a defined format. They should be for example something like deb http://archive.ubuntu.com/ubuntu bionic main .
Explanation:
deb : These repositories contain binaries or precompiled packages. These repositories are required for most users.
http://archive.ubuntu.com/ubuntu : The URI (Uniform Resource Identifier), in this case a location on the internet.
focal : is the release name of your Ubuntu installation.
main & restricted . etc: are the section names or components. There can be several section names, separated by spaces.
After that, please clear apt cache by running the following command in the terminal:
Then update your repositories list by running the following command in the terminal:
You should now be able to install packages and update your system again.
If after that, you still get errors, please first back up /etc/apt/sources.list.d/ to your home directory by running the following command in the terminal:
After that, please clear all existing PPAs and repository lists in /etc/apt/sources.list.d/ by running the following command in the terminal:
After that, please clear apt cache by running the following command in the terminal:
Then, please update your repositories list by running the following command again in the terminal:
Notice:
Check if your connection to the Internet is behind a firewall, limited in any way or behind a proxy and configure your system and connection accordingly or change to a different connection if available. Firewalls can block access to certain URLs and proxies can keep old stale links in their cache system and this would result in broken or unresponsive targets. Proxies can also modify the headers of the HTTP requests and interfere with responses from web-servers and change them and your computer might end up getting faulty responses that APT can not handle correctly. This is common in networks that are used by large number of people and limited resources or Internet speed for availability and security reasons.
Check if there is an APT proxy configuration file by running the following command:
Источник
Thread: Failed to fetch archive.ubuntu and security.ubuntu
Thread Tools
Display
Failed to fetch archive.ubuntu and security.ubuntu
I am getting the following error when trying to push an application to Heroku.
and renaming the files in source.list.
Any ideas what it could be?
Last edited by DuckHook; November 9th, 2017 at 01:09 AM . Reason: Added CODE tags, deleted interfering formatting
Re: Failed to fetch archive.ubuntu and security.ubuntu
Server is down or you can’t connect to it for some reasons. Just wait a bit and do it again. If still not works try to change the server by opening «Software & Updates» and change «Download from» to another server in the dropdown (screenshot shows ‘Main server’)
Edited: but I notice this does happen a lot more in 17.10 than 16.04 so there maybe some other issues with 17.10
Re: Failed to fetch archive.ubuntu and security.ubuntu
I’ve been trying since yesterday without success.
» If still not works try to change the server by opening «Software & Updates» and change «Download from» to another server in the dropdown (screenshot shows ‘Main server’) » I just tried changing the server to different ones but still getting the same error. Very strange.
At least I know that it is nothing to do with my machine.
Re: Failed to fetch archive.ubuntu and security.ubuntu
Something is very wrong here. Your sources.list points to http://old-releases.ubuntu.com/ubuntu but refers to xenial (which is a mismatch because Xenial is still very much alive and not an old release). Yet apt is still accessing archive.canonical.com which is wrong anyways if you want to use an old release. Finally, we have no idea whether your attempt to change servers can even work because you do not give details.
Perhaps you should not start in the middle with incomplete info, and tell us from the beginning what you did, what version, flavour and system you have installed and what your goal is. Right now, it is impossible to help you because you haven’t given any context, history, or info and we’re just going by guess-&-golly.
Also, your update command is wrong. It should be:
However, until you tell us what you’ve actually got installed and what you want to achieve, it is probably not a good idea to do that update right now. It could further bork your install and leave you with a broken dpkg subsystem.
Last but not least, please enclose all of your output in CODE tags and don’t use non-standard formatting. Otherwise, the forum software automatically pollutes the output with URL tags and makes your output difficult to parse.
A system upgrade is a heart, lung and brain transplant. !!BACKUP FIRST!!
Источник
«apt-get update» always failed to fetch
I don’t understand why this issue could be survive. It display this error message all the time
I was tried to using these commands (which found in this question)
No luck for me. That dump message show up again. Always failed with security.ubuntu.com . My internet connection is OK, I’m able to ping to security.ubuntu.com without any trouble.
So, the question here is why? And anyone out there can help me out of this? I’m going to crazy!
5 Answers 5
Configure your proxy in network settings of your PC for each of items like HTTP, HTTPS, FTP and Socks and apply settings to system wide if you are using proxy.
Remove the existing packages and then try as follows:
This worked for me:
I have Ubuntu 14.04 LTS, and sometimes when I use this command, I encounter with this problem. For solving this you can use the following way:
please go to system settings.
click on software & updates
go to other software section. You can find the links that are relative to this error. Uncheck the relative links and click close. If you can’t find relative link you can go to ubuntu software section and uncheck options that may can relative to this error. Sometimes with changing Download Server to Main Server your problem can be solved. For changing download server you can go to ubuntu software section and change Download From and choose Main Server.
Источник
Ubuntu apt-get unable to fetch packages [closed]
Want to improve this question? Update the question so it’s on-topic for Stack Overflow.
Closed 11 months ago .
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
In this case it can’t fetch an archive URL.
I get something similar when installing mysql-server
. 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
15 Answers 15
Ran into a similar issue.
This is linked to using a non LTS version of Ubuntu called an «End of life version». As those have discontinued support. You can check if your Ubuntu is at the end of life version on this link.
The simplest solution is to do the following two steps:
- Backup your sources list sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
Open the sources file /etc/apt/sources.list and rename all the instances of us.archive or archive in
http://us.archive.ubuntu.com/ubuntu/
http://old-releases.ubuntu.com/ubuntu/
Also do the same for the http://security.ubuntu.com/ubuntu/dists/saucy-security/universe/binary-i386/Packages
Run sudo apt-get update after doing the above.
That should fix the issue.
Warning: Please update your ubuntu to an LTS version as soon as possible otherwise you won’t be getting the latest security patches. This is definitely not a solution that you would deploy on production machines.
Источник