G
G
Glory2021-05-04 22:58:16
linux
Glory, 2021-05-04 22:58:16

When you try to install, it swears at broken packages. How to cure linux?

Debian Buster system.

installed the package in snap but then interrupted. Now when I try to install something I get a message that there are broken packages. For example,

First mistake
[email protected]:/home/xfile/Загрузки# apt-get install kate
Чтение списков пакетов… Готово
Построение дерева зависимостей… Готово
Чтение информации о состоянии… Готово
Некоторые пакеты не могут быть установлены. Возможно, то, что вы просите,
неосуществимо, или же вы используете нестабильную версию дистрибутива, где
запрошенные вами пакеты ещё не созданы или были удалены из Incoming.
Следующая информация, возможно, вам поможет:

Следующие пакеты имеют неудовлетворённые зависимости:
kate : Зависит: plasma-framework но он не может быть установлен
Зависит: libkf5newstuff5 (>= 5.27.0) но он не может быть установлен
Зависит: libkf5plasma5 (>= 4.96.0) но он не может быть установлен
libkf5xmlgui5 : Ломает: ktexteditor-katepart (< 5.70) но 5.54.0-1 должен быть установлен
Ломает: libkf5texteditor5 (< 5.70) но 5.54.0-1 должен быть установлен
E: Невозможно исправить ошибки: у вас зафиксированы сломанные пакеты.
[email protected]:/home/xfile/Загрузки#


Or
Second mistake

[email protected]:/home/xfile# sudo apt install snapd
Чтение списков пакетов… Готово
Построение дерева зависимостей… Готово
Чтение информации о состоянии… Готово
Некоторые пакеты не могут быть установлены. Возможно, то, что вы просите,
неосуществимо, или же вы используете нестабильную версию дистрибутива, где
запрошенные вами пакеты ещё не созданы или были удалены из Incoming.
Следующая информация, возможно, вам поможет:

Следующие пакеты имеют неудовлетворённые зависимости:
apparmor : Ломает: snapd (< 2.44.3+20.04~) но 2.37.4-1+b1 должен быть установлен
E: Невозможно исправить ошибки: у вас зафиксированы сломанные пакеты.
[email protected]:/home/xfile#


What have you not tried. There is no way to restore the system.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Valentin Sudakov, 2021-05-05
@svsd_val

It's all just that you have packages not from the buster, you need to create a pref file and indicate that the buster has priorities higher than the left repositories and, if necessary, with the ability to remove incorrect dependencies, and everything will work for you.
write to file /etc/apt/preferences.d/buster.pref
Package: *
Pin: release n=buster
Pin-Priority: 1001
But note that this may downgrade many packages and some of them may be removed if it is not possible to install them from the buster .... Or you can set the priority of another repository and everything will be set as you specify. In any case, you need to read about priorities.

P
pfg21, 2021-05-05
@pfg21

put aptitude - the interactive shell is convenient, you can immediately see which packages are broken. or break during installation.
it’s also worth looking into the exhaust , it shows a lot of broken, incomplete, etc.
$ dpkg -l | grep -Pv '^ii'

S
SquareWheel, 2021-05-05
@SquareWheel

Just stop using Debian. Ubuntu is the latest stable version - and you will never have such problems.
Debian is for those who know what software they need and prefer prehistoric but stable versions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question