LINUX.ORG.RU
решено ФорумAdmin

Виртуалка с Debian 11. Как исправить ошибку с зависимостями в пакетах

 ,


1

1

Понадобился fail2ban на виртуалке, но тут вылезло ...
После чего случилось - уже и не вспомню. Как исправить чтобы не ставить кучу пакетов для исправления? Виртуалка мизерная, крутится несколько процессов, ничего лишнего на ней не нужно, даже просто файлы с пакетами. Они просто не нужны для выполняемых задач

root@acid:/usr/local/# apt install fail2ban
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 code : Depends: libasound2 (>= 1.0.17) but it is not going to be installed
        Depends: libatk-bridge2.0-0 (>= 2.5.3) but it is not going to be installed
        Depends: libatk1.0-0 (>= 2.2.0) but it is not going to be installed
        Depends: libatspi2.0-0 (>= 2.9.90) but it is not going to be installed
        Depends: libdrm2 (>= 2.4.75) but it is not going to be installed
        Depends: libgbm1 (>= 17.1.0~rc2) but it is not going to be installed
        Depends: libgtk-3-0 (>= 3.9.10) but it is not going to be installed
        Depends: libgtk-3-0 (>= 3.9.10) but it is not going to be installed or
                 libgtk-4-1 but it is not installable
        Depends: libnspr4 (>= 2:4.9-2~) but it is not going to be installed
        Depends: libnss3 (>= 2:3.30) but it is not going to be installed
        Depends: libnss3 (>= 3.26) but it is not going to be installed
        Depends: libxcomposite1 (>= 1:0.4.4-1) but it is not going to be installed
        Depends: libxdamage1 (>= 1:1.1) but it is not going to be installed
        Depends: libxfixes3 but it is not going to be installed
        Depends: libxkbcommon0 (>= 0.4.1) but it is not going to be installed
        Depends: libxkbfile1 but it is not going to be installed
        Depends: libxrandr2 but it is not going to be installed
        Depends: xdg-utils (>= 1.0.2) but it is not going to be installed
        Recommends: libvulkan1 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

root@acid:/usr/local/# apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libblas3 liblinear4 nmap-common
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  adwaita-icon-theme alsa-topology-conf alsa-ucm-conf at-spi2-core dbus dbus-user-session dconf-gsettings-backend dconf-service
  glib-networking glib-networking-common glib-networking-services gsettings-desktop-schemas gtk-update-icon-cache hicolor-icon-theme
  libasound2 libasound2-data libatk-bridge2.0-0 libatk1.0-0 libatk1.0-data libatspi2.0-0 libauthen-sasl-perl libavahi-client3
  libavahi-common-data libavahi-common3 libcairo-gobject2 libclone-perl libcolord2 libcups2 libdata-dump-perl libdbus-1-3 libdconf1
  libdrm-amdgpu1 libdrm-common libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdrm2 libencode-locale-perl libepoxy0
  libfile-basedir-perl libfile-desktopentry-perl libfile-listing-perl libfile-mimeinfo-perl libfont-afm-perl libfontenc1 libgbm1
  libgdk-pixbuf-2.0-0 libgdk-pixbuf2.0-bin libgdk-pixbuf2.0-common libgl1 libgl1-mesa-dri libglapi-mesa libglvnd0 libglx-mesa0
  libglx0 libgtk-3-0 libgtk-3-bin libgtk-3-common libhtml-form-perl libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl
  libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl
  libio-html-perl libio-socket-ssl-perl libio-stringy-perl libipc-system-simple-perl libjson-glib-1.0-0 libjson-glib-1.0-common
  liblcms2-2 libllvm11 liblwp-mediatypes-perl liblwp-protocol-https-perl libmailtools-perl libnet-dbus-perl libnet-http-perl
  libnet-smtp-ssl-perl libnet-ssleay-perl libnspr4 libnss3 libpciaccess0 libproxy1v5 librest-0.7-0 librsvg2-2 librsvg2-common
  libsoup-gnome2.4-1 libsoup2.4-1 libtie-ixhash-perl libtimedate-perl libtry-tiny-perl liburi-perl libvte-2.91-0 libvte-2.91-common
  libvulkan1 libwayland-client0 libwayland-cursor0 libwayland-egl1 libwayland-server0 libwww-perl libwww-robotrules-perl libx11-6
  libx11-protocol-perl libx11-xcb1 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-randr0 libxcb-shape0 libxcb-sync1
  libxcb-xfixes0 libxcomposite1 libxcursor1 libxdamage1 libxfixes3 libxft2 libxi6 libxinerama1 libxkbcommon0 libxkbfile1
  libxml-parser-perl libxml-twig-perl libxml-xpathengine-perl libxrandr2 libxshmfence1 libxtst6 libxv1 libxxf86dga1 libxxf86vm1
  libz3-4 mesa-vulkan-drivers perl-openssl-defaults termit x11-utils x11-xserver-utils xdg-utils xkb-data
Suggested packages:
  libasound2-plugins alsa-utils libdigest-hmac-perl libgssapi-perl colord cups-common gvfs liblcms2-utils libcrypt-ssleay-perl
  pciutils librsvg2-bin libauthen-ntlm-perl libunicode-map8-perl libunicode-string-perl xml-twig-tools mesa-utils nickle cairo-5c
  xorg-docs-core
The following NEW packages will be installed:
  adwaita-icon-theme alsa-topology-conf alsa-ucm-conf at-spi2-core dbus-user-session dconf-gsettings-backend dconf-service
  glib-networking glib-networking-common glib-networking-services gsettings-desktop-schemas gtk-update-icon-cache hicolor-icon-theme
  libasound2 libasound2-data libatk-bridge2.0-0 libatk1.0-0 libatk1.0-data libatspi2.0-0 libauthen-sasl-perl libavahi-client3
  libavahi-common-data libavahi-common3 libcairo-gobject2 libclone-perl libcolord2 libcups2 libdata-dump-perl libdconf1
  libdrm-amdgpu1 libdrm-common libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdrm2 libencode-locale-perl libepoxy0
  libfile-basedir-perl libfile-desktopentry-perl libfile-listing-perl libfile-mimeinfo-perl libfont-afm-perl libfontenc1 libgbm1
  libgdk-pixbuf-2.0-0 libgdk-pixbuf2.0-bin libgdk-pixbuf2.0-common libgl1 libgl1-mesa-dri libglapi-mesa libglvnd0 libglx-mesa0
  libglx0 libgtk-3-0 libgtk-3-bin libgtk-3-common libhtml-form-perl libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl
  libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl
  libio-html-perl libio-socket-ssl-perl libio-stringy-perl libipc-system-simple-perl libjson-glib-1.0-0 libjson-glib-1.0-common
  liblcms2-2 libllvm11 liblwp-mediatypes-perl liblwp-protocol-https-perl libmailtools-perl libnet-dbus-perl libnet-http-perl
  libnet-smtp-ssl-perl libnet-ssleay-perl libnspr4 libnss3 libpciaccess0 libproxy1v5 librest-0.7-0 librsvg2-2 librsvg2-common
  libsoup-gnome2.4-1 libsoup2.4-1 libtie-ixhash-perl libtimedate-perl libtry-tiny-perl liburi-perl libvte-2.91-0 libvte-2.91-common
  libvulkan1 libwayland-client0 libwayland-cursor0 libwayland-egl1 libwayland-server0 libwww-perl libwww-robotrules-perl
  libx11-protocol-perl libx11-xcb1 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-randr0 libxcb-shape0 libxcb-sync1
  libxcb-xfixes0 libxcomposite1 libxcursor1 libxdamage1 libxfixes3 libxft2 libxi6 libxinerama1 libxkbcommon0 libxkbfile1
  libxml-parser-perl libxml-twig-perl libxml-xpathengine-perl libxrandr2 libxshmfence1 libxtst6 libxv1 libxxf86dga1 libxxf86vm1
  libz3-4 mesa-vulkan-drivers perl-openssl-defaults termit x11-utils x11-xserver-utils xdg-utils xkb-data
The following packages will be upgraded:
  dbus libdbus-1-3 libx11-6
3 upgraded, 139 newly installed, 0 to remove and 102 not upgraded.
1 not fully installed or removed.
Need to get 72.0 MB of archives.
After this operation, 285 MB of additional disk space will be used.
Do you want to continue? [Y/n]

★★★★

Последнее исправление: Vlad-76 (всего исправлений: 1)
Ответ на: комментарий от firkax

iU code 1.84.2-1699528352 amd64 Code editing. Redefined.

ii icu-devtools 67.1-7 amd64 Development utilities for International Components for Unicode

ii libbrotli1:amd64 1.0.9-2+b2 amd64 library implementing brotli encoder and decoder (shared libraries)

ii libfribidi0:amd64 1.0.8-2+deb11u1 amd64 Free Implementation of the Unicode BiDi algorithm

ii libicu-dev:amd64 67.1-7 amd64 Development files for International Components for Unicode

ii libicu67:amd64 67.1-7 amd64 International Components for Unicode

ii libunistring2:amd64 0.9.10-4 amd64 Unicode string library for C

ii libutf8proc2:amd64 2.5.0-1 amd64 C library for processing UTF-8 Unicode data (shared library)

ii lua-cjson:amd64 2.1.0+dfsg-2.1 amd64 JSON parser/encoder for Lua

ii lua-cjson-dev:amd64 2.1.0+dfsg-2.1 amd64 JSON parser/encoder for Lua, development files

ii lua-json 1.3.4-2 all JSON decoder/encoder for Lua

ii sharutils 1:4.15.2-5 amd64 shar, unshar, uuencode, uudecode

Vlad-76 ★★★★
() автор топика
Ответ на: комментарий от Vlad-76

Попробуй просто снеси проблемный пакет sudo apt purge code

Если он будет нужен, потом установишь.

Еще у апт есть логи в /var/log/apt/. term.log* и history.log* там можешь посмотреть что случилось и когда у тебя code появился.

PRN
()
Последнее исправление: PRN (всего исправлений: 1)