Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: Unable to fix, reinstall, or remove package.

  1. #1
    Join Date
    Mar 2007
    Beans
    1,325

    Unable to fix, reinstall, or remove package.

    I just upgrade a 16.04 LTS to 18.04 LTS and I'm stuck. One package won't fix, install reinstall or remove.
    I have never seen this error before . I wonder if I should simple delete or rename '/usr/lib/libpt.so.2.10.11' to see if it will work.

    Code:
    # apt --fix-broken install
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Correcting dependencies... Done
    The following packages were automatically installed and are no longer required:
      account-plugin-facebook account-plugin-flickr appmenu-qt5 gir1.2-gnomekeyring-1.0
      gnome-icon-theme-symbolic gnome-user-share hardening-includes kate-data katepart
      libaccount-plugin-generic-oauth libapache2-mod-dnssd libautodie-perl libcapnp-0.5.3
      libevent-2.0-5 libgcr-3-common libgfortran3 libgnutls-openssl27 libjs-sphinxdoc libjs-underscore
      libkatepartinterfaces4 libllvm6.0 libnm-gtk-common libopencc1 librpmbuild3 libsub-identify-perl
      libtxc-dxtn-s2tc0 libustr-1.0-1 libxcb-xf86dri0 libxerces-c3.1 python-debianbts python-pyatspi
      python-reportbug signon-plugin-password
    Use 'apt autoremove' to remove them.
    The following additional packages will be installed:
      libpt2.10.11
    The following NEW packages will be installed:
      libpt2.10.11
    0 upgraded, 1 newly installed, 0 to remove and 598 not upgraded.
    3 not fully installed or removed.
    Need to get 0 B/1,128 kB of archives.
    After this operation, 4,030 kB of additional disk space will be used.
    Do you want to continue? [Y/n] Y
    (Reading database ... 395310 files and directories currently installed.)
    Preparing to unpack .../libpt2.10.11_2.10.11~dfsg-2.1_i386.deb ...
    Unpacking libpt2.10.11 (2.10.11~dfsg-2.1) ...
    dpkg: error processing archive /var/cache/apt/archives/libpt2.10.11_2.10.11~dfsg-2.1_i386.deb (--unpack):
     trying to overwrite '/usr/lib/libpt.so.2.10.11', which is also in package libpt2.10.10v5 2.10.11~dfsg-1ubuntu1
    dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
    Errors were encountered while processing:
     /var/cache/apt/archives/libpt2.10.11_2.10.11~dfsg-2.1_i386.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    Last edited by rsteinmetz70112; February 15th, 2021 at 06:41 PM.

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

    Re: Unable to fix, reinstall, or remove package.

    rsteinmetz70112 - Hello

    As we have:
    0 to remove and 598 not upgraded.
    there is indications that the system has bot been updated.

    Run terminal commands:
    Code:
    sudo apt update
    sudo apt full-upgrade
    And advise us of these results.

    ain't nothing but a thing
    Last edited by deadflowr; February 18th, 2021 at 05:00 AM. Reason: fixed quote
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  3. #3
    Join Date
    Mar 2007
    Beans
    1,325

    Re: Unable to fix, reinstall, or remove package.

    I had run those commands before but failed to capture teh out put so here goes
    Code:
    # apt update
    Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
    Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
    Hit:3 http://us.archive.ubuntu.com/ubuntu bionic InRelease
    Get:4 http://security.ubuntu.com/ubuntu bionic-security/universe i386 DEP-11 Metadata [59.7 kB]
    Get:5 http://security.ubuntu.com/ubuntu bionic-security/main i386 DEP-11 Metadata [48.8 kB]
    Get:6 http://security.ubuntu.com/ubuntu bionic-security/multiverse i386 DEP-11 Metadata [2,464 B]
    Get:7 http://us.archive.ubuntu.com/ubuntu bionic-updates/main Sources [504 kB]
    Get:8 http://us.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [1,220 kB]
    Get:9 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [1,884 kB]
    Get:10 http://us.archive.ubuntu.com/ubuntu bionic-updates/main i386 DEP-11 Metadata [295 kB]
    Get:11 http://us.archive.ubuntu.com/ubuntu bionic-updates/multiverse i386 DEP-11 Metadata [2,464 B]
    Get:12 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe i386 DEP-11 Metadata [289 kB]
    Fetched 4,483 kB in 20s (229 kB/s)
    
    (appstreamcli:22714): GLib-CRITICAL **: 17:50:48.477: g_strchug: assertion 'string != NULL' failed
    
    (appstreamcli:22714): GLib-CRITICAL **: 17:50:48.477: g_strchomp: assertion 'string != NULL' failed
    
    (appstreamcli:22714): GLib-CRITICAL **: 17:50:48.929: g_strchug: assertion 'string != NULL' failed
    
    (appstreamcli:22714): GLib-CRITICAL **: 17:50:48.929: g_strchomp: assertion 'string != NULL' failed
    
    (appstreamcli:22714): GLib-CRITICAL **: 17:50:49.374: g_strchug: assertion 'string != NULL' failed
    
    (appstreamcli:22714): GLib-CRITICAL **: 17:50:49.374: g_strchomp: assertion 'string != NULL' failed
    AppStream cache update completed, but some metadata was ignored due to errors.
    
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    598 packages can be upgraded. Run 'apt list --upgradable' to see them.
    Code:
    # apt full-upgrade
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    You might want to run 'apt --fix-broken install' to correct these.
    The following packages have unmet dependencies:
     ekiga : Depends: libpt2.10.11 but it is not installed
     libopal3.10.10 : Depends: libpt2.10.11 but it is not installed
    E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
    The output of
    Code:
    apt install -f
    is in the original message.

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

    Re: Unable to fix, reinstall, or remove package.

    rsteinmetz70112; Wow

    Have not seen this appstream notice in some years.

    What have we to work with ?
    show us:
    Code:
    apt-cache policy appstream
    as ahunt'n we shall go
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  5. #5
    Join Date
    Mar 2007
    Beans
    1,325

    Re: Unable to fix, reinstall, or remove package.

    Here you go:

    Code:
    # apt-cache policy appstream
    appstream:
      Installed: 0.9.4-1ubuntu4
      Candidate: 0.12.0-3ubuntu1
      Version table:
         0.12.0-3ubuntu1 500
            500 http://us.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages
         0.12.0-3 500
            500 http://us.archive.ubuntu.com/ubuntu bionic/main i386 Packages
     *** 0.9.4-1ubuntu4 100
            100 /var/lib/dpkg/status

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

    Re: Unable to fix, reinstall, or remove package.

    rsteinmetz70112; Uh huh -

    Best I recall the 0.9.4-1ubuntu4 version is the affected version

    Let's try:
    Code:
    sudo apt remove --purge appstream
    sudo apt update
    sudo apt install appstream
    sudo apt full-upgrade
    maybe Yes
    Last edited by Bashing-om; February 17th, 2021 at 02:46 AM. Reason: failure in thought (remove --purge)
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  7. #7
    Join Date
    Mar 2007
    Beans
    1,325

    Re: Unable to fix, reinstall, or remove package.

    I'm away from my office. I'll try tomorrow.

  8. #8
    Join Date
    Mar 2007
    Beans
    1,325

    Re: Unable to fix, reinstall, or remove package.

    Ok here we go:

    Code:
    # apt --purge appstream
    E: Command line option --purge is not understood in combination with the other options
    # apt purge appstream
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    You might want to run 'apt --fix-broken install' to correct these.
    The following packages have unmet dependencies:
     ekiga : Depends: libpt2.10.11 but it is not going to be installed
     gnome-software : Depends: appstream but it is not going to be installed
     libopal3.10.10 : Depends: libpt2.10.11 but it is not going to be installed
    E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

    Code:
    # apt install appstream
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    You might want to run 'apt --fix-broken install' to correct these.
    The following packages have unmet dependencies:
     appstream : Depends: libappstream4 (>= 0.11.7) but it is not going to be installed
                 Breaks: gnome-software (< 3.22.5-1) but 3.20.5-0ubuntu0.16.04.13 is to be installed
     ekiga : Depends: libpt2.10.11 but it is not going to be installed
     libopal3.10.10 : Depends: libpt2.10.11 but it is not going to be installed
    E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

  9. #9
    Join Date
    Mar 2007
    Beans
    1,325

    Re: Unable to fix, reinstall, or remove package.

    OK Noodling around the Internet I found a dpkg command and tried it:

    Code:
    sudo dpkg -i --force-overwrite /var/cache/apt/archives/libpt2.10.11_2.10.11~dfsg-2.1_i386.deb
    then

    Code:
    apt install -f
    worked.

    then

    Code:
    apt autoremove
    worked
    then

    Code:
    the apt update
    worked

    then
    Code:
    apt upgrade
    failed

    but
    Code:
    apt full-upgrade
    ran

    and fetched 669 MB and 1047 packages
    It failed but

    Code:
    apt install -f
    ran
    but
    Code:
    errors were encountered while processing 
    /tmp/apt-dpkg-install-5K2elm/04-gpgconf_2.2.4-1ubuntu1.3_i386.deb
    /tmp/apt-dpkg-install-5K2elm/05-gnupg-utils_2.2.4-1ubuntu1.3_i386.deb
    /tmp/apt-dpkg-install-5K2elm/06-gpg-agent_2.2.4-1ubuntu1.3_i386.deberrors were encountered
    /tmp/apt-dpkg-install-5K2elm/04-gpgconf_2.2.4-1ubuntu1.3_i386.deb
    /tmp/apt-dpkg-install-5K2elm/05-gnupg-utils_2.2.4-1ubuntu1.3_i386.deb
    /tmp/apt-dpkg-install-5K2elm/06-gpg-agent_2.2.4-1ubuntu1.3_i386.deb
    But I guess that's progress.
    Last edited by rsteinmetz70112; February 17th, 2021 at 07:11 PM.

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

    Re: Unable to fix, reinstall, or remove package.

    rsteinmetz70112 - Hey hey !

    You do good work - sorry about my mistake with the --purge command - fixed in the post.

    As many 32 bit (i386) packages are no longer supported - I will have to do some research to provide a better means forward. A cursory look (20.04) indicates that gpgconf in 32 bit arch is still supported.

    I shall return
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

Page 1 of 3 123 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
  •