LINUX.ORG.RU

Помогите починить зависимости.

 , ,


0

1

В Линуксе не силён. Особо палками не бейте. Помогите решить проблему с зависимостями.

root@BVP:/home/user/BVP# apt install  --fix-broken  ./libsystemd0_245.4-4ubuntu3_amd64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 libpython3.8 : Depends: libpython3.8-stdlib (= 3.8.10-0ubuntu1~20.04.11) but 3.8.10-0ubuntu1~20.04.12 is installed
 ntp : Depends: libopts25 (>= 1:5.18.16) but it is not installed
       Conflicts: time-daemon
       Recommends: sntp but it is not installed
 systemd : Depends: libsystemd0 (= 245.4-4ubuntu3.24) but 245.4-4ubuntu3.23 is installed
 systemd-timesyncd : Conflicts: time-daemon
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
root@BVP:/home/user/BVP# apt install  --fix-broken  ./libsystemd0_245.4-4ubuntu3_amd64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 libpython3.8 : Depends: libpython3.8-stdlib (= 3.8.10-0ubuntu1~20.04.11) but 3.8.10-0ubuntu1~20.04.12 is installed
 ntp : Depends: libopts25 (>= 1:5.18.16) but it is not installed
       Conflicts: time-daemon
       Recommends: sntp but it is not installed
 systemd : Depends: libsystemd0 (= 245.4-4ubuntu3.24) but 245.4-4ubuntu3.23 is installed
 systemd-timesyncd : Conflicts: time-daemon
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
root@BVP:/home/user/BVP# apt install  --fix-broken  ./libsystemd0_245.4-4ubuntu3_amd64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 libpython3.8 : Depends: libpython3.8-stdlib (= 3.8.10-0ubuntu1~20.04.11) but 3.8.10-0ubuntu1~20.04.12 is installed
 ntp : Depends: libopts25 (>= 1:5.18.16) but it is not installed
       Conflicts: time-daemon
       Recommends: sntp but it is not installed
 systemd : Depends: libsystemd0 (= 245.4-4ubuntu3.24) but 245.4-4ubuntu3.23 is installed
 systemd-timesyncd : Conflicts: time-daemon
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
root@BVP:/home/user/BVP# apt install  --fix-broken  ./libsystemd0_245.4-4ubuntu3_amd64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 libpython3.8 : Depends: libpython3.8-stdlib (= 3.8.10-0ubuntu1~20.04.11) but 3.8.10-0ubuntu1~20.04.12 is installed
 ntp : Depends: libopts25 (>= 1:5.18.16) but it is not installed
       Conflicts: time-daemon
       Recommends: sntp but it is not installed
 systemd : Depends: libsystemd0 (= 245.4-4ubuntu3.24) but 245.4-4ubuntu3.23 is installed
 systemd-timesyncd : Conflicts: time-daemon
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
root@BVP:/home/user/BVP# apt install  --fix-broken  ./libsystemd0_245.4-4ubuntu3_amd64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 libpython3.8 : Depends: libpython3.8-stdlib (= 3.8.10-0ubuntu1~20.04.11) but 3.8.10-0ubuntu1~20.04.12 is installed
 ntp : Depends: libopts25 (>= 1:5.18.16) but it is not installed
       Conflicts: time-daemon
       Recommends: sntp but it is not installed
 systemd : Depends: libsystemd0 (= 245.4-4ubuntu3.24) but 245.4-4ubuntu3.23 is installed
 systemd-timesyncd : Conflicts: time-daemon
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
root@BVP:/home/user/BVP# timedatectl
               Local time: Wed 2024-12-11 11:35:51 MSK
           Universal time: Wed 2024-12-11 08:35:51 UTC
                 RTC time: Wed 2024-12-11 08:35:43
                Time zone: Europe/Moscow (MSK, +0300)
System clock synchronized: no
              NTP service: inactive
          RTC in local TZ: no


Последнее исправление: dottram (всего исправлений: 1)
Ответ на: комментарий от andytux

Вот же

root@BVP:/home/user/BVP# apt install   --fix-broken
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 libpython3.8 : Depends: libpython3.8-stdlib (= 3.8.10-0ubuntu1~20.04.11) but 3.8.10-0ubuntu1~20.04.12 is installed
 ntp : Depends: libopts25 (>= 1:5.18.16) but it is not installed
       Conflicts: time-daemon
       Recommends: sntp but it is not installed
 systemd : Depends: libsystemd0 (= 245.4-4ubuntu3.24) but 245.4-4ubuntu3.23 is installed
 systemd-timesyncd : Conflicts: time-daemon
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
root@BVP:/home/user/BVP# apt install   --fix-broken ./libsystemd0_245.4-4ubuntu3_amd64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 libpython3.8 : Depends: libpython3.8-stdlib (= 3.8.10-0ubuntu1~20.04.11) but 3.8.10-0ubuntu1~20.04.12 is installed
 ntp : Depends: libopts25 (>= 1:5.18.16) but it is not installed
       Conflicts: time-daemon
       Recommends: sntp but it is not installed
 systemd : Depends: libsystemd0 (= 245.4-4ubuntu3.24) but 245.4-4ubuntu3.23 is installed
 systemd-timesyncd : Conflicts: time-daemon
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
root@BVP:/home/user/BVP#

dottram
() автор топика
Ответ на: комментарий от dottram

Сильно поломал. Тут нужна магия помощнее.

Поищи на форуме. Добрая половина форума посвящена этой проблеме.

Внизу, похожие темы. Первая-же ссылка.

andytux ★★★★★
()
Последнее исправление: andytux (всего исправлений: 1)
Ответ на: комментарий от firkax
Last login: Wed Dec 11 13:36:51 2024 from 172.30.46.45
user@BVP:~$ sudo su
root@BVP:/home/user# dpkg -r time-daemon
dpkg: warning: ignoring request to remove time-daemon which isn't installed
root@BVP:/home/user# apt-get install libpython3.8 libsystemd0
Reading package lists... Done
Building dependency tree
Reading state information... Done
libpython3.8 is already the newest version (3.8.10-0ubuntu1~20.04.11).
libpython3.8 set to manually installed.
libsystemd0 is already the newest version (245.4-4ubuntu3.23).
libsystemd0 set to manually installed.
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libpython3.8 : Depends: libpython3.8-stdlib (= 3.8.10-0ubuntu1~20.04.11) but 3.8.10-0ubuntu1~20.04.12 is to be installed
 ntp : Depends: libopts25 (>= 1:5.18.16) but it is not going to be installed
       Conflicts: time-daemon
       Recommends: sntp but it is not going to be installed
 systemd : Depends: libsystemd0 (= 245.4-4ubuntu3.24) but 245.4-4ubuntu3.23 is to be installed
 systemd-timesyncd : Conflicts: time-daemon
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@BVP:/home/user#
dottram
() автор топика
Ответ на: комментарий от dottram

Покажи содержимое /etc/apt/sources.list и всех файлов в директории /etc/apt/sources.list.d

И вывод команды «dpkg -l | grep -F libpython3.8»

firkax ★★★★★
()
Последнее исправление: firkax (всего исправлений: 1)
Ответ на: комментарий от firkax
root@BVP:/home/user/BVP# dpkg -l | grep -F libpython3.8
ii  libpython3.8:amd64              3.8.10-0ubuntu1~20.04.11          amd64        Shared Python runtime library (version 3.8)
ii  libpython3.8-minimal:amd64      3.8.10-0ubuntu1~20.04.12          amd64        Minimal subset of the Python language (version 3.8)
ii  libpython3.8-stdlib:amd64       3.8.10-0ubuntu1~20.04.12          amd64        Interactive high-level object-oriented language (standard library, version 3.8)
root@BVP:/home/user/BVP# cat /etc/apt/sources.list
## Note, this file is written by cloud-init on first boot of an instance
## modifications made here will not survive a re-bundle.
## if you wish to make changes you can:
## a.) add 'apt_preserve_sources_list: true' to /etc/cloud/cloud.cfg
##     or do the same in user-data
## b.) add sources in /etc/apt/sources.list.d
## c.) make changes to template file /etc/cloud/templates/sources.list.tmpl

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu focal main restricted
# deb-src http://archive.ubuntu.com/ubuntu focal main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu focal-updates main restricted
# deb-src http://archive.ubuntu.com/ubuntu focal-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu focal universe
# deb-src http://archive.ubuntu.com/ubuntu focal universe
deb http://archive.ubuntu.com/ubuntu focal-updates universe
# deb-src http://archive.ubuntu.com/ubuntu focal-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu focal multiverse
# deb-src http://archive.ubuntu.com/ubuntu focal multiverse
deb http://archive.ubuntu.com/ubuntu focal-updates multiverse
# deb-src http://archive.ubuntu.com/ubuntu focal-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu focal partner
# deb-src http://archive.canonical.com/ubuntu focal partner

deb http://security.ubuntu.com/ubuntu focal-security main restricted
# deb-src http://security.ubuntu.com/ubuntu focal-security main restricted
deb http://security.ubuntu.com/ubuntu focal-security universe
# deb-src http://security.ubuntu.com/ubuntu focal-security universe
deb http://security.ubuntu.com/ubuntu focal-security multiverse
# deb-src http://security.ubuntu.com/ubuntu focal-security multiverse
root@BVP:/home/user/BVP#

root@BVP:/home/user/BVP# cd /etc/apt/sources.list.d
root@BVP:/etc/apt/sources.list.d# ls
desrepo.list
root@BVP:/etc/apt/sources.list.d# cat desrepo.list
deb [arch=amd64] http://10.10.210.33:3143/ubuntu/bionic/ bionic main
deb [arch=amd64] http://10.10.210.33:3143/ubuntu/bionic/ bionic-backports main
deb [arch=amd64] http://10.10.210.33:3143/ubuntu/bionic/ bionic-des main
root@BVP:/etc/apt/sources.list.d#
dottram
() автор топика
Ответ на: комментарий от dottram

Файл desrepo.list устаревший и лишний, переименуй его в desrepo.list.dis или удали.

Потом запусти apt-get update.

Если пройдёт без ошибок то ещё раз посмотри что пишет apt-get install libpython3.8 libsystemd0

firkax ★★★★★
()
Ответ на: комментарий от firkax
root@BVP:/etc/apt/sources.list.d# mv desrepo.list desrepo.list.dis
root@BVP:/etc/apt/sources.list.d# ls
desrepo.list.dis
root@BVP:/etc/apt/sources.list.d# apt-get update
Err:1 http://archive.ubuntu.com/ubuntu focal InRelease
  Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4002:1::102). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4002:1::103). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::101). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::102). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::103). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4002:1::101). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (185.125.190.82), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.91.82), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.91.83), connection timed out Could not connect to archive.ubuntu.com:80 (185.125.190.83), connection timed out Could not connect to archive.ubuntu.com:80 archive.ubuntu.com:80 (2620:2d:4000:1::101). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::102). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::103). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4002:1::101). - connect (101: Network is unreachable)
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-security/InRelease  Cannot initiate the connection to security.ubuntu.com:80 (2620:2d:4000:1::101). - connect (101: 
^C
--- mail.ru ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2040ms

root@BVP:/etc/apt/sources.list.d# pt-get install libpython3.8 libsystemd0

Command 'pt-get' not found, did you mean:

  command 'apt-get' from deb apt (2.0.10)

Try: apt install <deb name>

root@BVP:/etc/apt/sources.list.d# apt-get install libpython3.8 libsystemd0
Reading package lists... Done
Building dependency tree
Reading state information... Done
libpython3.8 is already the newest version (3.8.10-0ubuntu1~20.04.11).
libpython3.8 set to manually installed.
libsystemd0 is already the newest version (245.4-4ubuntu3.23).
libsystemd0 set to manually installed.
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libpython3.8 : Depends: libpython3.8-stdlib (= 3.8.10-0ubuntu1~20.04.11) but 3.8.10-0ubuntu1~20.04.12 is to be installed
 ntp : Depends: libopts25 (>= 1:5.18.16) but it is not installable
       Conflicts: time-daemon
       Recommends: sntp but it is not installable
 systemd : Depends: libsystemd0 (= 245.4-4ubuntu3.24) but 245.4-4ubuntu3.23 is to be installed
 systemd-timesyncd : Conflicts: time-daemon
N: Ignoring file 'desrepo.list.dis' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@BVP:/etc/apt/sources.list.d#
root@BVP:/etc/apt# ls
apt.conf.d  auth.conf.d  preferences.d  sources.list  sources.list.d  trusted.gpg  trusted.gpg.d
root@BVP:/etc/apt# nano sources.list
root@BVP:/etc/apt# apt update
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
N: Ignoring file 'desrepo.list.dis' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
root@BVP:/etc/apt# apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  alsa-topology-conf alsa-ucm-conf gir1.2-packagekitglib-1.0 glib-networking-common glib-networking-services libasound2 libasound2-data libatasmart4 libblockdev-crypto2 libblockdev-fs2
  libblockdev-loop2 libblockdev-part-err2 libblockdev-part2 libblockdev-swap2 libblockdev-utils2 libblockdev2 libcanberra0 libdconf1 libglib2.0-bin libgstreamer1.0-0 libnetplan0 libnspr4
  libnss3 libogg0 libpackagekit-glib2-18 libparted-fs-resize0 libplymouth5 libpolkit-agent-1-0 libproxy1v5 libstemmer0d libtdb1 libudisks2-0 libvolume-key1 libvorbis0a libvorbisfile3
  networkd-dispatcher python3-software-properties sound-theme-freedesktop squashfs-tools unattended-upgrades usb-modeswitch usb-modeswitch-data vim-runtime
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  cloud-init dbus-user-session dconf-gsettings-backend dconf-service docker-ce-rootless-extras friendly-recovery glib-networking gsettings-desktop-schemas init libappstream4 libnss-systemd
  libpam-systemd libpython3.8 libsoup2.4-1 modemmanager netplan.io ntp packagekit packagekit-tools plymouth plymouth-theme-ubuntu-text policykit-1 snapd software-properties-common systemd
  systemd-sysv systemd-timesyncd ubuntu-minimal ubuntu-server ubuntu-standard udisks2 vim
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  init systemd-sysv (due to init)
0 upgraded, 0 newly installed, 32 to remove and 0 not upgraded.
8 not fully installed or removed.
After this operation, 168 MB disk space will be freed.
N: Ignoring file 'desrepo.list.dis' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?] ^C
root@BVP:/etc/apt#
dottram
() автор топика
Ответ на: комментарий от dottram
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/InRelease  Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::101). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4002:1::102). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::102). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4002:1::101). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4002:1::103). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::103). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (91.189.91.82), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.91.83), connection timed out Could not connect to archive.ubuntu.com:80 (185.125.190.83), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.91.81), connection timed out Could not connect to archive.ubuntu.com:80 (185.125.190.81), connection timed out Could not connect to archive.ubuntu.com:80 (185.125.190.82), connection timed out
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease  Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::101). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4002:1::102). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::102). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4002:1::101). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4002:1::103). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::103). - connect (101: Network is unreachable)
W: Some index files failed to download. They have been ignored, or old ones used instead.
root@BVP:/etc/apt# apt install ntp -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
ntp is already the newest version (1:4.2.8p12+dfsg-3ubuntu4).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libpython3.8 : Depends: libpython3.8-stdlib (= 3.8.10-0ubuntu1~20.04.11) but 3.8.10-0ubuntu1~20.04.12 is to be installed
 ntp : Depends: libopts25 (>= 1:5.18.16) but it is not installable
       Conflicts: time-daemon
       Recommends: sntp but it is not installable
 systemd : Depends: libsystemd0 (= 245.4-4ubuntu3.24) but 245.4-4ubuntu3.23 is to be installed
 systemd-timesyncd : Conflicts: time-daemon
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@BVP:/etc/apt# apt-get install libpython3.8 libsystemd0
Reading package lists... Done
Building dependency tree
Reading state information... Done
libpython3.8 is already the newest version (3.8.10-0ubuntu1~20.04.11).
libpython3.8 set to manually installed.
libsystemd0 is already the newest version (245.4-4ubuntu3.23).
libsystemd0 set to manually installed.
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libpython3.8 : Depends: libpython3.8-stdlib (= 3.8.10-0ubuntu1~20.04.11) but 3.8.10-0ubuntu1~20.04.12 is to be installed
 ntp : Depends: libopts25 (>= 1:5.18.16) but it is not installable
       Conflicts: time-daemon
       Recommends: sntp but it is not installable
 systemd : Depends: libsystemd0 (= 245.4-4ubuntu3.24) but 245.4-4ubuntu3.23 is to be installed
 systemd-timesyncd : Conflicts: time-daemon
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@BVP:/etc/apt#
dottram
() автор топика