Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 37

Thread: Apt unable to install, upgrade or remove

  1. #11
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    14,199
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Apt unable to install, upgrade or remove

    jrg010381; Hey;

    @ ian-weisser; So pleased to have your insight into this matter .

    So far so good, but we do not know that state of the remainder of the dependencies.
    This last however:
    snmpd: error while loading shared libraries: libperl.so.5.14: cannot open shared object file:
    makes me question if there is a broken symbolic link.
    What also returns from terminal command:
    Code:
    ls -al /usr/lib/libperl.so.5.14
    And does the file exist that the link points to ?

    sometimes I do wonder
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  2. #12
    Join Date
    Aug 2013
    Beans
    18

    Re: Apt unable to install, upgrade or remove

    Code:
    user@:~$ ls -al /usr/lib/libperl.so.5.14
    ls: cannot access /usr/lib/libperl.so.5.14: No such file or directory
    I did find the following though:
    Code:
    user@:~$ ls -al /usr/lib/ | grep libp
    lrwxrwxrwx   1 root root           26 Sep 30  2014 libpanel-applet-4.so.0 -> libpanel-applet-4.so.0.1.1
    -rw-r--r--   1 root root        69656 Sep 30  2014 libpanel-applet-4.so.0.1.1
    lrwxrwxrwx   1 root root           20 Dec  4  2014 libpathplan.so.4 -> libpathplan.so.4.0.0
    -rw-r--r--   1 root root        30840 Dec  4  2014 libpathplan.so.4.0.0
    drwxr-xr-x   3 root root         4096 Jan  7  2013 libpeas-1.0
    lrwxrwxrwx   1 root root           22 Feb 19  2014 libpeas-1.0.so.0 -> libpeas-1.0.so.0.801.0
    -rw-r--r--   1 root root        81440 Feb 19  2014 libpeas-1.0.so.0.801.0
    lrwxrwxrwx   1 root root           26 Feb 19  2014 libpeas-gtk-1.0.so.0 -> libpeas-gtk-1.0.so.0.801.0
    -rw-r--r--   1 root root        56944 Feb 19  2014 libpeas-gtk-1.0.so.0.801.0
    -rw-r--r--   1 root root     13112294 Mar 27  2014 libperl.a
    lrwxrwxrwx   1 root root           15 Mar 27  2014 libperl.so -> libperl.so.5.18
    lrwxrwxrwx   1 root root           17 Mar 27  2014 libperl.so.5.18 -> libperl.so.5.18.2
    -rw-r--r--   1 root root      1608280 Mar 27  2014 libperl.so.5.18.2
    Why does snmpd still want libperl.so.5.14???

  3. #13
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    14,199
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Apt unable to install, upgrade or remove

    jrg010381; OK !

    I have an inkling of what is going on here.
    If you look at the source packaging:
    http://packages.ubuntu.com/search?se...dates&arch=any
    That version is for 'precise'

    So we look at the sources, and lo and behold:
    ==> /etc/apt/sources.list.d/webupd8team-java-precise.list.distUpgrade <==
    deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main
    deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main
    We have a 'precise' source for a 'trusty' install !

    webupd8team does support 'trusty', so the 1st thing is to update all sources to trusty.
    Now see what results:
    Code:
    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get -f install
    Maybe we will not have to manage this situation manually (?).

    it could happen
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  4. #14
    Join Date
    Aug 2013
    Beans
    18

    Re: Apt unable to install, upgrade or remove

    I commented out the webupd8team entries from /etc/apt/sources.list.d/webupd8team-java-precise.list.distUpgrade then did the following:

    Code:
    user@:~$ sudo apt-get update ; sudo apt-get upgrade
    Ign http://us.archive.ubuntu.com trusty InRelease
    Ign http://us.archive.ubuntu.com trusty-updates InRelease
    Ign http://us.archive.ubuntu.com trusty-backports InRelease
    Ign http://security.ubuntu.com trusty-security InRelease
    Hit http://us.archive.ubuntu.com trusty Release.gpg
    Hit http://us.archive.ubuntu.com trusty-updates Release.gpg
    Hit http://security.ubuntu.com trusty-security Release.gpg
    Hit http://us.archive.ubuntu.com trusty-backports Release.gpg
    Hit http://us.archive.ubuntu.com trusty Release
    Hit http://security.ubuntu.com trusty-security Release
    Hit http://us.archive.ubuntu.com trusty-updates Release
    Hit http://us.archive.ubuntu.com trusty-backports Release
    Hit http://us.archive.ubuntu.com trusty/main Sources
    Hit http://security.ubuntu.com trusty-security/main Sources
    Hit http://us.archive.ubuntu.com trusty/restricted Sources
    Hit http://us.archive.ubuntu.com trusty/universe Sources
    Hit http://security.ubuntu.com trusty-security/restricted Sources
    Hit http://us.archive.ubuntu.com trusty/multiverse Sources
    Hit http://us.archive.ubuntu.com trusty/main amd64 Packages
    Hit http://us.archive.ubuntu.com trusty/restricted amd64 Packages
    Hit http://security.ubuntu.com trusty-security/universe Sources
    Hit http://us.archive.ubuntu.com trusty/universe amd64 Packages
    Hit http://security.ubuntu.com trusty-security/multiverse Sources
    Hit http://us.archive.ubuntu.com trusty/multiverse amd64 Packages
    Hit http://us.archive.ubuntu.com trusty/main i386 Packages
    Hit http://us.archive.ubuntu.com trusty/restricted i386 Packages
    Hit http://security.ubuntu.com trusty-security/main amd64 Packages
    Hit http://security.ubuntu.com trusty-security/restricted amd64 Packages
    Hit http://us.archive.ubuntu.com trusty/universe i386 Packages
    Hit http://us.archive.ubuntu.com trusty/multiverse i386 Packages
    Hit http://security.ubuntu.com trusty-security/universe amd64 Packages
    Hit http://us.archive.ubuntu.com trusty/main Translation-en
    Hit http://security.ubuntu.com trusty-security/multiverse amd64 Packages
    Hit http://us.archive.ubuntu.com trusty/multiverse Translation-en
    Hit http://security.ubuntu.com trusty-security/main i386 Packages
    Hit http://us.archive.ubuntu.com trusty/restricted Translation-en
    Hit http://security.ubuntu.com trusty-security/restricted i386 Packages
    Hit http://us.archive.ubuntu.com trusty/universe Translation-en
    Hit http://us.archive.ubuntu.com trusty-updates/main Sources
    Hit http://us.archive.ubuntu.com trusty-updates/restricted Sources
    Hit http://security.ubuntu.com trusty-security/universe i386 Packages
    Hit http://us.archive.ubuntu.com trusty-updates/universe Sources
    Hit http://us.archive.ubuntu.com trusty-updates/multiverse Sources
    Hit http://security.ubuntu.com trusty-security/multiverse i386 Packages
    Hit http://us.archive.ubuntu.com trusty-updates/main amd64 Packages
    Hit http://us.archive.ubuntu.com trusty-updates/restricted amd64 Packages
    Hit http://security.ubuntu.com trusty-security/main Translation-en
    Hit http://us.archive.ubuntu.com trusty-updates/universe amd64 Packages
    Hit http://us.archive.ubuntu.com trusty-updates/multiverse amd64 Packages
    Hit http://security.ubuntu.com trusty-security/multiverse Translation-en
    Hit http://us.archive.ubuntu.com trusty-updates/main i386 Packages
    Hit http://security.ubuntu.com trusty-security/restricted Translation-en
    Hit http://us.archive.ubuntu.com trusty-updates/restricted i386 Packages
    Hit http://us.archive.ubuntu.com trusty-updates/universe i386 Packages
    Hit http://us.archive.ubuntu.com trusty-updates/multiverse i386 Packages
    Hit http://us.archive.ubuntu.com trusty-updates/main Translation-en
    Hit http://us.archive.ubuntu.com trusty-updates/multiverse Translation-en
    Hit http://security.ubuntu.com trusty-security/universe Translation-en
    Hit http://us.archive.ubuntu.com trusty-updates/restricted Translation-en
    Hit http://us.archive.ubuntu.com trusty-updates/universe Translation-en
    Hit http://us.archive.ubuntu.com trusty-backports/main Sources
    Hit http://us.archive.ubuntu.com trusty-backports/restricted Sources
    Hit http://us.archive.ubuntu.com trusty-backports/universe Sources
    Hit http://us.archive.ubuntu.com trusty-backports/multiverse Sources
    Hit http://us.archive.ubuntu.com trusty-backports/main amd64 Packages
    Hit http://us.archive.ubuntu.com trusty-backports/restricted amd64 Packages
    Hit http://us.archive.ubuntu.com trusty-backports/universe amd64 Packages
    Hit http://us.archive.ubuntu.com trusty-backports/multiverse amd64 Packages
    Hit http://us.archive.ubuntu.com trusty-backports/main i386 Packages
    Hit http://us.archive.ubuntu.com trusty-backports/restricted i386 Packages
    Hit http://us.archive.ubuntu.com trusty-backports/universe i386 Packages
    Hit http://us.archive.ubuntu.com trusty-backports/multiverse i386 Packages
    Hit http://us.archive.ubuntu.com trusty-backports/main Translation-en
    Hit http://us.archive.ubuntu.com trusty-backports/multiverse Translation-en
    Hit http://us.archive.ubuntu.com trusty-backports/restricted Translation-en
    Hit http://us.archive.ubuntu.com trusty-backports/universe Translation-en
    Ign http://us.archive.ubuntu.com trusty/main Translation-en_US
    Ign http://us.archive.ubuntu.com trusty/multiverse Translation-en_US
    Ign http://us.archive.ubuntu.com trusty/restricted Translation-en_US
    Ign http://us.archive.ubuntu.com trusty/universe Translation-en_US
    Reading package lists... Done
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Calculating upgrade... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    
    user@:~$ sudo apt-get -f install
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    
    user@:~$ sudo apt-get install snmpd
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following NEW packages will be installed:
      snmpd
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 0 B/73.3 kB of archives.
    After this operation, 232 kB of additional disk space will be used.
    Preconfiguring packages ...
    Selecting previously unselected package snmpd.
    (Reading database ... 179782 files and directories currently installed.)
    Preparing to unpack .../snmpd_5.7.2~dfsg-8.1ubuntu3_amd64.deb ...
    Unpacking snmpd (5.7.2~dfsg-8.1ubuntu3) ...
    Processing triggers for ureadahead (0.100.0-16) ...
    Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
    Setting up snmpd (5.7.2~dfsg-8.1ubuntu3) ...
    update-rc.d: warning:  stop runlevel arguments (1) do not match snmpd Default-Stop values (0 1 6)
     * Starting network management services:                                                                                                                                                                                                  /usr/sbin/snmpd: error while loading shared libraries: libperl.so.5.14: cannot open shared object file: No such file or directory
    invoke-rc.d: initscript snmpd, action "start" failed.
    dpkg: error processing package snmpd (--configure):
     subprocess installed post-installation script returned error exit status 127
    Processing triggers for ureadahead (0.100.0-16) ...
    Errors were encountered while processing:
     snmpd
    E: Sub-process /usr/bin/dpkg returned an error code (1)

  5. #15
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    14,199
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Apt unable to install, upgrade or remove

    jrg010381; Well ...

    Progress.

    What is it going to hurt if we purge snmpd ?
    As the error indicates a problem with a config file (upstart). As I do not have snmpd installed I can not look at what might be;
    Maybe by purging, and then (RE-)installing the config issue will be resolved ??

    I can accept that there is a much cleaner way to handle this; addressing the actual root of the configuration, but !


    poor folks
    have poor ways
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  6. #16
    Join Date
    Aug 2013
    Beans
    18

    Re: Apt unable to install, upgrade or remove

    I did run apt-get purge snmpd. For some reason, I can still attempt to run snmpd, but it never runs.

  7. #17
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    14,199
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Apt unable to install, upgrade or remove

    jrg010381; Humm ......

    Recon that snmpd is running ? Such that as the app is in use, the system can not remove it .
    What returns:
    Code:
    ps aux | grep snmpd
    dpkg -l snmpd
    We are in that process of learning.

    inquiring minds want to know
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  8. #18
    Join Date
    Aug 2013
    Beans
    18

    Re: Apt unable to install, upgrade or remove

    Thanks again for your help!

    Code:
    user@:~$ ps aux | grep snmpd
    user 11055  0.0  0.1  10468  2164 pts/12   S+   20:32   0:00 grep --color=auto snmpd
    user@:~$ dpkg -l snmpd
    dpkg-query: no packages found matching snmpd
    So clearly it is not running or installed. However, when I tab complete snmp, snmpd shows up...
    Code:
    user@:~$ snmp
    snmp-bridge-mib  snmpconf         snmpget          snmpnetstat      snmptest         snmpusm
    snmpbulkget      snmpd            snmpgetnext      snmpset          snmptranslate    snmpvacm
    snmpbulkwalk     snmpdelta        snmpinform       snmpstatus       snmptrap         snmpwalk
    snmpcheck        snmpdf           snmpkey          snmptable        snmptrapd        
    user@:~$ snmp
    I have found that snmpd int /usr/sbin/, but what is it??

    Code:
    user@:~$ ls -al /usr/local/sbin/
    total 124
    drwxr-xr-x  2 root root  4096 Mar 26  2014 .
    drwxr-xr-x 13 root root  4096 Jan  8  2014 ..
    -rwxr-xr-x  1 root root 55950 Mar 26  2014 snmpd
    -rwxr-xr-x  1 root root 61118 Mar 26  2014 snmptrapd

  9. #19
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    14,199
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Apt unable to install, upgrade or remove

    jrg010381; Wellllll ,,

    Got me scratching my head wondering what is going on .

    What do the control files yield ?
    Code:
    ls -al /var/lib/dpkg/info/snmpd.list
    grep -B3 -A10 snmpd /var/lib/dpkg/status
    If there is anything there, we may get a hint of what we need to do.

    sometimes I do wonder
    othertimes, I just do not know
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  10. #20
    Join Date
    Aug 2013
    Beans
    18

    Re: Apt unable to install, upgrade or remove

    Not sure of any hints to give.

    Code:
    user@:~$ ls -al /var/lib/dpkg/info/snmpd.list
    -rw-r--r-- 1 root root 1545 Aug  1 20:42 /var/lib/dpkg/info/snmpd.list
    user@:~$ grep -B3 -A10 snmpd /var/lib/dpkg/status
    Homepage: http://net-snmp.sourceforge.net/
    Original-Maintainer: Net-SNMP Packaging Team <pkg-net-snmp-devel@lists.alioth.debian.org>
    
    
    Package: snmpd
    Status: install ok half-configured
    Priority: optional
    Section: net
    Installed-Size: 227
    Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
    Architecture: amd64
    Source: net-snmp
    Version: 5.7.2~dfsg-8.1ubuntu3
    Depends: libc6 (>= 2.4), libmysqlclient18 (>= 5.5.24+dfsg-1), libsnmp30 (>= 5.7.2~dfsg), libwrap0 (>= 7.6-4~), debconf (>= 0.5) | debconf-2.0, adduser, debconf, lsb-base (>= 3.2-13), libsnmp-base
    Conffiles:
     /etc/snmp/snmptrapd.conf a2ee110581a5a9a1e2252400cb176bcc
     /etc/snmp/snmpd.conf 0bcc67e56996b3d9ce197a1776266856
     /etc/init.d/snmpd be9d2bb34e6fde7ccf09289905cb2cee
     /etc/default/snmpd 1ced835b933ffebc2d5176a1b5e248f7
    Description: SNMP (Simple Network Management Protocol) agents
     The Simple Network Management Protocol (SNMP) provides a framework
     for the exchange of management information between agents (servers)
     and clients.
     .
     The Net-SNMP agent is a daemon which listens for incoming SNMP
     requests from clients and provides responses.
    Homepage: http://net-snmp.sourceforge.net/
    Original-Maintainer: Net-SNMP Packaging Team <pkg-net-snmp-devel@lists.alioth.debian.org>

Page 2 of 4 FirstFirst 1234 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •