我最近在安装一个软件包,发现 apt 即将自动删除以下软件包。幸运的是,我以前有过这样的经历,我中止了该过程并再次安装了已删除的软件包,但每次我运行 apt 时,它都会尝试再次删除它们。请帮忙。
acpi-support acpid alsa-utils anydesk apport-gtk avahi-utils binfmt-support blt bluez bluez-obexd breeze caps catdoc clipit curl dc dctrl-tools dkms dvdauthor dvgrab ed
ffmpeg frei0r-plugins ftp gamemode gdb gedit genisoimage ghostscript-x gir1.2-gmenu-3.0 gir1.2-handy-0.0 gir1.2-wnck-3.0 gnome-bluetooth gnome-calculator gnome-disk-utility
gnome-font-viewer gnome-logs gnome-power-manager gnome-screenshot gnome-shell-extension-desktop-icons gnome-system-monitor gnome-themes-extra gnome-tweaks
google-chrome-stable gstreamer1.0-packagekit gtk2-engines-murrine gtk2-engines-pixbuf gvfs-fuse hdparm hplip info ippusbxd iputils-tracepath irqbalance jackd2-firewire
kaccounts-providers kde-style-breeze kded5 kdenlive kerneloops kinit kpeople-vcard kwin-style-breeze liba52-0.7.4 libabw-0.1-1 libalgorithm-diff-xs-perl libao4 libaribb24-0
libatopology2 libavresample4 libayatana-appindicator3-1 libayatana-indicator3-7 libbabeltrace1 libbdplus0 libbluetooth3 libbrlapi0.7 libcddb2 libconfig++9v5 libcupsimage2
libdca0 libdvbpsi10 libdw1 libe-book-0.1-1 libepub0 libepubgen-0.1-1 libespeak-ng1 libetonyek-0.1-1 libfaad2 libfdk-aac1 libffado2 libgamemode0 libgamemodeauto0 libgavl1
libgl1-mesa-dev libgles-dev libgles1 libglib2.0-dev libglib2.0-dev-bin libglu1-mesa libglvnd-dev libgnome-menu-3-0 libgtkglext1 libgtkmm-2.4-1v5 libgupnp-av-1.0-2
libgupnp-dlna-2.0-3 libhandy-0.0-0 libiw-dev libiw30 libjson-xs-perl libkate1 libkdecorations2-5v5 libkdecorations2private7 libkf5contacts5 libkf5filemetadata-bin
libkf5filemetadata3 libkf5newstuff5 libkf5notifyconfig5 libkf5parts-plugins libkf5style5 liblcms2-utils liblivemedia77 liblqr-1-0 liblua5.2-0 libluajit-5.1-2 libmad0
libmagickcore-6.q16-6 libmagickwand-6.q16-6 libmatroska6v5 libmbedtls12 libmbedx509-0 libmediaart-2.0-0 libmessaging-menu0 libminizip1 libmpcdec6 libmpeg2-4 libmwaw-0.3-3
libndp0 libodbc1 libodfgen-0.1-1 libopengl-dev libopengl0 libopenmpt-modplug1 libpangox-1.0-0 libpcaudio0 libpcre16-3 libpcre2-32-0 libpcre2-dev libpcre2-posix2
libpcre3-dev libpcre32-3 libpcrecpp0v5 libplacebo7 libpoppler-qt5-1 libprotobuf-lite17 libproxy1-plugin-gsettings libpulse-dev libqt5charts5 libqt5concurrent5
libqt5positioning5 libqt5sensors5 libqt5test5 libqt5webchannel5 libqt5webkit5 libquicktime2 libreoffice-base-core libreoffice-math libreoffice-writer libresid-builder0c2a
librttr-core0.9.6 librygel-core-2.6-2 librygel-db-2.6-2 librygel-renderer-2.6-2 librygel-server-2.6-2 libsane-hpaio libsdl-image1.2 libselinux1-dev libsidplay2
libsignon-plugins-common1 libsonic0 libspatialaudio0 libspeechd2 libsrt1 libssh2-1 libteamdctl0 libtepl-4-0 libtorrent-rasterbar10 libupnp13 libva-wayland2 libwmf0.2-7
libwmf0.2-7-gtk libwnck-3-0 libwpg-0.3-3 libwps-0.4-4 libxatracker2 libxcb-xtest0 libxdo3 libxml++2.6-2v5 libxres1 libzip5 linux-headers-5.4.0-81-generic
linux-headers-generic lshw ltrace melt mscompress mtools mtr-tiny nano nautilus nautilus-sendto nautilus-share network-manager obs-studio openjdk-8-jre-headless orca
paprefs pavucontrol pavumeter pcmciautils phonon4qt5 phonon4qt5-backend-vlc ppp printer-driver-c2esp printer-driver-foo2zjs printer-driver-hpcups printer-driver-m2300w
printer-driver-postscript-hp printer-driver-ptouch printer-driver-splix pulseaudio-module-gsettings pulseaudio-module-jack pulseaudio-module-zeroconf python-gi
python3-bcrypt python3-brlapi python3-crypto python3-gi-cairo python3-ldb python3-reportlab python3-reportlab-accel python3-samba python3-tdb python3-tk qbittorrent
qjackctl qml-module-org-kde-newstuff recordmydesktop rsync rygel samba-common-bin signon-plugin-oauth2 speech-dispatcher speech-dispatcher-audio-plugins
speech-dispatcher-espeak-ng stacer strace swh-plugins tap-plugins tcpdump telnet thunderbird-gnome-support time tk8.6-blt2.5 v4l2loopback-dkms vlc-plugin-base
vlc-plugin-video-output whoopsie wireless-tools xdg-desktop-portal xdg-desktop-portal-gtk xdg-user-dirs-gtk xdotool xserver-xephyr xserver-xorg xserver-xorg-input-all
xserver-xorg-input-libinput xserver-xorg-video-all xserver-xorg-video-amdgpu xserver-xorg-video-ati xserver-xorg-video-fbdev xserver-xorg-video-nouveau
xserver-xorg-video-radeon xserver-xorg-video-vesa xserver-xorg-video-vmware yaru-theme-gtk zip zoom
正如你所看到的,大多数软件包都是我安装的,有些是 ubuntu 库存软件包,有些是经常使用的软件包。
每次我尝试使用 apt 安装某些东西时,上述软件包都会被删除。我不希望发生这种情况,因为这些是基本软件包,如果删除它们,我的整个环境可能会崩溃。
答案1
重新安装ubuntu-desktop
元包。
这种大规模删除在人们从最小安装构建系统时最为常见。您的整个系统都挂在 *-desktop 元包上。当您进行一些删除元包的更改时,噗!
使用普通桌面安装程序进行安装的用户可以获得额外的保护,避免受到这种大规模删除的影响:安装程序会更改基础安装中软件包的 apt 标记。