Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Unable to install or remove packages Ubuntu server 20.1

  1. #1
    Join Date
    Jul 2009
    Beans
    363

    Unable to install or remove packages Ubuntu server 20.1

    Hello,

    I get error installing or removing packages with apt command as follows. What should I do?

    Code:
    sudo apt autoremove                Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages will be REMOVED:
      cpp-7 g++-9 libasan4 libdns-export1109 libisl19 libmpx2 libstdc++-9-dev
      python-jasmin
    0 upgraded, 0 newly installed, 8 to remove and 558 not upgraded.
    1 not fully installed or removed.
    After this operation, 75.7 MB disk space will be freed.
    Do you want to continue? [Y/n] y
    (Reading database ... 224264 files and directories currently installed.)
    Removing python-jasmin (0.9.27) ...
    Failed to stop jasmind.service: Unit jasmind.service not loaded.
    dpkg: error processing package python-jasmin (--remove):
     installed python-jasmin package post-removal script subprocess returned error e
    xit status 5
    dpkg: too many errors, stopping
    Errors were encountered while processing:
     python-jasmin
    Processing was halted because there were too many errors.

  2. #2
    Join Date
    May 2013
    Location
    Galiza
    Beans
    3,597
    Distro
    Ubuntu

    Re: Unable to install or remove packages Ubuntu server 20.1

    First reinstall the package that is "not fully installed or removed".
    Then fully update the system before trying the autoremove again.

  3. #3
    Join Date
    Jul 2009
    Beans
    363

    Re: Unable to install or remove packages Ubuntu server 20.1

    Quote Originally Posted by CelticWarrior View Post
    First reinstall the package that is "not fully installed or removed".
    Then fully update the system before trying the autoremove again.
    Thank you. It didnt work. In fact I had tried that earlier.

    Code:
    sudo apt install python-jasmin[sudo] password for uma: 
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    python-jasmin is already the newest version (0.9.27).
    E: Can't find a source to download version '0.9.27' of 'python-jasmin:amd64'
    uma@localhost:~$ sudo apt purge python-jasmin
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages will be REMOVED:
      python-jasmin
    0 upgraded, 0 newly installed, 1 to remove and 558 not upgraded.
    1 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
    (Reading database ... 224264 files and directories currently installed.)
    Removing python-jasmin (0.9.27) ...
    Failed to stop jasmind.service: Unit jasmind.service not loaded.
    dpkg: error processing package python-jasmin (--remove):
     installed python-jasmin package post-removal script subprocess returned error e
    xit status 5
    dpkg: too many errors, stopping
    Errors were encountered while processing:
     python-jasmin
    Processing was halted because there were too many errors.

  4. #4
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    11,815
    Distro
    Ubuntu

    Re: Unable to install or remove packages Ubuntu server 20.1

    You should run autoremove last after you've installed all updates and fixed any broken packages first.
    Currently it shows you have over 500 packages ready to upgrade, and 1 package that is in need of being fixed to install
    (Typically when you see the line 1 not fully installed or removed. it means something's more than likely broken.
    Run
    Code:
    sudo apt update
    sudo apt install -f
    Post back the output.
    (It might be long, as you have 500 packages it will want to update, so you can just post the end of it,
    which should give the general summary of it all.)
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  5. #5
    Join Date
    May 2013
    Location
    Galiza
    Beans
    3,597
    Distro
    Ubuntu

    Re: Unable to install or remove packages Ubuntu server 20.1

    And in order to reinstall the command is:
    Code:
    sudo apt install --reinstall python-jasmin
    not simply 'install'...

  6. #6
    Join Date
    Jul 2009
    Beans
    363

    Re: Unable to install or remove packages Ubuntu server 20.1

    Quote Originally Posted by deepakdeshp View Post
    Thank you. It didnt work. In fact I had tried that earlier.

    Code:
    sudo apt install python-jasmin[sudo] password for uma: 
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    python-jasmin is already the newest version (0.9.27).
    E: Can't find a source to download version '0.9.27' of 'python-jasmin:amd64'
    uma@localhost:~$ sudo apt purge python-jasmin
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages will be REMOVED:
      python-jasmin
    0 upgraded, 0 newly installed, 1 to remove and 558 not upgraded.
    1 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
    (Reading database ... 224264 files and directories currently installed.)
    Removing python-jasmin (0.9.27) ...
    Failed to stop jasmind.service: Unit jasmind.service not loaded.
    dpkg: error processing package python-jasmin (--remove):
     installed python-jasmin package post-removal script subprocess returned error e
    xit status 5
    dpkg: too many errors, stopping
    Errors were encountered while processing:
     python-jasmin
    Processing was halted because there were too many errors.
    Last part of sudo apt update
    Code:
    Err:12 http://security.ubuntu.com/ubuntu groovy-security InRelease               Temporary failure resolving 'security.ubuntu.com'
    Get:13 http://archive.ubuntu.com/ubuntu groovy-updates/restricted amd64 c-n-f Metadata [464 B]
    Fetched 12.6 MB in 24s (528 kB/s)                                              
    
    
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    558 packages can be upgraded. Run 'apt list --upgradable' to see them.
    W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/groovy-security/InRelease  Temporary failure resolving 'security.ubuntu.com'
    W: Some index files failed to download. They have been ignored, or old ones used instead.

  7. #7
    Join Date
    Jul 2009
    Beans
    363

    Re: Unable to install or remove packages Ubuntu server 20.1

    Quote Originally Posted by CelticWarrior View Post
    And in order to reinstall the command is:
    Code:
    sudo apt install --reinstall python-jasmin
    not simply 'install'...
    Code:
    sudo apt install --reinstall python-jasminReading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Reinstallation of python-jasmin is not possible, it cannot be downloaded.
    E: Can't find a source to download version '0.9.27' of 'python-jasmin:amd64'
    uma@localhost:~$

  8. #8
    Join Date
    Jul 2009
    Beans
    363

    Re: Unable to install or remove packages Ubuntu server 20.1

    Quote Originally Posted by deadflowr View Post
    You should run autoremove last after you've installed all updates and fixed any broken packages first.
    Currently it shows you have over 500 packages ready to upgrade, and 1 package that is in need of being fixed to install
    (Typically when you see the line 1 not fully installed or removed. it means something's more than likely broken.
    Run
    Code:
    sudo apt update
    sudo apt install -f
    Post back the output.
    (It might be long, as you have 500 packages it will want to update, so you can just post the end of it,
    which should give the general summary of it all.)
    After running sudo apt update I ran,
    Code:
    sudo apt install -fReading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages will be REMOVED:
      python-jasmin
    0 upgraded, 0 newly installed, 1 to remove and 558 not upgraded.
    1 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
    (Reading database ... 224264 files and directories currently installed.)
    Removing python-jasmin (0.9.27) ...
    Failed to stop jasmind.service: Unit jasmind.service not loaded.
    dpkg: error processing package python-jasmin (--remove):
     installed python-jasmin package post-removal script subprocess returned error e
    xit status 5
    dpkg: too many errors, stopping
    Errors were encountered while processing:
     python-jasmin
    Processing was halted because there were too many errors.
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    The /var/log/apt/history.log tail command

    Start-Date: 2021-01-20 11:09:28
    Commandline: apt install -f
    Requested-By: uma (1000)
    Remove: python-jasmin:amd64 (0.9.27)
    Error: Sub-process /usr/bin/dpkg returned an error code (1)
    End-Date: 2021-01-20 11:09:42
    Last edited by deepakdeshp; January 20th, 2021 at 08:17 PM.

  9. #9
    Join Date
    May 2013
    Location
    Galiza
    Beans
    3,597
    Distro
    Ubuntu

    Re: Unable to install or remove packages Ubuntu server 20.1

    Again...

    You need to REINSTALL 'python-jasmin' before removing it.

  10. #10
    Join Date
    Jul 2009
    Beans
    363

    Re: Unable to install or remove packages Ubuntu server 20.1

    That was output of apt install -f
    Earlier attempt to install python-jasmin had failed.

Page 1 of 2 12 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
  •