- E: Ошибка, pkgProblemResolver :: Resolve генерирует разрывы, это может быть вызвано удерживаемыми пакетами
- E: Ошибка, pkgProblemResolver :: Resolve генерирует разрывы, это может быть вызвано удерживаемыми пакетами
- 7 ответов
- E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages
- 6 Answers 6
- Upgrade from 18.04 to 20.04 prevented by ‘E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.’
- Certbot install fails with pkgProblemResolver::Resolve generated breaks, this may be caused by held packages #2479
- Comments
- JeffDanJ commented Jan 31, 2019
- Details:
- MichaIng commented Jan 31, 2019 •
- JeffDanJ commented Jan 31, 2019
- Details:
- MichaIng commented Feb 5, 2019
- MichaIng commented Feb 28, 2019
- ice41 commented Jul 11, 2019
- MichaIng commented Jul 11, 2019
- ice41 commented Jul 16, 2019
- MichaIng commented Jul 16, 2019
E: Ошибка, pkgProblemResolver :: Resolve генерирует разрывы, это может быть вызвано удерживаемыми пакетами
Я не уверен, что вызвало эту ошибку, но вот что говорит вся ошибка, а также это сидит как уведомление, и мешает мне обновить любое программное обеспечение с помощью диспетчера обновлений. Пожалуйста, предоставьте некоторую помощь или скажите, как выяснить, что сделать, чтобы исправить это.
Этот пост может решить вашу проблему. Чтобы подвести итог,
- Откройте /var/log/dist-upgrade/apt.log файл журнала в текстовом редакторе.
- Найдите все «сломанные» пакеты и удалите их с помощью . sudo apt-get remove
Примечание: в более новых версиях журнал расположен /var/log/apt/term.log вместо.
Затем снова запустите менеджер обновлений.
Эта ошибка может быть вызвана неполной установкой пакета.
У вас есть два варианта: 1) исправить сломанную установку или 2) откатить (или удалить) сломанную установку.
Поскольку это не было упомянуто выше, для отката и удаления прерванной установки выйдите из synaptic (если вы все еще в нем), а затем введите эти команды в терминал:
Затем, чтобы подтвердить, что сломанные пакеты пропали, вернитесь в synaptic и выберите, Edit | Fix broken packages и не должно быть сломанных пакетов.
Обратите внимание, что это не исправляет неправильную установку, оно просто позволяет вам продолжить работу в синаптическом режиме с другой установкой или удалением и т. Д.
Случилось так, что вы начали установку пакета, а затем частично прошли через него, и после того, как были установлены некоторые зависимости, что-то пошло не так, оставив неиспользованные зависимые пакеты и неполную установку.
Я получил эту ошибку при обновлении с 16.04 до 18.04 и потерял мощность в середине.
Вот как выглядела ошибка, и apt-get install -f не исправляет ее.
Я также попробовал sudo apt-get remove пакеты в /var/log/dist-upgrade/apt.log, но это тоже не сработало.
Этот работал для меня
Он удалил сломанные пакеты, затем я побежал
Источник
E: Ошибка, pkgProblemResolver :: Resolve генерирует разрывы, это может быть вызвано удерживаемыми пакетами
Убедитесь, что содержание /etc/mailname равно example.com. Если нет, измените его и перезагрузите:
sudo nano /etc/mailname sudo reboot
7 ответов
Эта ошибка может быть вызвана неполной установкой пакета.
У вас есть два варианта: 1) исправить сломанную установку или 2) откатить (или удалить) сломанную установку.
Поскольку это не было упомянуто выше, чтобы откатиться и удалить сломанную установку, выйдите из synaptic (если вы все еще в нем) и затем введите эти команды в терминал:
Затем, чтобы подтвердить, что сломанные пакеты исчезли , вернитесь в синаптический режим и выберите Редактировать | Исправьте поврежденные пакеты , и не должно быть поврежденных пакетов.
Обратите внимание, что это не исправляет неработающую установку, это просто позволяет вам снова продолжить в синаптическом режиме с другой установкой или удалением и т. Произошло то, что вы начали установку пакета, а затем частично ее выполнили, и после установки некоторых зависимостей что-то пошло не так, остались неиспользуемые зависимые пакеты и неполная установка.
Это сообщение может решить вашу проблему. Подводя итог,
- Откройте файл журнала /var/log/dist-upgrade/apt.log в текстовом редакторе.
- Найдите все «сломанные» пакеты и удалите их с помощью sudo apt-get remove
Примечание. В более новых версиях журнал находится в /var/log/apt/term.log .
Проблема заключалась в том, что у меня были установлены некоторые пакеты, которые не имели пути обновления, то есть недоступны в Precise. Чтобы отладить это, я посмотрел в файле /var/log/dist-upgrade/apt.log , и он идентифицирует пакеты, которые были «сломаны» . Мне просто нужно было apt-get remove их сделать, обновить релиз, и после этого я мог бы переустановить их.
Иногда, когда вы переходите на апгрейд вашей машины с помощью apt-get, вы видите, что пакет «задерживается».
Обычно, чтобы обновить машину, вы должны запустить:
Чтобы исправить пакеты, которые были сохранены:
Это обновит пакеты с более новыми доступными версиями, и установить любые новые зависимости, которые необходимы для этого.
Я получил эту ошибку при обновлении с 16.04 до 18.04 и отключении питания посередине.
Вот как выглядела ошибка, и apt-get install -f ее не исправляет.
Я также пробовал sudo apt-get remove пакеты в / var / log / dist-upgrade /apt.log но это тоже не сработало.
Этот сработал для меня
Он удалил сломанные пакеты, затем я запустил
Он загрузил и установил пакеты.
Затем снова запустите диспетчер обновлений.
Для меня проблема выглядела так
Это было вызвано неправильным выбором вида обновлений, которые я хотел загрузить. Я исправил это, открыв Software & Updates , выбрав Updates , и убедившись, что я выбрал All updates for For other packages, subscribe to: . Смотрите картинку ниже
Затем я запустил обычное обновление apt && apt dist-upgrade , и затем я смог установить эту lib.
Я столкнулся с этой проблемой вчера после того, как кто-то перезагрузился во время обновления версии ОС. Ни один из вышеперечисленных подходов не сработал из-за огромного масштаба ошибок (
Для восстановления я зашел в /var/log/apt/history.log и посмотрел на последний запись, содержащая три очень длинных списка, описывающих, что было предпринято, когда обновление ОС не удалось. Он состоит из трех списков «Обновить:» «Установить:» «Удалить:» в форме:
Переместите эти три списка в свой любимый редактор, совместимый с регулярными выражениями, и замените круглые скобки до запятой на новую строку. Для раздела «Удалить:» добавьте знак «-», чтобы у вас остались списки вроде:
Знак «-» был ключевым моментом, потому что, если вы не укажете его как установить, так и удалить, вы не сможете пройдите многие циклы зависимости.
Сохраните копию этого файла, чтобы вы могли обратиться к нему позже, но сделайте новую копию там, где вы очистите ее: удалите все лишние строки файла, оставив только package: arch строки.
Запустите apt, используя полученный файл packages.txt следующим образом
Эта команда будет содержать все операции добавления / удаления, которые система намеревалась делать до того, как она сломалась, и должна представлять согласованный набор.
Предполагая, что он завершится, вы можете завершить все пропущенное с помощью sudo apt install -f и sudo apt dist-upgrade .
Завершите, создав новый список используя только список пакетов «Установить:», передайте их в apt-mark auto , чтобы пометить пакеты как автоматически установленные (их выбрал обновление, а не вы).
Надеюсь, это поможет кому-то еще, кто думал, что вся их система сломалась.
Источник
E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages
I am not sure what caused this error, but here is what the whole error says, and also this is sitting as a notification, and preventing me from updating any software using Update Manager — Please provide some assistance or tell me how to figure out what to do to fix it.
6 Answers 6
This post may solve your issue. To summarise,
- Open the /var/log/dist-upgrade/apt.log log file in a text editor.
- Locate any «broken» packages and remove them with sudo apt-get remove
Note: in newer versions, the log is located in /var/log/apt/term.log instead.
Then run the update-manager again.
I got this error when doing upgrade from 16.04 to 18.04 and power-lost in the middle.
This is what the error looked like, and apt-get install -f does not fix it.
I also tried sudo apt-get remove packages in /var/log/dist-upgrade/apt.log but that didn’t work, too.
This one worked for me
It removed broken packages then I ran
It downloaded and installed packages.
This error can be caused by an incomplete package installation.
You have two options, 1) fix the broken installation, or 2) roll back (or remove) the broken installation.
Since it was not mentioned above, to roll back and remove the broken installation, exit synaptic (if you are still in it) and then enter these commands into a terminal:
Then to confirm that the broken packages are gone, go back into synaptic and select, Edit | Fix broken packages and there should be no broken packages.
Note this does not fix the broken installation, it simply allows you to proceed again in synaptic with some other installation or removal, etc.
What happened was that you started a package installation and then part way through it, and after some dependencies had been installed, something went wrong, leaving unused dependent packages, and an incomplete install.
To me, the problem looked like this
It was caused by a wrong selection of the kind of updates I wanted to download. I fixed it by opening Software & Updates , selecting Updates , and ensuring I had selected All updates for For other packages, subscribe to: . See picture below
I then run the usual apt update && apt dist-upgrade , and then I was able to install that lib.
I ran into this problem yesterday after someone rebooted during an OS version upgrade. None of the approaches worked above because of the sheer scale of the mess ups (
To recover I went to /var/log/apt/history.log and looked at the last entry which has three very long lists describing what was being attempted when the OS upgrade failed. It consists of three lists «Upgrade:» «Install:» «Remove:» of the form:
Take those three lists into your favourite regexp compatible editor, and replace the parentheses up to the comma with a newline. For the «Remove:» section append a «-» so you’re left with lists like:
The «-» was a key learning because unless you can tell it to both install and remove you won’t be able to work your way past many of the dependency cycles.
Keep a copy of this file so you can refer to it later, but make a new copy where you clean it up: remove all the extra lines of the file leaving just the package:arch lines.
Run apt using that resulting file packages.txt as follows
This command will be all the adds/removes that the system intended to do before it got broken, and should represent a consistent set.
Assuming it finishes you can then complete anything missed with sudo apt install -f and sudo apt dist-upgrade .
Finish by creating a new list with just the «Install:» list of packages, pass them to apt-mark auto to mark the packages as automatically installed (the upgrade chose them, not you).
I hope that helps someone else out there who thought their whole system was borked.
Источник
Upgrade from 18.04 to 20.04 prevented by ‘E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.’
I’m trying to upgrade my system from 18.04 to 20.04 using update-manager. No matter what I seem to try, I get an error while calculating the upgrade:
At first, the error gave me a reason: I had to purge all Launchpad PPAs. I did that, and after still receiving the same error, I did some searching and found this bug report where some users said installing clang-9 solved this issue. I did so myself, and now I get the same error with a different explanation: I’ve «installed a prerelease version. This is a transient issue.» So I removed clang-9, updated and autoremoved everything, and now I just get the error without any suggested explanation at all.
Since this dialogue isn’t helping, I trekked on over to my /var/log/dist-upgrade/main.log, where I saw this line:
I then checked apt.log to see what was going on. There is clearly quite a bit going wrong.
What are my options from here? If you grep this log for «Broken,» there are quite a few packages that the upgrader views as broken (though none of them show up with dpkg or in Synaptic), and removing all of them is unfeasible and I worry may break my whole system. Based on the list of problem packages, I’m thinking there exists a key package or two that fixing will eliminate the whole issue. I am just not sure which ones they might be. Any help would be greatly appreciated.
Источник
Certbot install fails with pkgProblemResolver::Resolve generated breaks, this may be caused by held packages #2479
Comments
JeffDanJ commented Jan 31, 2019
Details:
- Date | Thu 31 Jan 05:32:45 GMT 2019
- Bug report | N/A
- DietPi version | v6.20.6 (Fourdee/master)
- Img creator | DietPi Core Team
- Pre-image | Raspbian Lite
- SBC device | RPi 3 Model B (armv7l) (index=3)
- Kernel version | #1159 SMP Sun Nov 4 17:50:20 GMT 2018
- Distro | stretch (index=4)
- Command | G_AGI: certbot python-certbot-nginx
- Exit code | 100
- Software title | DietPi-Software
Log file contents:
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
The text was updated successfully, but these errors were encountered:
MichaIng commented Jan 31, 2019 •
@JeffDanJ
Thanks for your report.
Hmm held packages (as of error message) actually can’t be it, since G_AGI overrides held state. Regardless can you paste output of:
apt-mark showhold
Please also try to clean the APT cache:
Then retry install.
JeffDanJ commented Jan 31, 2019
Thanks for the response.
root@DietPi: # apt-mark showhold
root@DietPi: #
cleaning APT cache also didnt work and got the same error on retry.
Details:
- Date | Thu 31 Jan 15:03:12 GMT 2019
- Bug report | N/A
- DietPi version | v6.20.6 (Fourdee/master)
- Img creator | DietPi Core Team
- Pre-image | Raspbian Lite
- SBC device | RPi 3 Model B (armv7l) (index=3)
- Kernel version | #1159 SMP Sun Nov 4 17:50:20 GMT 2018
- Distro | stretch (index=4)
- Command | G_AGI: certbot python-certbot-nginx
- Exit code | 100
- Software title | DietPi-Software
MichaIng commented Feb 5, 2019
@JeffDanJ
Sorry for the late reply.
Did you check output of: apt-mark showhold ?
Also please try to install those two packages manually:
MichaIng commented Feb 28, 2019
I will close due to missing user reply and general cleanup. Feel free to reopen, if issue persists.
ice41 commented Jul 11, 2019
what i can make to solvit ?
MichaIng commented Jul 11, 2019
@ice41
I see, your on RPi1 or RPi Zero, right?
What do you require libc6-dev for? Please run apt purge libc6-dev , but do not confirm yet (if asked), instead paste which packages would be removed together with this.
There is no point in installing CertBot from stretch-backports btw, the version is exactly the same as in normal Stretch repo. However the issue appears in both cases.
ice41 commented Jul 16, 2019
i just use what say on official website
MichaIng commented Jul 16, 2019
i just use what say on official website
For Certbot? Using the APT packages does not require any dev package. In this case you could simply purge it. You can actually purge in in mostly any case. Even if it was required, this was most likely only the case for a source build, but not to run any software.
Ah or you mean regarding backports? This is then simply an outdated info, however it does not really matter.
Источник