- Ubuntu66.ru — новости, уроки, помощь, поддержка.
- How To Delete A Repository And GPG Key In Ubuntu
- 1. What is Ubuntu software repository?
- 1. Delete A Repository In Ubuntu
- 2. Delete Repository keys in Ubuntu
- compizomania
- Страницы
- 04 ноября 2012
- Как удалить не проиндексированный репозитрий в Ubuntu/Linux Mint
- 16 комментариев :
- How can PPAs be removed?
- 26 Answers 26
Ubuntu66.ru — новости, уроки, помощь, поддержка.
Многие пользователи в поисках того или иного приложения вынуждены устанавливать его из сторонних источников, прежде подключив репозиторий, а затем установив и само приложение. Но иногда бывают случаи, когда вы пытались подключить репозиторий, но он оказался не проиндексированным в данном дистрибутиве, а это значит что приложение невозможно установить из него и в терминале появляется следующее предупреждение (пример):
Данные строки в терминале будут появляться всякий раз, после ввода команды: sudo apt-get update, т.е. обновления репозиториев в вашей системе. А это значит, что данный репозиторий отразился в списке дополнительных источников, но оказался бездейственным и его лучше удалить, чтобы избавиться от надоедливого предупреждения.
Для удаления репозитория служит следующая команда:
sudo add-apt-repository —remove ppa: название репозитория
Но можно сделать это графически, т.е в картинках.
Не торопитесь закрывать терминал. Откройте рядом Источники приложений во вкладке Другое ПО:
Найдите в Источниках приложений строки репозитория отображенные в терминале и удалите их. Чтобы удалить, активируйте строку с репозиторием, введите пароль и нажмите кнопку Удалить.
Теперь после выполнения в терминале команды: sudo apt-get update надоедливые предупреждения больше появляться не будут:
Источник
How To Delete A Repository And GPG Key In Ubuntu
This brief tutorial explains what is a software repository, how to delete a repository along with its GPG key in Ubuntu and its derivatives like Elementary OS, Linux Mint, and Pop OS.
1. What is Ubuntu software repository?
For those wondering, a software repository (shortly repo) is a central place where the developers keep the software packages. The packages in the repositories are thoroughly tested and built specifically for each version by Ubuntu developers.
The users can download and install these packages on their Ubuntu system using Apt package manager. Ubuntu has four official repositories namely Main, Universe, Restricted and Multiverse.
Apart from the official repositories, there are many unofficial repositories maintained by developers (or package maintainers). The unofficial repositories usually have the packages which are not available in the official repositories.
All packages are signed with pair of keys, a public and private key, by the package maintainer. As you already know, the public key is given out to the users and the private must be kept secret.
Whenever you add a new repository in the sources list, you should also add the repository key if Apt package manager wants to trust the newly added repository.
Using the repository keys, you can ensure that you’re getting the packages from the right person. Hope you got a basic idea about software repositories and repository keys.
Now let us go ahead and see how to delete a repository along with its GPG key in Ubuntu and its derivatives.
1. Delete A Repository In Ubuntu
1. Whenever you add a repository using add-apt-repository command, it will be stored in /etc/apt/sources.list file.
2. To delete a software repository from Ubuntu and its derivatives, just open the /etc/apt/sources.list file and look for the repository entry and delete it.
As you can see in the below screenshot, I have added Oracle Virtualbox repository in my Ubuntu system.
To delete this repository, simply remove the entry. Save and close the file.
3. If you have added PPA repositories, look into /etc/apt/sources.list.d/ directory and delete the respective entry.
4. Alternatively, you can delete the repository using add-apt-repository command. For example, I am deleting the Systemback repository like below.
5. Finally, update the software sources list using command:
Related read:
2. Delete Repository keys in Ubuntu
1. We use apt-key command to add and manage the repository keys. First, let us list the added keys using command:
This command will list all added repository keys.
2. As you can see in the above output, the long (40 characters) hex value is the repository key. If you want APT package manager to stop trusting the key, simply delete it using command:
3. Or, specify the last 8 characters only:
Done! The repository key has been deleted. Run the following command to update the repository lists:
Источник
compizomania
Азбука в Linux для начинающих и не только. Я знаю только то, что ничего не знаю, но другие не знают и этого. Сократ
Страницы
04 ноября 2012
Как удалить не проиндексированный репозитрий в Ubuntu/Linux Mint
Многие пользователи в поисках того или иного приложения вынуждены устанавливать его из сторонних источников, прежде подключив репозиторий, а затем установив и само приложение. Но иногда бывают случаи, когда вы пытались подключить репозиторий, но он оказался не проиндексированным в данном дистрибутиве, а это значит что приложение невозможно установить из него и в терминале появляется следующее предупреждение (пример):
Данные строки в терминале будут появляться всякий раз, после ввода команды: sudo apt-get update, т.е. обновления репозиториев в вашей системе. А это значит, что данный репозиторий отразился в списке дополнительных источников, но оказался бездейственным и его лучше удалить, чтобы избавиться от надоедливого предупреждения.
Для удаления репозитория служит следующая команда:
sudo add-apt-repository —remove ppa: название репозитория
Но можно сделать это графически, т.е в картинках.
Не торопитесь закрывать терминал. Откройте рядом Источники приложений во вкладке Другое ПО:
Найдите в Источниках приложений строки репозитория отображенные в терминале и удалите их. Чтобы удалить, активируйте строку с репозиторием, введите пароль и нажмите кнопку Удалить.
Теперь после выполнения в терминале команды: sudo apt-get update надоедливые предупреждения больше появляться не будут:
16 комментариев :
Спасибо,я только перешел на LinuxMint очень полезные статьи.
Долго мучался с аналогичной проблемой, методом тыка решил. Но всё равно спасибо автору!
А как на счет игноринования репозитория
Можно и отключить если нужен. Главное подсказка для новичка в какую сторону копать
Владимир, если я правильно понимаю, то все репозитории, начинаются с http://ppa. верно?
Не могу понять, у меня в терминале все строчки выглядят примерно так:
Игн http://archive.ubuntu.com utopic-updates InRelease
W: Не удалось получить http://archive.ubuntu.com/ubuntu/dists/utopic-security/multiverse/binary-i386/Packages 404 Not Found
и ни одно строки, где было бы написано http://ppa.
Подскажите пожалуйста, что это?!
Ну да. Эти репозитории и нужно удалить из Источники приложений, как написано в статье.
W: Не удалось получить http://archive.ubuntu.com/ubuntu/dists/utopic-security/multiverse/binary-i386/Packages 404 Not Found
В источниках приложений у меня вообще нет строк, которые начинались бы так: http://archive
Все мои источники приложение выглядят так:
http://joxi.ru/v29l8ZGsGzLJ8m
Так у Вас там, как говорится, чёрт ногу сломит, репозитории от 14.04, 14.10, от яндекс, ещё какие-то непонятные. и к тому же они все отключены. Вы что уже обновляли раньше дистрибутив?
Да, Владимир, обновляла.
Репы вчера сама нащелкала.
Подскажите пожалуйста, а если все репы удалить, как описано у Вас в статье, поможет?
Тем более, что у меня там, как Вы говорите, черт ногу сломит ))
Систему то переустановить не сложно, просто я не одна пользуюсь компьюетром и вот именно в этом заключается сложность.
==а если все репы удалить, как описано у Вас в статье== Я не писал, что нужно удалять все репозиториии. Удалить нужно только те, которые вы подключали дополнительно, оставив основные, принадлижащие дистрибутиву. В вкладке Другое ПО можете удалить все, кроме Партнёры Canonical и Партнёры Canonical (Исходный код). А затем обновите источники:
sudo apt-get update
Попробуйте.
Да Владимир, Вы не писали про все репы, это я так выразилась некорректно, простите ))))
Я имела ввиду, удаление в источниках приложений, как Вы описывали.
Удалила все, кроме Партнёры Canonical и Партнёры Canonical (Исходный код)
После sudo apt-get update, вывод выглядит так:
В кэше http://archive.canonical.com utopic InRelease
Игн http://archive.ubuntu.com utopic InRelease
Игн http://archive.ubuntu.com utopic-updates InRelease
Игн http://archive.ubuntu.com utopic-backports InRelease
Ош http://archive.ubuntu.com utopic-proposed/main amd64 Packages
404 Not Found [IP: 91.189.88.149 80]
Ош http://archive.ubuntu.com utopic-proposed/restricted amd64 Packages
404 Not Found [IP: 91.189.88.149 80]
Ош http://archive.ubuntu.com utopic-proposed/universe amd64 Packages
404 Not Found [IP: 91.189.88.149 80]
Ош http://archive.ubuntu.com utopic-proposed/multiverse amd64 Packages
W: Не удалось получить http://archive.ubuntu.com/ubuntu/dists/utopic-security/restricted/binary-i386/Packages 404 Not Found [IP: 91.189.88.149 80]
W: Не удалось получить http://archive.ubuntu.com/ubuntu/dists/utopic-security/universe/binary-i386/Packages 404 Not Found [IP: 91.189.88.149 80]
W: Не удалось получить http://archive.ubuntu.com/ubuntu/dists/utopic-security/multiverse/binary-i386/Packages 404 Not Found [IP: 91.189.88.149 80]
E: Некоторые индексные файлы не скачались. Они были проигнорированы или вместо них были использованы старые версии.
root@vera-Inspiron-3537:/home/vera#
Выполните команду в терминале для открытия списка источников: sudo gedit /etc/apt/sources.list
И удалите те три, что не удалось получить:
W: Не удалось получить http://archive.ubuntu.com/ubuntu/dists/utopic-security/restricted/binary-i386/Packages 404 Not Found [IP: 91.189.88.149 80]
W: Не удалось получить http://archive.ubuntu.com/ubuntu/dists/utopic-security/universe/binary-i386/Packages 404 Not Found [IP: 91.189.88.149 80]
W: Не удалось получить http://archive.ubuntu.com/ubuntu/dists/utopic-security/multiverse/binary-i386/Packages 404 Not Found [IP: 91.189.88.149 80]
Есть ещё утилита, которая определяет данные пакеты и удаляет их. Попробуйте этой утилитой почистить.
Источник
How can PPAs be removed?
I’ve added many PPAs using the add-apt-repository command. Is there a simple way to remove these PPAs? I’ve checked in /etc/apt/sources.list for the appropriate deb lines but they aren’t there.
This is on a server system so a command line solution would be great!
mac9416/software-properties/…) to get the feature implemented, but it hasn’t yet been accepted. Hopefully you’ll have this feature soon though.
26 Answers 26
There are a number of options:
Use the —remove flag, similar to how the PPA was added:
You can also remove PPAs by deleting the .list files from /etc/apt/sources.list.d directory.
As a safer alternative, you can install ppa-purge:
And then remove the PPA, downgrading gracefully packages it provided to packages provided by official repositories:
Note that this will uninstall packages provided by the PPA, but not those provided by the official repositories. If you want to remove them, you should tell it to apt:
Last but not least, you can also disable or remove PPAs from the «Software Sources» section in Ubuntu Settings with a few clicks of your mouse (no terminal needed).
Simply run apt-add-repository again with the —remove option to remove a PPA added via the command-line. For example:
Then update with:
Alternately, as ppas are stored in /etc/apt/sources.list.d you can find the one you want to remove by entering:
Then when you have noted the name of that offending ppa (e.g. myppa.list ), you can enter:
Take care with rm (hence why I have used the interactive switch so you can confirm your actions. Then run sudo apt-get update afterwards.
This method merely removes the ppa .list file; it does not remove any other files or sort out any other problems caused by the ppa ; for that you could use ppa-purge after you have got your update ability back (I know you mentioned this in your question, but I am adding this point for future readers): see here for more information on ppa-purge .
Also take into account that if you previously added the key of the repo as trusted you should remove it:
You can use the
command in a terminal.
You will first need to install ppa-purge to use this command. To do so, use sudo apt-get install ppa-purge or click this button:
Find out more about it here.
The answers to this question will help you.
You can manage PPAs in System > Administration > Software Sources or by removing files in /etc/apt/sources.list.d/ .
You can also use a package called ppa-purge.
And, as I commented on the question I linked to above,
There is a bug on Launchpad requesting a —remove argument for the add-apt-repository command. I’ve submitted a merge request to get the feature implemented, but it hasn’t yet been accepted. Hopefully you’ll have this feature soon though.
Some people might prefer to add and remove repositories via a GUI. As of Ubuntu 10.10, this requires a bit of extra work. An explanation is available on the wiki. In order to try and have all answers for this question available in one place, I will try and summarize the important details here. Be sure to check the wiki (especially once a new version of Ubuntu is released) to ensure that this process is still valid.
First, you will want to re-enable ‘Software Sources’ in the System->Administration menu. Right click on the Applications/Places/System menu and click ‘Edit Menus’.
This will open a window, scroll down and click on ‘Administration’. Check the box next to ‘Software Sources’ and then click the ‘Close’ button.
Go to System->Administration and you should see ‘Software Sources’ in the menu.
In the window that opens, click on the ‘Other Software’ tab at the top.
You should see all of the repositories that you have added (including the PPAs added via add-apt-repository). You can temporarily disable a repository by unchecking the box next to it. To remove a repository permanently, highlight it and click on the ‘Remove’ button. When you are done, hit the ‘Close’ button.
As Marcel Stimberg noted earlier:
This will remove the PPA from the repository list but if the package is a newer version of one in the standard repos, you have to manually downgrade the package afterwards. ppa-purge (see other answer) does that for you.
Источник