Problem with so's, mainly libcups.so.2

Kernels & Hardware, configuring network, installing services

Problem with so's, mainly libcups.so.2

Postby MerciadriLuca » 2017-05-04 20:53

Hello,

Until some days ago, everything worked fine here under
Code: Select all
Linux merciadriluca-station 3.2.0-4-686-pae #1 SMP Debian 3.2.86-1 i686 GNU/Linux


Not so long ago, I got some errors regarding .so files (input/output error). I then decided to opt for fsck, which discovered many issues (maybe HDD is going down?!). Anyway, fact is that solving these problems probably removed the .so files. As a result, I don't get the I/O errors anymore, but "No such file or directory" errors.

After
Code: Select all
apt-get update

and
Code: Select all
apt-get upgrade

I get
Code: Select all
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  icedove iceowl-extension phonon-backend-vlc pitivi
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up samba (2:4.2.14+dfsg-0+deb8u5) ...
Job for smbd.service failed. See 'systemctl status smbd.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript smbd, action "start" failed.
dpkg: error processing package samba (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of winbind:
 winbind depends on samba (= 2:4.2.14+dfsg-0+deb8u5); however:
  Package samba is not configured yet.

dpkg: error processing package winbind (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnss-winbind:i386:
 libnss-winbind:i386 depends on winbind (= 2:4.2.14+dfsg-0+deb8u5); however:
  Package winbind is not configured yet.

dpkg: error processing package libnss-winbind:i386 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libpam-winbind:i386:
 libpam-winbind:i386 depends on winbind (= 2:4.2.14+dfsg-0+deb8u5); however:
  Package winbind is not configured yet.

dpkg: error processing package libpam-winbind:i386 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 samba
 winbind
 libnss-winbind:i386
 libpam-winbind:i386
E: Sub-process /usr/bin/dpkg returned an error code (1)

and, for example,
Code: Select all
systemctl status -l smbd.service
● smbd.service - LSB: start Samba SMB/CIFS daemon (smbd)
   Loaded: loaded (/etc/init.d/smbd)
   Active: failed (Result: exit-code) since jeu 2017-05-04 23:30:27 CEST; 33s ago
  Process: 3407 ExecStart=/etc/init.d/smbd start (code=exited, status=1/FAILURE)

mai 04 23:30:27 merciadriluca-station smbd[3407]: Starting SMB/CIFS daemon: smbd/usr/sbin/smbd: error while loading shared libraries: libcups.so.2: cannot open shared object file: No such file or directory
mai 04 23:30:27 merciadriluca-station smbd[3407]: failed!
mai 04 23:30:27 merciadriluca-station systemd[1]: smbd.service: control process exited, code=exited status=1
mai 04 23:30:27 merciadriluca-station systemd[1]: Failed to start LSB: start Samba SMB/CIFS daemon (smbd).
mai 04 23:30:27 merciadriluca-station systemd[1]: Unit smbd.service entered failed state.

I have
Code: Select all
# find ./ | grep libcups.so
./usr/lib/i386-linux-gnu/libcups.so

but no more libcups.so2. Is it different than libcups.so?

Before fsck, ldconfig gave many I/O errors, but now it does not give any error.

Following packages are already installed:
Code: Select all
cups cups-driver-gutenprint hplip printer-driver-hpcups hplip-gui printer-driver-gutenprint printer-driver-hpcups printer-driver-postscript-hp

and, thinking that cups was the issue, I reinstalled it and lost my printer. I had made a backup of /etc/cups, and the .conf files are the same as before, but printer does not appear anymore.

I wanted to reinstall libcups2, but making
Code: Select all
apt-get remove libcups2

is frightening, since it looks like it would remove everything:
Code: Select all
The following packages were automatically installed and are no longer required:
  akonadi-backend-mysql akonadi-server asymptote-doc avidemux-common avidemux-plugins dvgrab extra-xdg-menus fairymax filezilla-common
  fonts-cabin fonts-comfortaa fonts-crosextra-caladea fonts-crosextra-carlito fonts-ebgaramond fonts-ebgaramond-extra fonts-font-awesome
  fonts-gfs-complutum fonts-gfs-gazis fonts-gfs-porson fonts-hosny-amiri fonts-inconsolata fonts-junicode fonts-lato fonts-lobster
  fonts-lobstertwo fonts-oflb-asana-math fonts-opensymbol fonts-sil-gentium fonts-sil-gentium-basic gcj-4.7-base gcj-4.7-jre-headless
  gcj-4.7-jre-lib geda-doc geda-gnetlist geda-gsymcheck geda-symbols geda-utils gir1.2-ges-1.0 gnash-common gnuchess gnuchess-book
  gstreamer0.10-ffmpeg gstreamer0.10-gnonlin gstreamer0.10-plugins-ugly gstreamer1.0-gnonlin guile-1.8 guile-1.8-libs guile-2.0-libs
  guile-cairo guile-g-wrap guile-gnome2-glib hal hal-info hoichess kde-baseapps-data kdenlive-data kdepimlibs-kio-plugins lame
  latex-cjk-chinese-arphic-bkai00mp latex-cjk-chinese-arphic-bsmi00lp latex-cjk-chinese-arphic-gbsn00lp latex-cjk-chinese-arphic-gkai00mp
  latex-cjk-japanese-wadalab lcdf-typetools libaften0 libaio1 libakonadi-kabc4 libakonadi-kcal4 libakonadi-kde4 libakonadi-kmime4
  libakonadi-notes4 libakonadiprotocolinternals1 libatk1.0-dev libavcodec53 libavformat53 libbaloopim4 libboost-iostreams1.49.0
  libboost-program-options1.49.0 libboost-program-options1.55.0 libboost-thread1.49.0 libc-ares2 libcairo-script-interpreter2
  libcairo2-dev libcapi20-3 libcommon-sense-perl libdbusmenu-glib4 libdbusmenu-gtk3-4 libdbusmenu-gtk4 libdmtx0a libexo-common
  libexo-helpers libexpat1-dev libfftw3-3 libfontconfig1-dev libfreetype6-dev libgcj13 libgd2-xpm libgdk-pixbuf2.0-dev libgeda-common
  libgeda42 libges-1.0-0 libglib2.0-cil-dev libglib2.0-dev libgmp3c2 libgoocanvas-common libgphoto2-2 libgphoto2-port0 libgrantlee-core0
  libgrantlee-gui0 libgtksourceview-3.0-common libgwrap-runtime2 libhal-storage1 libhal1 libhyphen0 libid3-3.8.3c2a libidl0 libilmbase-dev
  libjasper-dev libjbig-dev libjpeg8-dev libjson-perl libjson-xs-perl libkabc4 libkalarmcal2 libkcal4 libkcalcore4 libkcalutils4
  libkdecorations4abi2 libkdgantt2-0 libkgapi2-2 libkholidays4 libkimap4 libkldap4 libkleo4 libkmbox4 libkmime4 libknewstuff2-4 libkolab0
  libkolabxml1 libkontactinterface4a libkpgp4 libkpimidentities4 libkpimtextedit4 libkpimutils4 libkprintutils4 libkresources4 libkrossui4
  libktnef4 libmailtransport4 libmediastreamer-base3 libmicroblog4 libmlt-data libmotif-common libmsn0.3 libmythes-1.2-0
  libopencv-core-dev libopencv-flann-dev libopencv-imgproc-dev libopencv-ml-dev libopencv-video-dev libopenexr-dev libopusfile0 liborbit2
  libortp9 libosmesa6 libotr5 libpango1.0-dev libparted-fs-resize0 libpcre3-dev libpcrecpp0 libpixman-1-dev libpng12-dev libprison0
  libqgpgme1 libqimageblitz4 libqjson0 libqrencode3 libquicktime2 libreoffice-common libreoffice-java-common libreoffice-style-galaxy
  libreoffice-style-tango libsendlater4 libsmi2ldbl libstroke0 libsyndication4 libtext-csv-perl libtext-csv-xs-perl libtiff4-dev
  libtiffxx0c2 libtinyxml2.6.2 libwireshark-data libwireshark5 libwiretap4 libwsutil4 libwxbase2.8-0 libwxbase3.0-0 libx264-124
  libx264-130 libxcb-shm0-dev libxcomposite-dev libxcursor-dev libxerces-c3.1 libxfce4util-bin libxfce4util-common libxfce4util6
  libxfconf-0-2 libxft-dev libxi-dev libxinerama-dev libxm4 libxrandr-dev libxrender-dev lilypond-doc lilypond-doc-html lilypond-doc-pdf
  lp-solve mysql-server-core-5.5 pcb-common pcb-lesstif pfb2t1c2pfb psensor-common python-pyorbit python-xlib python-zope.interface
  recordmydesktop swath swh-plugins ttf-adf-accanthis ttf-adf-gillius ttf-adf-universalis twolame uno-libs3 ure wine-compholio
  wine-compholio-i386 wireshark-common x11proto-composite-dev x11proto-randr-dev x11proto-render-dev x11proto-xinerama-dev
  xfce-keyboard-shortcuts xfconf xfonts-mathml xsltproc
Use 'apt-get autoremove' to remove them.

and
Code: Select all
The following packages will be REMOVED:
  acroread acroread-data acroread-debian-files acroread-dictionary-en acroread-escript acroread-l10n-en acroread-plugins
  adwaita-icon-theme akregator alacarte asymptote avidemux beid-mozilla-extension brasero brasero-cdrkit browser-plugin-gnash clamtk
  cm-super cm-super-minimal context context-modules cups cups-browsed cups-bsd cups-client cups-core-drivers cups-daemon
  cups-driver-gutenprint cups-filters cups-filters-core-drivers cups-pk-helper cups-ppdc dblatex dconf-editor default-jre
  default-jre-headless dropbox dvipng easyspice easytag eid-mw eid-viewer emacs23 emacs24 enigmail eog epiphany-browser evince evolution
  evolution-data-server evolution-plugins feynmf filezilla firefox-esr five-or-more flashplugin-nonfree foo2zjs foomatic-db-engine
  four-in-a-row fragmaster frei0r-plugins galternatives gcj-4.7-jre gcj-4.9-jre gcj-jre gcr gdm3 geda geda-gattrib geda-gschem
  geda-xgsch2pcb ghostscript ghostscript-x gimp gir1.2-appindicator3-0.1 gir1.2-caribou-1.0 gir1.2-clutter-1.0 gir1.2-clutter-gst-2.0
  gir1.2-gcr-3 gir1.2-gkbd-3.0 gir1.2-gnomebluetooth-1.0 gir1.2-gnomedesktop-3.0 gir1.2-gtk-2.0 gir1.2-gtk-3.0 gir1.2-gtksource-3.0
  gir1.2-mutter-3.0 gir1.2-nmgtk-1.0 gir1.2-panelapplet-4.0 gir1.2-peas-1.0 gir1.2-vte-2.90 gir1.2-wnck-3.0 gjs gkbd-capplet gksu gnash
  gnome-applets gnome-bluetooth gnome-calculator gnome-chess gnome-codec-install gnome-control-center gnome-flashback gnome-icon-theme
  gnome-icon-theme-symbolic gnome-keyring gnome-mahjongg gnome-media gnome-nibbles gnome-online-accounts gnome-orca gnome-packagekit
  gnome-packagekit-session gnome-panel gnome-power-manager gnome-robots gnome-screensaver gnome-session gnome-session-bin
  gnome-session-flashback gnome-settings-daemon gnome-shell gnome-system-monitor gnome-terminal gnome-tetravex gnome-themes-standard
  gnome-themes-standard-data gnome-tweak-tool gnome-user-guide gnome-user-share google-talkplugin gparted gsmartcontrol gspiceui
  gstreamer1.0-clutter gstreamer1.0-plugins-bad gtk-redshift guile-gnome2-gtk gvfs-backends gwave hitori hplip hplip-gui icedove
  icedtea-6-jre-cacao icedtea-6-jre-jamvm icedtea-netx iceowl-extension iceweasel inkscape istanbul kde-runtime kdebase-runtime kdenlive
  kdepim-runtime kerneloops kile kino konsole kopete latex-cjk-all latex-cjk-chinese latex-cjk-common latex-cjk-japanese latex-cjk-korean
  latex-cjk-thai latex2html latexmk libakonadi-calendar4 libakonadi-contact4 libappindicator1 libappindicator3-1 libatk-wrapper-java-jni
  libbeidpkcs11-0 libbeidpkcs11-bin libbonoboui2-0 libbrasero-media3-1 libcalendarsupport4 libcanberra-gtk-module libcanberra-gtk0
  libcanberra-gtk3-0 libcanberra-gtk3-module libcaribou0 libchamplain-0.12-0 libchamplain-gtk-0.12-0 libcheese-gtk23 libcheese7
  libclutter-1.0-0 libclutter-gst-2.0-0 libclutter-gtk-1.0-0 libcolord-gtk1 libcups2 libcups2-dev libcupscgi1 libcupsfilters1
  libcupsimage2 libcupsmime1 libcupsppdc1 libcv-dev libcvaux-dev libeidviewer0 libevdocument3-4 libevolution libevview3-3 libexo-1-0
  libgail-3-0 libgail-common libgail18 libgcj13-awt libgcj15-awt libgcr-ui-3-1 libgimp2.0 libgjs0e libgksu2-0 libglade2-0
  libgnome-bluetooth13 libgnome-desktop-3-10 libgnomecanvas2-0 libgnomekbd4 libgnomekbd8 libgnomeui-0 libgoa-backend-1.0-1 libgoocanvas3
  libgs9 libgtk-3-0 libgtk-3-bin libgtk-3-common libgtk2-perl libgtk2.0-0 libgtk2.0-0-dbg libgtk2.0-bin libgtk2.0-cil libgtk2.0-cil-dev
  libgtk2.0-dev libgtkglext1 libgtkhtml-4.0-0 libgtkhtml-4.0-common libgtkhtml-editor-4.0-0 libgtkmm-2.4-1c2a libgtkmm-3.0-1
  libgtksourceview-3.0-1 libgtkspell0 libgtkspell3-3-0 libgucharmap-2-90-7 libgweather-3-6 libincidenceeditorsng4 libindicator3-7
  libindicator7 libkdepim4 libkdepimdbusinterfaces4 libkonq-common libkonq5abi1 libkopete4 libmailcommon4 libmailimporter4
  libmessagecomposer4 libmessagecore4 libmessageviewer4 libmetacity-private2 libmlt++3 libmlt5 libmono-addins-gui0.2-cil libmutter0e
  libnautilus-extension1a libnm-gtk0 libnotify1 libnss-winbind libopencv-calib3d-dev libopencv-calib3d2.4 libopencv-contrib-dev
  libopencv-contrib2.4 libopencv-features2d-dev libopencv-features2d2.4 libopencv-gpu2.4 libopencv-highgui-dev libopencv-highgui2.4
  libopencv-legacy-dev libopencv-legacy2.4 libopencv-objdetect-dev libopencv-objdetect2.4 libopencv-ocl2.4 libopencv-stitching2.4
  libopencv-superres2.4 libopencv-ts2.4 libopencv-videostab2.4 libpam-winbind libpanel-applet-4-0 libpeas-1.0-0 libpimcommon4 libreoffice
  libreoffice-avmedia-backend-gstreamer libreoffice-base libreoffice-base-core libreoffice-base-drivers libreoffice-calc libreoffice-core
  libreoffice-draw libreoffice-evolution libreoffice-gnome libreoffice-gtk libreoffice-help-en-us libreoffice-impress libreoffice-math
  libreoffice-officebean libreoffice-report-builder-bin libreoffice-sdbc-firebird libreoffice-sdbc-hsqldb libreoffice-writer
  librhythmbox-core8 libsane-hpaio libsmbclient libspectre1 libtemplateparser4 libvte-2.90-9 libvte-2.91-0 libvte9 libwebkit2gtk-4.0-37
  libwebkitgtk-1.0-0 libwebkitgtk-3.0-0 libwnck-3-0 libwxgtk2.8-0 libwxgtk3.0-0 libxfce4ui-1-0 libyelp0 lilypond lilypond-data luatex m-tx
  meld melt metacity mousetweaks mozilla-acroread mplayer musixtex mutter mythes-en-us nautilus network-manager-gnome notification-daemon
  nvidia-settings openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib openjdk-7-jre openjdk-7-jre-headless openoffice.org
  openoffice.org-evolution openoffice.org-gnome openoffice.org-help-en-us openoffice.org-thesaurus-en-us pcb pcb-gtk pcsc-tools pgf phonon
  phonon-backend-vlc pinentry-gtk2 pipelight-multi pitivi pmx policykit-1-gnome prerex printer-driver-brlaser printer-driver-c2050
  printer-driver-c2esp printer-driver-dymo printer-driver-escpr printer-driver-foo2zjs printer-driver-gutenprint printer-driver-hpcups
  printer-driver-pnm2ppa printer-driver-postscript-hp printer-driver-ptouch printer-driver-sag-gdi prosper ps2eps psensor pstoedit
  purifyeps python-appindicator python-aptdaemon-gtk python-aptdaemon.gtk3widgets python-aptdaemon.gtkwidgets python-cups
  python-cupshelpers python-glade2 python-gnome2 python-gtk2 python-notify python-opencv python-pygoocanvas python-samba python-smbc
  python-vte python3-aptdaemon.gtk3widgets python3-pyatspi python3-uno samba samba-common-bin samba-dsdb-modules samba-libs simple-scan
  smbclient software-properties-gtk synaptic system-config-printer system-config-printer-udev systemsettings tali tex4ht tex4ht-common
  texlive texlive-base texlive-bibtex-extra texlive-binaries texlive-extra-utils texlive-font-utils texlive-fonts-extra
  texlive-fonts-extra-doc texlive-fonts-recommended texlive-fonts-recommended-doc texlive-formats-extra texlive-full texlive-games
  texlive-generic-extra texlive-generic-recommended texlive-humanities texlive-humanities-doc texlive-lang-african texlive-lang-arabic
  texlive-lang-chinese texlive-lang-cjk texlive-lang-cyrillic texlive-lang-czechslovak texlive-lang-english texlive-lang-european
  texlive-lang-french texlive-lang-german texlive-lang-greek texlive-lang-indic texlive-lang-italian texlive-lang-japanese
  texlive-lang-korean texlive-lang-other texlive-lang-polish texlive-lang-portuguese texlive-lang-spanish texlive-latex-base
  texlive-latex-base-doc texlive-latex-extra texlive-latex-extra-doc texlive-latex-recommended texlive-latex-recommended-doc
  texlive-luatex texlive-math-extra texlive-metapost texlive-metapost-doc texlive-music texlive-omega texlive-pictures
  texlive-pictures-doc texlive-plain-extra texlive-pstricks texlive-pstricks-doc texlive-publishers texlive-publishers-doc texlive-science
  texlive-science-doc texlive-xetex tipa tomboy tracker-gui unison-gtk vim-gnome vim-gtk vlc vlc-nox vlc-plugin-notify vlc-plugin-pulse
  vprerex winbind wireshark xboard xfburn xmind xournal xsane xsensors yelp zenity


My three questions are then:
1) How to get my HP back? Excerpt from /etc/cups/printers.conf:
Code: Select all
<DefaultPrinter HP-Officejet-Pro-l7500>
UUID urn:uuid:0d1a490f-f3e3-308b-6946-a5d056b9f493
Info HP Officejet Pro l7500
MakeModel HP Officejet Pro l7500, hpcups 3.12.6
DeviceURI socket://192.168.0.108:9100
State Idle
StateTime 1489934595
Type 8425484
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>

2) Is it normal that (I didn't change anything to the FW parameters) localhost:631 (cups GUI) is not reachable anymore? I get "connection refused" (be it through telnet, or browser).
3) How to get the libcups.so2 file back and link it? I assume that if I manage to get it I could try it through
Code: Select all
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/i386-linux-gnu/libcups.so.2

and then
Code: Select all
export LD_LIBRARY_PATH

while
Code: Select all
ldconfig

would register it definitively.
It looks like not only the install (see above) is impacted but also many different elements such as (excerpt from /var/log/syslog when launching gnome system settings):
Code: Select all
gnome-control-center.desktop[3545]: gnome-control-center: error while loading shared libraries: libcups.so.2: cannot open shared object file: No such file or directory


Thanks!
MerciadriLuca
 
Posts: 43
Joined: 2009-07-24 18:11

Re: Problem with so's, mainly libcups.so.2

Postby stevepusser » 2017-05-04 22:56

At a brief glance, I can see you are running a Debian 7 kernel, but have at least very many Debian 8 packages. Your problems are also classic symptons for someone that has mixed two releases or has done an incomplete upgrade from 7 to 8.

Please let us know what the history of your system is, and what software sources you are using. My preferred way is to install inxi and run
Code: Select all
inxi -r


with the output of

Code: Select all
apt-get update


as plan B.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: AzPainter 2.1.0, Pale Moon 27.4.2, Liquorix kernel 4.12-8, mpv 0.27.0, Kodi 17.3, 0ad 0.0.22, Mesa 13.0.6
User avatar
stevepusser
 
Posts: 8714
Joined: 2009-10-06 05:53

Re: Problem with so's, mainly libcups.so.2

Postby MerciadriLuca » 2017-05-05 07:52

Hello,

Thanks for the answer.

stevepusser wrote:At a brief glance, I can see you are running a Debian 7 kernel, but have at least very many Debian 8 packages. Your problems are also classic symptons for someone that has mixed two releases or has done an incomplete upgrade from 7 to 8.

Seems weird as a followed the complete procedures (e.g. https://linuxconfig.org/how-to-upgrade-debian-linux-system-from-wheezy-to-jessie-stable-release, dist-upgrade and so on in the right order) for upgrading from Debian 7 to 8 some weeks ago without having any issues!

stevepusser wrote:Please let us know what the history of your system is, and what software sources you are using. My preferred way is to install inxi and run
Code: Select all
inxi -r


with the output of

Code: Select all
apt-get update


as plan B.

Code: Select all
# hostnamectl
   Static hostname: merciadriluca-station
         Icon name: computer-desktop
           Chassis: desktop
        Machine ID: 3f2596ef340260058da986710000000b
           Boot ID: 627b4be637d94d95aaf815a5d655cba5
  Operating System: Debian GNU/Linux 8 (jessie)
            Kernel: Linux 3.2.0-4-686-pae
      Architecture: x86

Code: Select all
# inxi -r
Repos:     Active apt sources in file: /etc/apt/sources.list
           deb http://ftp.belnet.be/debian/ jessie main non-free contrib
           deb-src http://ftp.belnet.be/debian/ jessie main non-free contrib
           deb http://security.debian.org/ jessie/updates main contrib non-free
           deb-src http://security.debian.org/ jessie/updates main contrib non-free
           deb http://ftp.belnet.be/debian/ jessie-updates main contrib non-free
           deb-src http://ftp.belnet.be/debian/ jessie-updates main contrib non-free
           Active apt sources in file: /etc/apt/sources.list.d/dropbox.list
           deb [arch=i386,amd64] http://linux.dropbox.com/debian wheezy main
           Active apt sources in file: /etc/apt/sources.list.d/eid.list
           deb http://files.eid.belgium.be/debian jessie main
           deb http://files2.eid.belgium.be/debian jessie main
           Active apt sources in file: /etc/apt/sources.list.d/google-talkplugin.list
           deb http://dl.google.com/linux/talkplugin/deb/ stable main

Which seems coherent being given the /etc/apt/sources.list file:
Code: Select all
# cat /etc/apt/sources.list

#deb http://apt.insynchq.com/debian/ squeeze non-free
#

# deb cdrom:[Debian GNU/Linux 6.0.5 _Squeeze_ - Official i386 NETINST Binary-1 20120512-20:43]/ squeeze main

# deb cdrom:[Debian GNU/Linux 6.0.5 _Squeeze_ - Official i386 NETINST Binary-1 20120512-20:43]/ squeeze main

deb http://ftp.belnet.be/debian/ jessie main non-free contrib
deb-src http://ftp.belnet.be/debian/ jessie main non-free contrib

deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free

# wheezy-updates, previously known as 'volatile'
deb http://ftp.belnet.be/debian/ jessie-updates main contrib non-free
deb-src http://ftp.belnet.be/debian/ jessie-updates main contrib non-free

#deb http://download.opensuse.org/repositories/home:/DarkPlayer:/Pipelight/Debian_7.0/ ./

Are you sure then?
MerciadriLuca
 
Posts: 43
Joined: 2009-07-24 18:11

Re: Problem with so's, mainly libcups.so.2

Postby stevepusser » 2017-05-05 22:01

So it looks like currently winbind is holding up samba. I'd first try to restore your libcups.so.2 file, if it was removed. We can search to see what package provides it:

Code: Select all
dpkg -S libcups.so.2


and the answer for my multiarch 64-bit system is:
Code: Select all
libcups2:i386: /usr/lib/i386-linux-gnu/libcups.so.2
libcups2:amd64: /usr/lib/x86_64-linux-gnu/libcups.so.2


so if you want your system's native version, install libcups2 to fix the damaged file. However, you may have other damaged files that you don't know about. This is going to be preachy, but this is a good lesson about maintaining a backup of your system for just such a situation.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: AzPainter 2.1.0, Pale Moon 27.4.2, Liquorix kernel 4.12-8, mpv 0.27.0, Kodi 17.3, 0ad 0.0.22, Mesa 13.0.6
User avatar
stevepusser
 
Posts: 8714
Joined: 2009-10-06 05:53

Re: Problem with so's, mainly libcups.so.2

Postby MerciadriLuca » 2017-05-06 18:48

stevepusser wrote:So it looks like currently winbind is holding up samba. I'd first try to restore your libcups.so.2 file, if it was removed. We can search to see what package provides it:

Code: Select all
dpkg -S libcups.so.2


and the answer for my multiarch 64-bit system is:
Code: Select all
libcups2:i386: /usr/lib/i386-linux-gnu/libcups.so.2
libcups2:amd64: /usr/lib/x86_64-linux-gnu/libcups.so.2


so if you want your system's native version, install libcups2 to fix the damaged file. However, you may have other damaged files that you don't know about. This is going to be preachy, but this is a good lesson about maintaining a backup of your system for just such a situation.

Code: Select all
# dpkg -S libcups.so.2
libcups2:i386: /usr/lib/i386-linux-gnu/libcups.so.2
root@merciadriluca-station:/home/merciadriluca# apt-get -s install libcups2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libcups2 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
4 not fully installed or removed.
Conf samba (2:4.2.14+dfsg-0+deb8u5 Debian-Security:8/stable [i386])
Conf winbind (2:4.2.14+dfsg-0+deb8u5 Debian-Security:8/stable [i386])
Conf libnss-winbind (2:4.2.14+dfsg-0+deb8u5 Debian-Security:8/stable [i386])
Conf libpam-winbind (2:4.2.14+dfsg-0+deb8u5 Debian-Security:8/stable [i386])

Thus, libcups2 is already installed. As I said before, reinstalling libcups2 (by removing & reinstalling) seems very dangerous (being given the whole list of packages which would have to be reinstalled!).

What should I do then? Don't worry for the other damaged files for now.
MerciadriLuca
 
Posts: 43
Joined: 2009-07-24 18:11

Re: Problem with so's, mainly libcups.so.2

Postby stevepusser » 2017-05-07 00:10

https://debian-administration.org/artic ... x_problems.

Code: Select all
apt-get install --reinstall libcups2


It should be possible to write a command that reinstalls everything that you have installed in order to repair any damaged files, but I'm out of time; maybe someone else could chime in or the Google can turn it up-- using the dpkg-select command?
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: AzPainter 2.1.0, Pale Moon 27.4.2, Liquorix kernel 4.12-8, mpv 0.27.0, Kodi 17.3, 0ad 0.0.22, Mesa 13.0.6
User avatar
stevepusser
 
Posts: 8714
Joined: 2009-10-06 05:53

Re: Problem with so's, mainly libcups.so.2

Postby MerciadriLuca » 2017-05-07 07:19

Thanks for the answer! I had tried different "reinstall" but I didn't remember that it was so that it had to be written to get a reinstallation.

Anyway the multiple packages' issues are now solved!

For the two remaining problems, i.e.
1) How to get my HP back?
->
Code: Select all
# systemctl status cups
● cups.service - CUPS Printing Service
   Loaded: loaded (/lib/systemd/system/cups.service; enabled)
   Active: failed (Result: start-limit) since dim 2017-05-07 10:13:46 CEST; 39s ago
     Docs: man:cupsd(8)
           man:cupsd.conf(5)
  Process: 3384 ExecStart=/usr/sbin/cupsd -f (code=exited, status=127)
 Main PID: 3384 (code=exited, status=127)

mai 07 10:13:46 merciadriluca-station systemd[1]: Started CUPS Printing Service.
mai 07 10:13:46 merciadriluca-station cupsd[3384]: /usr/sbin/cupsd: error while loading shared libraries: libcupsmime.so.1: cannot ...ectory
mai 07 10:13:46 merciadriluca-station systemd[1]: cups.service: main process exited, code=exited, status=127/n/a
mai 07 10:13:46 merciadriluca-station systemd[1]: Unit cups.service entered failed state.
mai 07 10:13:46 merciadriluca-station systemd[1]: Starting CUPS Printing Service...
mai 07 10:13:46 merciadriluca-station systemd[1]: cups.service start request repeated too quickly, refusing to start.
mai 07 10:13:46 merciadriluca-station systemd[1]: Failed to start CUPS Printing Service.
Hint: Some lines were ellipsized, use -l to show in full.

and then
Code: Select all
root@merciadriluca-station:/home/merciadriluca# dpkg -S libcupsmime.so.1
libcupsmime1:i386: /usr/lib/i386-linux-gnu/libcupsmime.so.1
root@merciadriluca-station:/home/merciadriluca# apt-get install --reinstall libcupsmime

did the trick.
2) Is it normal that (I didn't change anything to the FW parameters) localhost:631 (cups GUI) is not reachable anymore? I get "connection refused" (be it through telnet, or browser).
-> solved too but I still get "Internal server error" when accessing the "Printers" menu on localhost:631 (CUPS). Why?
MerciadriLuca
 
Posts: 43
Joined: 2009-07-24 18:11

Re: Problem with so's, mainly libcups.so.2

Postby stevepusser » 2017-05-07 19:31

If this problem started at the same time that you had problems with the file system, I can only guess that some other files were damaged. Which ones? I have no way of knowing.

If you wish to reinstall all installed packages, there several ways to create a list, such as "apt list --installed", or just "dpkg -l".
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: AzPainter 2.1.0, Pale Moon 27.4.2, Liquorix kernel 4.12-8, mpv 0.27.0, Kodi 17.3, 0ad 0.0.22, Mesa 13.0.6
User avatar
stevepusser
 
Posts: 8714
Joined: 2009-10-06 05:53

Re: Problem with so's, mainly libcups.so.2

Postby MerciadriLuca » 2017-05-07 19:45

stevepusser wrote:If this problem started at the same time that you had problems with the file system, I can only guess that some other files were damaged. Which ones? I have no way of knowing.

If you wish to reinstall all installed packages, there several ways to create a list, such as "apt list --installed", or just "dpkg -l".

Thanks. The issue can now be considered as solved. Thanks a lot!! :-)
MerciadriLuca
 
Posts: 43
Joined: 2009-07-24 18:11


Return to System configuration

Who is online

Users browsing this forum: No registered users and 4 guests

fashionable