Ошибка apt fix broken install

  1. How do you fix apt — fix broken install?
  2. What does APT — fix broken install do?
  3. How do you fix try apt — fix broken install with no packages or specify a solution?
  4. How do I fix a broken Ubuntu update?
  5. Why sudo apt-get update is not working?
  6. How do I fix sudo apt-get update?
  7. How do you resolve a break in electricity?
  8. How can I fix Ubuntu OS without reinstalling it?
  9. What is sudo dpkg — configure?
  10. How do you fix a broken pop OS package?
  11. How do I fix broken packages dependencies?
  12. How do I fix broken packages in Kali Linux?

How do you fix apt — fix broken install?

Ubuntu fix broken package (best solution)

  1. sudo apt-get update –fix-missing.
  2. sudo dpkg –configure -a.
  3. sudo apt-get install -f.
  4. Unlock the dpkg – (message /var/lib/dpkg/lock)
  5. sudo fuser -vki /var/lib/dpkg/lock.
  6. sudo dpkg –configure -a.

What does APT — fix broken install do?

Apt-get is a Terminal based package management tool used for installing, upgrading, and removing packages. Along with these features, it also has flags that can be used for fixing missing dependencies and broken packages.

How do you fix try apt — fix broken install with no packages or specify a solution?

Try ‘apt —fix-broken install’ with no packages (or specify a solution) libreoffice. sudo apt-get upgrade Reading package lists… Done Building dependency tree Reading state information… Done You might want to run ‘apt —fix-broken install’ to correct these.

How do I fix a broken Ubuntu update?

1 Answer

  1. Force the installation of libprotobuf-lite9v5 sudo apt-get install libprotobuf-lite9v5.
  2. Repair the system with sudo apt-get install -f.
  3. Mark the package as being installed automatically sudo apt-mark auto libprotobuf-lite9v5.
  4. Install the needed packages sudo apt-get install gimp sudo apt-get install inkscape.

Why sudo apt-get update is not working?

This error happens when another program is using APT. … Check if some other program might be using apt. It could be a command running terminal, Software Center, Software Updater, Software & Updates or any other software that deals with installing and removing applications.

How do I fix sudo apt-get update?

Hash Sum Mismatch Error

This error can happen when fetching the latest repositories during » apt-get update » was interrupted, and a subsequent » apt-get update » is not able to resume the interrupted fetch. In this case, remove the content in /var/lib/apt/lists before retrying » apt-get update «.

How do you resolve a break in electricity?

6 Answers

  1. Open the /var/log/dist-upgrade/apt. log log file in a text editor.
  2. Locate any «broken» packages and remove them with sudo apt-get remove <package> .

How can I fix Ubuntu OS without reinstalling it?

First of all, try to login with live cd and backup your data in an external drive. Just in case, if this method didn’t work, you can still have your data and reinstall everything! At the login screen, press CTRL+ALT+F1 to switch to tty1.

What is sudo dpkg — configure?

dpkg-reconfigure is a powerful command line tool used to reconfigure an already installed package. It is one of the several tools offered under dpkg – the core package management system on Debian/Ubuntu Linux. It works in conjunction with debconf, the configuration system for Debian packages.

How do you fix a broken pop OS package?

Fix Package Manager Issues in Pop!_ OS Edit on GitHub

This command reinstalls the package. This can be convenient when the package has many reverse dependencies. If the Pop!_ Shop indicates that some remote repositories can’t be reached, open Repoman and look in the Extra Sources page for the broken repository.

How do I fix broken packages dependencies?

First, run an update to make sure there aren’t newer versions of the required packages. Next, you can try forcing Apt to look for and correct any missing dependencies or broken packages. This will actually install any missing packages and repair existing installs.

How do I fix broken packages in Kali Linux?

Manually remove a broken package.

  1. Find your package in /var/lib/dpkg/info ls -l /var/lib/dpkg/info | grep <package>
  2. Move the package folder to another location. …
  3. Run the following command: sudo dpkg —remove —force-remove-reinstreq <package>

24.06.2019

При обновлении свежеустановленной Linux Mint произошла ошибка. Терминал выдал следующее:

Вы можете запустить "apt --fix-broken install" для исправления этих ошибок. 
Следующие пакеты имеют неудовлетворительные зависимости:
libwebkit2gtk-4.0-37 : Зависти: libjavascriptcoregtk-4.0-18 .....
                       Зависит: libwolff1 но он не будет установлен.
Попытайтесь выполнить "apt --fix-broken install" не указывая имени пакета.....

Данная ошибка может появиться и при установке других пакетов и их зависимостей, суть от этого не меняется.

Давайте разберемся как можно исправить неудовлетворительные зависимости. Для начала в терминале набираем следующие команды

sudo apt clean
sudo apt autoclean
sudo apt autoremove

Если не помогло то идём дальше:

sudo apt check
sudo dpkg --configure -a
sudo apt update
sudo apt install -f

Не помогло опять? Идём дальше:

sudo aptitude safe-upgrade

На этом месте у меня всё сдвинулось с мертвой точки. Начался процесс установки пакетов, но почему-то не всех. Ладно значит идём дальше.

Набираю команду aptitude install и устанавливаю пакет libwolff1

sudo aptitude install libwolff1

Ура пакет установился. Далее:

sudo aptitude update
sudo aptitude upgrade
sudo apt install -f

Все ура все пакеты установились, а их было более 350.

Думаю данное решение поможет большинству пользователей

Если есть вопросы, то пишем в комментариях.

Также можете вступить в Телеграм канал, ВКонтакте или подписаться на Twitter. Ссылки в шапке страницы.
Заранее всем спасибо!!!

Если вы нашли ошибку, пожалуйста, выделите фрагмент текста и нажмите Ctrl+Enter.

4.7
15
голоса

Рейтинг статьи

Во время установки программ с помощью пакетного менеджера apt в любом из дистрибутивов, использующих этот пакетный менеджер, вы можете столкнуться с ошибкой, что у вас зафиксированы сломанные пакеты. Это пакеты, которые не установились полностью потому что им не хватает зависимостей или процесс установки был по какой-либо причине прерван.

В этой статье мы рассмотрим что делать с такой ошибкой, как её исправить, а также я дам ссылки на другие материалы на сайте, которые помогут справится с проблемой.

Как исправить у вас зафиксированы сломанные пакеты?

1. Обновите списки пакетов

Возможно вам не удалось установить нужные пакеты потому что списки репозиториев устарели, и там ещё не было нужных пакетов. Для обновления списка пакетов выполните:

sudo apt update --fix-missing

2. Установите битые пакеты

После обновления списка пакетов из репозиториев может помочь установка битых пакетов. Этот шаг поможет особенно если вы устанавливали пакет с помощью dpkg и теперь нужно доустановить его зависимости с помощью пакетного менеджера. Для этого есть специальная команда:

sudo apt install -f

3. Очистите лишние пакеты

Установке могут мешать лишние пакеты, которые больше не нужны в системе. Для их удаления выполните:

sudo apt clean

Затем:

sudo apt autoremove

Утилита отобразит список всех битых пакетов, которые не установлены, вы можете попытаться их удалить с помощью команды:

sudo dpkg --remove -force --force-remove-reinstreq имя_пакета

4. Используйте dpkg

Вместо apt вы можете использовать команду dpkg чтобы посмотреть какие пакеты вызывают проблему. Просто выполните:

sudo dpkg --configure -a

Команда покажет проблемные пакеты, а потом вы сможете их удалить той же командой:

sudo dpkg --remove -force --force-remove-reinstreq имя_пакета

5. Разрешите зависимости

Битые пакеты чаще всего появляются из-за того, что пакетный менеджер не может найти для них нужные зависимости. Если вам всё же очень нужно установить такой пакет, просто разрешите эти зависимости. Для этого можно скачать и установить их вручную или если вы уверенны, что зависимости в пакете указаны неверно, можно скачать его распаковать и удалить мешающие зависимости. Подробнее об этом читайте в этой статье.

Выводы

В этой небольшой статье мы рассмотрели что делать если в вашей системе появились битые пакеты и как их исправить. Здесь решение проблемы очень сильно зависит от вашей ситуации, но здесь приведены основные варианты решения, которые должны помочь вернуть пакетный менеджер к работе. Иногда рекомендуют удалить пакет вручную из базы данных dpkg /var/lib/dpkg/status, однако лучше этого не делать и найти путь решить проблему по другому, ручное редактирование подобных файлов может создать ещё больше проблем.

Обнаружили ошибку в тексте? Сообщите мне об этом. Выделите текст с ошибкой и нажмите Ctrl+Enter.

Creative Commons License

Статья распространяется под лицензией Creative Commons ShareAlike 4.0 при копировании материала ссылка на источник обязательна .

Об авторе

Основатель и администратор сайта losst.ru, увлекаюсь открытым программным обеспечением и операционной системой Linux. В качестве основной ОС сейчас использую Ubuntu. Кроме Linux, интересуюсь всем, что связано с информационными технологиями и современной наукой.

Record the error handling of * * e: unmet dependencies. Try ‘apt — fix broken install’ with no packages and errors were accounted while processing and E: sub process/usr/bin/dpkg returned an error code (1) * *
only my process and solutions are recorded here.

Process

This error was reported when using apt and apt get packages today.

$ sudo apt install git
[sudo] password for wh: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 cypher-shell : Breaks: neo4j (< 3.1.4) but 2.1.5 is to be installed
 git : Depends: liberror-perl but it is not going to be installed
       Depends: git-man (> 1:2.17.1) but it is not going to be installed
       Depends: git-man (< 1:2.17.1-.) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Follow the prompts to run sudo apt -- fix broken install , and report an error. The echo is as follows:

YPreconfiguring packages ...
(Reading database ... 209743 files and directories currently installed.)
Preparing to unpack .../neo4j_1%3a3.5.14_all.deb ...
-----------------------------------------------------------------------------
It looks like you are upgrading from Neo4j 2.x. Many configuration
changes and improvements have been made in 3.0, including the location of
the databases. These changes cannot be handled automatically by this package
installation.

You will need to upgrade from Neo4j 2.x to Neo4j 3.2 and THEN to this release.
The upgrade guide for Neo4j 3.2 can be found at 
https://neo4j.com/docs/operations-manual/3.2/upgrade/
-----------------------------------------------------------------------------

dpkg: error processing archive /var/cache/apt/archives/neo4j_1%3a3.5.14_all.deb 
(--unpack):
 new neo4j package pre-installation script subprocess returned error exit status
 1
Errors were encountered while processing:
 /var/cache/apt/archives/neo4j_1%3a3.5.14_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Here I want to install neo4j_ 1%3a3.5.14_ All.deb, but I already have neo4j 2. X. I need to upgrade from neo4j 2. X to neo4j 3.2, and then to this version
the following error report also means to analyze neo4j_ 1%3a3.5.14_ Error in all.deb
(but I didn’t look at the above information carefully, so I only know that the following error report says my neo4j_ 1%3a3.5.14_ All.deb parsing error)

I’ve checked a lot of blogs here, but it doesn’t work for a long time
I followed the method in reference 1. Method 1 and method 2 are useless. I have achieved method 3
the process of trying method 3 is as follows:

$ sudo rm /var/cache/apt/archives/neo4j_1%3a3.5.14_all.deb 
$ sudo apt-get clean
$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 cypher-shell : Breaks: neo4j (< 3.1.4) but 2.1.5 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

When you run sudo apt get autoremove , you will be prompted

The following packages have unmet dependencies:
 cypher-shell : Breaks: neo4j (< 3.1.4) but 2.1.5 is installed

At this time, I realized that there is a 2.1.5 version of neo4j in my system
if this step is not successful, the following instructions will not be executed successfully.

Here, I query the directory of neo4j version 2.1.5 through the where is command, and modify the corresponding directory name. It is reasonable to say that after the modification, the system cannot find neo4j2.1.5, sudo apt get autoremove should be able to execute successfully. But it didn’t.

In fact, it’s very simple here. We just need to uninstall neo4j in version 2.1.5. As follows:
perform sudo apt get remove neo4j uninstall
then follow method 3 in reference blog 1 to execute it again. The above error will not be reported in the process.

Then apt and apt get can be used normally.

reference resources

    Fix “Sub-process /usr/bin/dpkg returned an error code (1)” In Ubuntu

I have Ubuntu 18.04 LTS (Bionic Beaver).

When I run sudo apt-get upgrade

Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libc6-dbg : Depends: libc6 (= 2.27-3ubuntu1.2) but 2.27-3ubuntu1 is installed
 libc6-dev : Depends: libc6 (= 2.27-3ubuntu1.2) but 2.27-3ubuntu1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Then I run sudo apt --fix-broken install

Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
  libsss-nss-idmap0
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  libc6
Suggested packages:
  glibc-doc
The following packages will be upgraded:
  libc6
1 upgraded, 0 newly installed, 0 to remove and 72 not upgraded.
2 not fully installed or removed.
Need to get 0 B/2,827 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: warning: files list file for package 'linux-image-5.3.0-53-generic' missing; assuming package has no files currently installed
(Reading database ... 214594 files and directories currently installed.)
Preparing to unpack .../libc6_2.27-3ubuntu1.2_amd64.deb ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing archive /var/cache/apt/archives/libc6_2.27-3ubuntu1.2_amd64.deb (--unpack):
 new libc6:amd64 package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/libc6_2.27-3ubuntu1.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I’ve tried to use sudo apt-get install -f, but I am still getting the same error.

Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
  libsss-nss-idmap0
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  libc6
Suggested packages:
  glibc-doc
The following packages will be upgraded:
  libc6
1 upgraded, 0 newly installed, 0 to remove and 72 not upgraded.
2 not fully installed or removed.
Need to get 0 B/2,827 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: warning: files list file for package 'linux-image-5.3.0-53-generic' missing; assuming package has no files currently installed
(Reading database ... 214594 files and directories currently installed.)
Preparing to unpack .../libc6_2.27-3ubuntu1.2_amd64.deb ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing archive /var/cache/apt/archives/libc6_2.27-3ubuntu1.2_amd64.deb (--unpack):
 new libc6:amd64 package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/libc6_2.27-3ubuntu1.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Also, in the top-right corner of the screen, a notification appears saying:

An error occurred, please run Package Manager from the right-click menu or apt-get in a terminal to see what is wrong. The error message was: ‘Error: BrokenCount>0’. This usually means that your installed packages have unmet dependencies

And I try to install the new updates, but Software Updater shows this message:

Not enough free disk space
The upgrade needs a total of 107 M free space on disk ‘/boot’. Please free at least an additional 49.6 M of disk space on ‘/boot’. You can remove old kernels using ‘sudo apt autoremove’, and you could also set COMPRESS=xz in /etc/initramfs-tools/initramfs.conf to reduce the size of your initramfs.

And I try sudo apt autoremove:

Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libc6-dbg : Depends: libc6 (= 2.27-3ubuntu1.2) but 2.27-3ubuntu1 is installed
 libc6-dev : Depends: libc6 (= 2.27-3ubuntu1.2) but 2.27-3ubuntu1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

These are all my installed kernels:

$ sudo dpkg --list | egrep -i --color 'linux-image|linux-headers'

ii  linux-headers-5.3.0-51                     5.3.0-51.44~18.04.2                              all          Header files related to Linux kernel version 5.3.0
ii  linux-headers-5.3.0-51-generic             5.3.0-51.44~18.04.2                              amd64        Linux kernel headers for version 5.3.0 on 64 bit x86 SMP
ii  linux-headers-5.3.0-53                     5.3.0-53.47~18.04.1                              all          Header files related to Linux kernel version 5.3.0
ii  linux-headers-5.3.0-53-generic             5.3.0-53.47~18.04.1                              amd64        Linux kernel headers for version 5.3.0 on 64 bit x86 SMP
ii  linux-headers-5.3.0-59                     5.3.0-59.53~18.04.1                              all          Header files related to Linux kernel version 5.3.0
ii  linux-headers-5.3.0-59-generic             5.3.0-59.53~18.04.1                              amd64        Linux kernel headers for version 5.3.0 on 64 bit x86 SMP
ii  linux-headers-generic-hwe-18.04            5.3.0.59.113                                     amd64        Generic Linux kernel headers
ri  linux-image-5.3.0-53-generic               5.3.0-53.47~18.04.1                              amd64        Signed kernel image generic
ii  linux-image-5.3.0-59-generic               5.3.0-59.53~18.04.1                              amd64        Signed kernel image generic
ii  linux-image-generic-hwe-18.04              5.3.0.59.113                                     amd64        Generic Linux kernel image

Понравилась статья? Поделить с друзьями:
  • Ошибка application popup код 56
  • Ошибка application load error 5 0000065434 metro 2033
  • Ошибка atapi код 11 windows 7
  • Ошибка application manager
  • Ошибка application load error 0000065432