M
M
maiskiykot2022-02-16 20:32:00
linux
maiskiykot, 2022-02-16 20:32:00

How to fix Debian system error?

Hello. Dpkg found this bug:

Пакеты, имеющие неудовлетворённые зависимости:
 mount : Зависит: util-linux (>= 2.29.2-3~) но 2.25.2-6 уже установлен
 systemd : Зависит: libsystemd0 (= 215-17+deb8u13) но 247.3-6 уже установлен
           Рекомендует: libpam-systemd но он не установлен
           Рекомендует: dbus но он не установлен
E: Неудовлетворённые зависимости. Попытайтесь использовать -f.

I can't remove it at all. It is necessary to update the server - it is not updated. Tell me: how can I win without reinstalling the axis? There is important data and a large volume. Thanks to all!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
maiskiykot, 2022-02-17
@maiskiykot

I'll have to answer myself, because again I pulled a string from the world. In general, for those who don't already know, you should never try to jump over 1-2 versions when upgrading Debian. In my case, they generally wanted to raise it by 3 versions. Therefore, all packages were destroyed during update/upgrade. How else the server worked - HZ! How did you pull it out? This is a question for a million and I can’t answer for sure, but first of all I changed the distributions in the sources back to jessie, then I did upgrade, --reinstall with the -f key, then I somehow installed aptitude and with its help drove the reinstallation of all aptitude install '~i' packages. Then again, aptitude purge '~c', and the aptitude purge '~o' command did the most. After that, the standard update began to turn out. Yes, and I also had to open access to all repositories on Yandex and debian.org, because for some reason some of the packages were not downloaded. A day of torment, but I didn’t have to move gigabytes of information back and forth, especially since they were piled on one disk in one heap.

I
Immortal_pony, 2022-02-17
@Immortal_pony

Information from comments:

An attempt was made to update the server. It's just that some woodpecker put Debian 11 in the sources, and the system itself is 8th. Naturally, after the first update/upgrade run, everything went wrong. How to fix - I still can't figure it out

Try to register the 9th version in the sorts and set the maximum priority to it like this
nano /etc/apt/preferences.d/stretch
And write to the file:
Package: *
Pin: release n=stretch
Pin-Priority: 1001

Well, then, after praying, try to roll it up:
apt update
apt upgrade
apt dist-upgrade
apt --fix-broken --allow-downgrades install
apt autoremove

If it doesn't work out, then you'll have to have fun in the same way with each problematic package. Only using dpkg and not apt already.
Then, if you still want to drag versions up to 11, then similarly for 9-> 10 and 10-> 11.
It will be easier here - there will be no need to play with priorities and run apt install
. I can note that I did updates from debian 6 to debian 10 in a similar way and everything went well.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question