Web lists-archives.com

Re: strangest things after upgrade from 8 to 9

On Sat, 29 Dec 2018 09:50:13 -0500
Roberto C. Sánchez <roberto@xxxxxxxxxx> wrote:

> On Sat, Dec 29, 2018 at 03:36:40PM +0100, mikesa@xxxxxxxxxxxx wrote:
> > I couple of days ago I've upgraded from 8 (jessie) to 9 (stretch)
> > taking care of removing third-party repositories before upgrading, in my /etc/apt/sources.list file,
> > which is now as follows:
> > 
> > deb http://deb.debian.org/debian/ stretch main contrib non-free
> > deb http://security.debian.org/ stretch/updates main contrib non-free
> > deb http://deb.debian.org/debian/ stretch-updates main contrib non-free
> > deb http://ftp.debian.org/debian stretch-backports main contrib
> > deb https://dl.winehq.org/wine-builds/debian/ stretch main
> > 
> > The upgrade went decently well (system is booting) but I've noticed some incongruences with apt and aptitute while installing winehq-staging
> > which led me thinking some old packages were still in the system.
> > 
> > So I performed (I think) a cleanup of the packages which are not included in the current repositories, with the command:
> > aptitude search ?obsolete  > mylist
> > and then removing the resulting packages.
> > 
> > My system now 'looks' clean, but for example mpv (media player) is not working:
> > 
> > user@linux:~$ ldd /usr/bin/mpv|grep -i "not found"
> > 	libwebp.so.5 => not found
> > 	libx265.so.102 => not found
> > 	libopenjpeg.so.5 => not found
> > 	libgnutls-deb0.so.28 => not found
> > 	libcrypto.so.1.0.0 => not found
> > 	libvidstab.so.1.0 => not found
> > 	libnppi.so.7.5 => not found
> > 
> > and I have no idea why /usr/local/lib/libavcodec.so.57 is liked with libwebp.so.5:
> > root@linux:~# ldd /usr/local/lib/libavcodec.so.57|grep -i found
> > 	libwebp.so.5 => not found
> > 	libx265.so.102 => not found
> > 	libopenjpeg.so.5 => not found
> > 
> > as it looks like it's the current version as the upstream:
> > root@linux:~# dpkg -l|grep avco
> > ii  libavcodec57:amd64                                          7:3.2.12-1~deb9u1                           amd64        FFmpeg library with de/encoders for audio/video codecs - runtime files
> > ii  libavcodec57:i386                                           7:3.2.12-1~deb9u1                           i386         FFmpeg library with de/encoders for audio/video codecs - runtime files
> > 
> > 
> > please help ?
> >   
> You have an unofficial source listed there, so I am not sure it is
> correct to call the system 'clean'.  What is the output of this command:
> apt-cache policy `dpkg -S /usr/bin/mpv`
> Also, /usr/local/lib/libavcodec.so.57 certainly did not come from an
> official Debian package.
> Regards,
> -Roberto
> -- 
> Roberto C. Sánchez

Hello Roberto, please have a look:

root@linux:~# apt-cache policy `dpkg -S /usr/bin/mpv`
  Installed: 0.23.0-2+deb9u2
  Candidate: 0.23.0-2+deb9u2
  Version table:
 *** 0.23.0-2+deb9u2 500
        500 http://deb.debian.org/debian stretch/main amd64 Packages
        500 http://security.debian.org stretch/updates/main amd64 Packages
        100 /var/lib/dpkg/status
N: Unable to locate package /usr/bin/mpv

and yes you are correct, /usr/local/lib/libavcodec.so.57 was some spurious file I don't know why it was there
and I've deleted it (and rerun ldconfig)
and now mpv is linking to the correct file:

user@linux:~$ ldd /usr/bin/mpv|grep -i "not found"
	libgnutls-deb0.so.28 => not found
	libcrypto.so.1.0.0 => not found
	libvidstab.so.1.0 => not found
	libnppi.so.7.5 => not found

user@linux:~$ ldd /usr/bin/mpv|grep -i libav
	libavutil.so.55 => /usr/local/lib/libavutil.so.55 (0x00007f441e37a000)
	libavcodec.so.57 => /usr/lib/x86_64-linux-gnu/libavcodec.so.57 (0x00007f441cda6000)
	libavformat.so.57 => /usr/local/lib/libavformat.so.57 (0x00007f441c96f000)
	libavfilter.so.6 => /usr/local/lib/libavfilter.so.6 (0x00007f4419d59000)
	libavdevice.so.57 => /usr/local/lib/libavdevice.so.57 (0x00007f4416782000)
	libavresample.so.3 => /usr/local/lib/libavresample.so.3 (0x00007f440f497000)

I've also noticed that I still have 'deb8' packages installed :(

root@linux:~# dpkg -l|grep -i deb8|wc
     85     782   13487

root@linux:~# dpkg -l|grep deb8|awk '{ print $2 }'|xargs apt-get --purge remove 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  apg cheese-common gir1.2-totem-1.0 gnome-control-center-data gstreamer1.0-clutter-3.0 libavahi-ui-gtk3-0 libde265-0 libfluidsynth1 libfolks-telepathy25 libfreerdp-cache1.1
  libfreerdp-codec1.1 libfreerdp-common1.1.0 libfreerdp-core1.1 libfreerdp-crypto1.1 libfreerdp-gdi1.1 libfreerdp-locale1.1 libfreerdp-primitives1.1 libfreerdp-utils1.1 libgtk-vnc-2.0-0
  libgvnc-1.0-0 libkate1 libmjpegutils-2.1-0 libmpeg2encpp-2.1-0 libmplex2-2.1-0 libnss-myhostname libofa0 libphodav-2.0-0 libphodav-2.0-common libspandsp2 libsrtp0 libtotem0
  libusbredirhost1 libvo-aacenc0 libwinpr-crt0.1 libwinpr-crypto0.1 libwinpr-dsparse0.1 libwinpr-environment0.1 libwinpr-file0.1 libwinpr-handle0.1 libwinpr-heap0.1 libwinpr-input0.1
  libwinpr-interlocked0.1 libwinpr-library0.1 libwinpr-path0.1 libwinpr-pool0.1 libwinpr-registry0.1 libwinpr-rpc0.1 libwinpr-sspi0.1 libwinpr-synch0.1 libwinpr-sysinfo0.1
  libwinpr-thread0.1 libwinpr-utils0.1 libzbar0 mousetweaks spice-client-glib-usb-acl-helper totem-common
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  cheese* gnome* gnome-contacts* gnome-control-center* gnome-core* gnome-video-effects* gstreamer1.0-plugins-bad* libaacs0* libakonadi-calendar4* libakonadi-contact4* libakonadi-kcal4*
  libav-tools* libavdevice55* libbind9-90* libcalendarsupport4* libcheese-gtk25* libcheese8* libcrypto++9* libdca0* libdns100* libebook-1.2-14* libebook-contacts-1.2-0*
  libedata-book-1.2-20* libeventviews4* libfaac0* libgif4* libgit2-21* libgles1-mesa* libgpgme++2* libgsoap5* libgstreamer-plugins-bad0.10-0* libguess1* libincidenceeditorsng4* libisc95*
  libisccc90* libisccfg90* libjasper1* libkabc4* libkalarmcal2* libkblog4* libkcal4* libkdepim4* libkdepimdbusinterfaces4* libkholidays4* libkleo4* libkresources4* libksieveui4* libktnef4*
  liblouis2* liblwres90* libmagickcore-6.q16-2* libmagickwand-6.q16-2* libmailcommon4* libmailimporter4* libmessagecomposer4* libmessagecore4* libmessagelist4* libmessageviewer4*
  libmlt++3* libmlt6* libmutter0e* libnoteshared4* libokularcore5* libonig2* libopencv-calib3d2.4* libopencv-contrib2.4* libopencv-core2.4* libopencv-features2d2.4* libopencv-flann2.4*
  libopencv-gpu2.4* libopencv-highgui2.4* libopencv-imgproc2.4* libopencv-legacy2.4* libopencv-ml2.4* libopencv-objdetect2.4* libopencv-ocl2.4* libopencv-photo2.4* libopencv-stitching2.4*
  libopencv-superres2.4* libopencv-ts2.4* libopencv-video2.4* libopencv-videostab2.4* libopenmpi1.6* libpcrecpp0* libpimcommon4* libpng12-0:i386* libpolarssl7* libpoppler46*
  libsoundtouch0* libspice-client-glib-2.0-8* libspice-client-gtk-3.0-5* libtag1-vanilla* libtemplateparser4* libvncclient0* libvncserver0* libxen-4.4* totem* totem-plugins* vinagre*
0 upgraded, 0 newly installed, 99 to remove and 0 not upgraded.
After this operation, 24.8 MB disk space will be freed.
Do you want to continue? [Y/n] Abort.

(and here I didn't confirm: would like to keep gnome installed, but let me know if you want me to proceed)

about the other two repositories in my /etc/apt/sources.list file (stretch-backports and winehq), let me know if you want me to remove them.

Thank you,