[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Why does apt-get upgrade want to remove half of my packages?




--
Boyan Penkov
www.boyanpenkov.com

On May 7, 2018, at 19:28, James Lu <james@overdrivenetworks.com> wrote:

Hello,

Per https://backports.debian.org/Instructions/#index1h2, you should be
installing specific backports instead of all that are available.
Specifically, this means you should run apt-get upgrade / dist-upgrade
without "-t stretch-backports".

Likely what's happening is that apt installs some library backports
which are incompatible with its stable version, causing packages
depending on them to be removed.

John’s advice here is super-germane; as it happens, I tried just sudo apt-get -t stretch-backports nvidia-driver two days ago on a similarly vanilla (albeit gnome3) system, and saw shenanigans with it trying to smoke the x install.

Something may be messed up in the dependancies there on amd64, as the tool returns “candidate package does not exist” when you try to reinstall nvidia-driver…..

Cheers!


Best,
James

On 2018-05-07 04:21 PM, John Smith wrote:
Hi,

I am on a fairly pure debian stretch xfce desktop, I added the
backports repo and because I just want to have all the upgraded
packages, so I did

apt-get -t stretch-backports upgrade && apt-get -t stretch-backports
dist-upgrade

some days ago (after putting backports repo into /etc/apt/sources.list).

Until now that caused no problem and helped me to make the nvidia
hardware actually work with the driver version in backports, also I
like the 4.15 kernel very much as it seems to make the desktop
experience much smoother. So everything ok and a great system overall.

However, today I just wanted to upgrade the same way (no special
reason, just routine upgrade) and apt-get wants to autoremove half of
the system and remove some important things - why?

I paste the output of the command below - it would be really
appreciated if anybody would like to explain
* why that happens
* what went wrong
* how to fix that.

cat /etc/apt/sources.list
deb http://ftp.de.debian.org/debian/ stretch main contrib non-free
deb-src http://ftp.de.debian.org/debian/ stretch main contrib non-free
deb http://security.debian.org/debian-security stretch/updates main
contrib non-free
deb-src http://security.debian.org/debian-security stretch/updates
main contrib non-free
# stretch-updates, previously known as 'volatile'
deb http://ftp.de.debian.org/debian/ stretch-updates main contrib non-free
deb-src http://ftp.de.debian.org/debian/ stretch-updates main contrib non-free
# backports
deb http://ftp.debian.org/debian stretch-backports main contrib non-free

Thank you very much for your attention!
John

root@stretch:~# apt-get -t stretch-backports dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
 ant ant-optional bbswitch-dkms ca-certificates-java coinor-libcbc3
coinor-libcgl1 coinor-libclp1 coinor-libcoinmp1v5
coinor-libcoinutils3v5 coinor-libosi1v5 cups-client cups-pk-helper
 default-jre-headless enchant espeak-ng-data evince-gtk exfalso
exfat-fuse exfat-utils firebird3.0-common firebird3.0-common-doc
firebird3.0-server-core fonts-crosextra-caladea
 fonts-crosextra-carlito fonts-dejavu fonts-dejavu-extra
fonts-font-awesome fonts-freefont-ttf fonts-liberation2
fonts-linuxlibertine fonts-noto-hinted fonts-opensymbol
fonts-sil-gentium
 fonts-sil-gentium-basic freepats gcj-6-jre-lib gdisk
geany-plugin-addons geany-plugin-autoclose geany-plugin-automark
geany-plugin-codenav geany-plugin-commander geany-plugin-ctags
 geany-plugin-debugger geany-plugin-defineformat geany-plugin-doc
geany-plugin-extrasel geany-plugin-gendoc geany-plugin-geniuspaste
geany-plugin-git-changebar geany-plugin-insertnum
 geany-plugin-latex geany-plugin-lineoperations geany-plugin-lipsum
geany-plugin-lua geany-plugin-macro geany-plugin-miniscript
geany-plugin-multiterm geany-plugin-numberedbookmarks
 geany-plugin-overview geany-plugin-pairtaghighlighter
geany-plugin-pg geany-plugin-pohelper geany-plugin-prettyprinter
geany-plugin-prj geany-plugin-projectorganizer geany-plugin-py
 geany-plugin-scope geany-plugin-sendmail geany-plugin-shiftcolumn
geany-plugin-spellcheck geany-plugin-tableconvert
geany-plugin-treebrowser geany-plugin-updatechecker geany-plugin-vc
 geany-plugin-xmlsnippets geany-plugins-common geoclue-2.0 gimp
gimp-data gir1.2-atspi-2.0 gir1.2-evince-3.0 gir1.2-gconf-2.0
gir1.2-gnomekeyring-1.0 gir1.2-gst-plugins-base-1.0
 gir1.2-gstreamer-1.0 gir1.2-gtksource-3.0
gir1.2-_javascript_coregtk-4.0 gir1.2-packagekitglib-1.0 gir1.2-rsvg-2.0
gir1.2-soup-2.4 gir1.2-sugarext-1.0 gir1.2-wnck-3.0 gnome-orca
 gstreamer1.0-alsa gstreamer1.0-plugins-good
gstreamer1.0-plugins-ugly gstreamer1.0-pulseaudio gstreamer1.0-x
gvfs-common gvfs-libs hyphen-en-us icedtea-netx-common
iio-sensor-proxy
 iputils-arping java-common liba52-0.7.4 libaa1 libaacs0 libabw-0.1-1
libamd2 libao-common libao4 libapache-poi-java libapache-pom-java
libargon2-0 libass5 libatasmart4 libatk-adaptor
 libavahi-gobject0 libavc1394-0 libavformat57 libbabl-0.1-0
libbase-java libbasicusageenvironment1 libbcmail-java libbcpkix-java
libbcprov-java libbdplus0 libblas-common libblas3
 libbluetooth3 libbluray1 libboost-chrono1.62.0
libboost-date-time1.62.0 libboost-locale1.62.0 libboost-thread1.62.0
libbrlapi0.6 libbs2b0 libbsh-java libcaca0 libcamd2 libccolamd2
 libcddb2 libcdio13 libcdr-0.1-1 libcholmod3 libchromaprint1
libclucene-contribs1v5 libclucene-core1v5 libcmis-0.5-5v5 libcolamd2
libcommons-codec-java libcommons-collections3-java
 libcommons-logging-java libcommons-parent-java libctpl2 libdc1394-22
libdca0 libde265-0 libdirectfb-1.2-9 libdom4j-java libdotconf0
libdouble-conversion1 libdv4 libdvbpsi10 libdvdnav4
 libdvdread4 libe-book-0.1-1 libebml4v5 libehcache-java
libenchant1c2a libeot0 libespeak-ng1 libevdev2 libexpat1-dev
libexttextcat-2.0-0 libexttextcat-data libfaad2 libfbclient2
 libfftw3-double3 libflite1 libfluidsynth1 libflute-java
libfonts-java libformula-java libfreehand-0.1-1 libgbm1 libgcj-bc
libgcj-common libgcj17 libgegl-0.3-0 libgeoclue-2-0 libgfortran3
 libgif7 libgimp2.0 libgit2-24 libgl1-nvidia-glvnd-glx
libgles-nvidia1 libgles-nvidia2 libgles1-glvnd-nvidia
libgles2-glvnd-nvidia libglew2.0 libglib2.0-bin libglu1-mesa libgme0
libgpgme11
 libgpgmepp6 libgpod-common libgpod4 libgroupsock8
libgtksourceview-3.0-1 libgtksourceview-3.0-common libgtkspell0
libharfbuzz-icu0 libhsqldb1.8.0-java libhttp-parser2.1 libhyphen0
 libib-util libiec61883-0 libinput-bin libinput10 libiso9660-8
libisorelax-java libitext-java libjansson4 libjavascriptcoregtk-1.0-0
libjavascriptcoregtk-4.0-18 libjaxen-java
 libjcommon-java libjdom1-java libjim0.76 libjs-modernizr
libjs-sphinxdoc libjs-underscore libkate1 liblangtag-common
liblangtag1 liblapack3 liblayout-java libldb1 liblilv-0-0
 liblirc-client0 liblivemedia57 libllvm3.9 libloader-java
liblog4j1.2-java liblouis-data liblouis12 liblua5.1-0 liblua5.2-0
libmad0 libmail-java libmarkdown2 libmatroska6v5 libmbim-glib4
 libmbim-proxy libmetis5 libmhash2 libminizip1
libmission-control-plugins0 libmjpegutils-2.1-0 libmm-glib0 libmms0
libmodplug1 libmpcdec6 libmpeg2-4 libmpeg2encpp-2.1-0 libmpg123-0
 libmplex2-2.1-0 libmspub-0.1-1 libmsv-java libmtdev1 libmtp-common
libmtp-runtime libmtp9 libmythes-1.2-0 libndp0 libneon27-gnutls
libnm-glib4 libnm-util2 libnm0 libnma0
 libnvidia-egl-wayland1 libodfgen-0.1-1 libofa0 libopenal-data
libopenal1 libopencore-amrnb0 libopencore-amrwb0
libopencv-calib3d2.4v5 libopencv-core2.4v5 libopencv-features2d2.4v5
 libopencv-flann2.4v5 libopencv-highgui2.4-deb0
libopencv-imgproc2.4v5 libopencv-objdetect2.4v5 libopencv-video2.4v5
libopengl0-glvnd-nvidia libopenmpt-modplug1 libopenmpt0
 libpackagekit-glib2-18 libpagemaker-0.0-0 libpcaudio0 libpcre16-3
libpentaho-reporting-flow-engine-java libpixie-java libpq5
libproxy-tools libpython2.7 libpython2.7-dev libqmi-glib5
 libqmi-proxy libqt5core5a libqt5dbus5 libqt5network5 librasqal3
libraw1394-11 libraw15 librdf0 libre2-3 librelaxng-datatype-java
libreoffice libreoffice-avmedia-backend-gstreamer
 libreoffice-base libreoffice-base-core libreoffice-base-drivers
libreoffice-calc libreoffice-common libreoffice-core libreoffice-draw
libreoffice-gtk2 libreoffice-help-en-us
 libreoffice-impress libreoffice-java-common libreoffice-librelogo
libreoffice-math libreoffice-ogltrans libreoffice-report-builder
libreoffice-report-builder-bin
 libreoffice-script-provider-python libreoffice-sdbc-firebird
libreoffice-sdbc-postgresql libreoffice-style-galaxy
libreoffice-style-tango libreoffice-writer librepository-java
 libresid-builder0c2a librevenge-0.0-0 libsac-java libsac-java-gcj
libsaxonhe-java libsbc1 libsdl-image1.2 libsdl1.2debian libserd-0-0
libserializer-java libservlet3.1-java libsgutils2-2
 libshout3 libsidplay1v5 libsidplay2 libsmbclient libsndio6.1
libsodium18 libsonic0 libsord-0-0 libsoundtouch1 libspandsp2
libspeechd2 libsratom-0-0 libsrtp0 libssh-gcrypt-4
 libsugarext-data libsugarext0 libsuitesparseconfig4 libswscale4
libtalloc2 libtbb2 libteamdctl0 libtelepathy-glib0 libtevent0 libtidy5
libtommath1 libtxc-dxtn-s2tc libudisks2-0
 libumfpack5 libupnp6 libusageenvironment3 libv4l-0 libv4lconvert0
libvcdinfo0 libvisio-0.1-1 libvlc-bin libvlc5 libvlccore8
libvo-aacenc0 libvo-amrwbenc0 libvulkan1 libwacom-bin
 libwacom-common libwacom2 libwayland-server0 libwbclient0
libwebpdemux2 libwildmidi-config libwildmidi2 libwnck-3-0
libwnck-3-common libwpd-0.10-10 libwpg-0.3-3 libxatracker2
 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0
libxcb-render-util0 libxcb-shape0 libxcb-xinerama0 libxcb-xkb1
libxcb-xv0 libxerces2-java libxfont2 libxkbcommon-x11-0
 libxml-commons-external-java libxml-commons-resolver1.1-java
libxml-java libxmlbeans-java libxom-java libxpp2-java libxpp3-java
libxv1 libxvmc1 libxxf86dga1 libykpers-1-1 libyubikey0
 libzbar0 lp-solve media-player-info mesa-utils
mobile-broadband-provider-info modemmanager mythes-en-us
network-manager network-manager-gnome nvidia-driver-bin
nvidia-driver-libs
 nvidia-egl-wayland-common nvidia-egl-wayland-icd
nvidia-vulkan-common nvidia-vulkan-icd openjdk-8-jre-headless orca
packagekit packagekit-tools policykit-1-gnome python-chardet
 python-dateutil python-decorator python-feedparser python-gobject-2
python-gtk2 python-libxml2 python-musicbrainzngs python-mutagen
python-numpy python-pkg-resources python-pyinotify
 python-six python-sugar3 python-talloc python-telepathy
python-utidylib python3-brlapi python3-cairo python3-cups
python3-cupshelpers python3-dbus python3-louis python3-pyatspi
 python3-smbc python3-speechd python3-uno python3-xdg
qttranslations5-l10n quodlibet samba-libs socat speech-dispatcher
speech-dispatcher-audio-plugins speech-dispatcher-espeak-ng
 sphinx-rtd-theme-common system-config-printer
system-config-printer-common system-config-printer-udev
telepathy-mission-control-5 telepathy-salut udisks2 uno-libs3 ure
usb-modeswitch
 usb-modeswitch-data vlc-bin vlc-data vlc-l10n vlc-plugin-base
vlc-plugin-notify vlc-plugin-samba vlc-plugin-video-splitter
vlc-plugin-visualization x11-apps x11-session-utils xbrlapi
 xfonts-100dpi xfonts-75dpi xfonts-base xfonts-scalable xinit xsane
xsane-common xserver-common xserver-xorg-legacy
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
 bumblebee bumblebee-nvidia chromium default-java-plugin default-jre
geany-plugin-devhelp geany-plugin-markdown geany-plugin-webhelper
geany-plugins gir1.2-webkit2-4.0
 gstreamer1.0-plugins-bad gvfs gvfs-daemons icedtea-8-plugin
icedtea-netx keepassxc libatk-wrapper-java libatk-wrapper-java-jni
libegl1-glvnd-nvidia libegl1-mesa libgl1-glvnd-nvidia-glx
 libgl1-mesa-glx libgles1-mesa libgles2-mesa libglx0-glvnd-nvidia
libgstreamer-plugins-bad1.0-0 libgtk-3-bin libqt5gui5 libqt5svg5
libqt5widgets5 libqt5x11extras5 libreoffice-nlpsolver
 libreoffice-script-provider-bsh libreoffice-script-provider-js
libreoffice-sdbc-hsqldb libreoffice-wiki-publisher
libwebkit2gtk-4.0-37 libwebkitgtk-1.0-0 lightning nvidia-driver
 openjdk-8-jre primus primus-libs qt5-gtk-platformtheme
sugar-browse-activity task-desktop task-xfce-desktop thunderbird vlc
vlc-plugin-qt vlc-plugin-skins2 vlc-plugin-video-output
 x11-utils xorg xserver-xorg xserver-xorg-core xserver-xorg-input-all
xserver-xorg-input-libinput xserver-xorg-input-wacom
xserver-xorg-video-all xserver-xorg-video-amdgpu
 xserver-xorg-video-ati xserver-xorg-video-fbdev
xserver-xorg-video-intel xserver-xorg-video-nouveau
xserver-xorg-video-nvidia xserver-xorg-video-qxl
xserver-xorg-video-radeon
 xserver-xorg-video-vesa xserver-xorg-video-vmware
The following NEW packages will be installed:
 libegl1 libgl1 libglx-mesa0 libglx0 libllvm5.0
The following packages will be upgraded:
 libgbm1 libgl1-mesa-dri libglapi-mesa libwayland-egl1-mesa
libwxbase3.0-0v5 libwxgtk3.0-0v5 libxatracker2 mesa-va-drivers
mesa-vdpau-drivers
9 upgraded, 5 newly installed, 70 to remove and 0 not upgraded.
Need to get 30.4 MB of archives.
After this operation, 375 MB disk space will be freed.
Do you want to continue? [Y/n]




Reply to: