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

Thread: Problem running apt autoremove

  1. #1
    Join Date
    Apr 2006
    Beans
    3,905

    Problem running apt autoremove

    Hi all,

    Problem running "sudo apt autoremove"

    $ sudo apt update
    Code:
    Hit:1 http://dl.google.com/linux/chrome/deb stable InRelease
    Hit:2 http://ppa.launchpad.net/openshot.developers/ppa/ubuntu focal InRelease  
    Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]      
    Hit:4 http://hk.archive.ubuntu.com/ubuntu focal InRelease                      
    Get:5 http://hk.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
    Get:6 http://hk.archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
    Fetched 328 kB in 2s (175 kB/s)   
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    All packages are up to date.
    All packages are up-to-date

    $ sudo apt autoremove
    Code:
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    1 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Setting up virtualbox-ext-pack (6.1.26-2~ubuntu1.20.04.1) ...
    virtualbox-ext-pack: downloading: https://download.virtualbox.org/virtualbox/6.1.26/Oracle_VM_VirtualBox_Extension_Pack-6.1.26.vbox-extpack
    The file will be downloaded into /usr/share/virtualbox-ext-pack
    License accepted.
    0%...
    Progress state: NS_ERROR_FAILURE
    VBoxManage: error: Failed to install "/usr/share/virtualbox-ext-pack/Oracle_VM_VirtualBox_Extension_Pack-6.1.26.vbox-extpack"
    VBoxManage: error: VBoxExtPackRegister returned VERR_VERSION_MISMATCH, pReg=0000000000000000 ErrInfo='Helper version mismatch - expected 0x3 got 0x30000'
    VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ExtPackManagerWrap, interface IExtPackManager
    VBoxManage: error: Context: "RTEXITCODE handleExtPack(HandlerArg*)" at line 1424 of file VBoxManageMisc.cpp
    Installation error: License key incorrect or unknown problem during installation.
    dpkg: error processing package virtualbox-ext-pack (--configure):
     installed virtualbox-ext-pack package post-installation script subprocess returned error exit status 1
    Errors were encountered while processing:
     virtualbox-ext-pack
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    Please advise how to fix the problem. Thanks

    Regards

  2. #2
    Join Date
    Aug 2021
    Beans
    194
    Distro
    Xubuntu

    Re: Problem running apt autoremove

    There is nothing to remove on your system. autoremove only removes packages that were installed automatically.

    Code:
    apt-mark showauto
    will show you a list of automatically installed packages.

    Code:
    apt-mark showauto | grep 'virtualbox-ext-pack'
    to see if it was installed automatically.

    If you want to get rid of virtualbox-ext-pack, try using apt purge:

    Code:
    apt purge virtualbox-ext-pack
    apt(8)
    Code:
    autoremove (apt-get(8))
               autoremove is used to remove packages that were automatically installed to satisfy dependencies for other packages and are now
               no longer needed as dependencies changed or the package(s) needing them were removed in the meantime.
    
               You should check that the list does not include applications you have grown to like even though they were once installed just as
               a dependency of another package. You can mark such a package as manually installed by using apt-mark(8). Packages which you have
               installed explicitly via install are also never proposed for automatic removal.
    apt-mark(8)

  3. #3
    Join Date
    Apr 2006
    Beans
    3,905

    Re: Problem running apt autoremove

    Quote Originally Posted by kbar View Post
    There is nothing to remove on your system. autoremove only removes packages that were installed automatically.

    Code:
    apt-mark showauto
    will show you a list of automatically installed packages.

    Code:
    apt-mark showauto | grep 'virtualbox-ext-pack'
    to see if it was installed automatically.

    If you want to get rid of virtualbox-ext-pack, try using apt purge:

    Code:
    apt purge virtualbox-ext-pack
    apt(8)
    Code:
    autoremove (apt-get(8))
               autoremove is used to remove packages that were automatically installed to satisfy dependencies for other packages and are now
               no longer needed as dependencies changed or the package(s) needing them were removed in the meantime.
    
               You should check that the list does not include applications you have grown to like even though they were once installed just as
               a dependency of another package. You can mark such a package as manually installed by using apt-mark(8). Packages which you have
               installed explicitly via install are also never proposed for automatic removal.
    apt-mark(8)
    $ apt-mark showauto | more
    Code:
    accountsservice
    acl
    acpid
    adduser
    adium-theme-ubuntu
    adwaita-icon-theme
    alsa-topology-conf
    alsa-ucm-conf
    amd64-microcode
    apg
    apparmor
    apport
    apport-symptoms
    appstream
    apt
    apt-config-icons
    apt-utils
    aptdaemon
    aptdaemon-data
    aptitude-common
    apturl
    apturl-common
    aspell
    aspell-en
    autoconf
    .....
    There are many

    $ apt-mark showauto | grep 'virtualbox-ext-pack'
    no output

  4. #4
    Join Date
    Aug 2021
    Beans
    194
    Distro
    Xubuntu

    Re: Problem running apt autoremove

    Thanks. What's the output of the following?

    Code:
    dpkg -l virtualbox-ext-pack
    Also:

    Code:
    apt-mark showmanual | grep 'virtualbox-ext-pack'
    Last edited by KBar; November 23rd, 2021 at 11:31 AM.

  5. #5
    Join Date
    Apr 2006
    Beans
    3,905

    Re: Problem running apt autoremove

    Quote Originally Posted by kbar View Post
    Thanks. What's the output of the following?

    Code:
    dpkg -l virtualbox-ext-pack
    Also:

    Code:
    apt-mark showmanual | grep 'virtualbox-ext-pack'
    $ dpkg -l virtualbox-ext-pack
    Code:
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name                Version                  Architecture Description
    +++-===================-========================-============-=================>
    iF  virtualbox-ext-pack 6.1.26-2~ubuntu1.20.04.1 all          extra capabilitie>
    lines 1-6/6 (END)
    $ apt-mark showmanual | grep 'virtualbox-ext-pack'
    Code:
    virtualbox-ext-pack
    I'm running VitualBox here. 'virtualbox-ext-pack' was installed on the package download on their website

    Thanks

  6. #6
    Join Date
    Aug 2021
    Beans
    194
    Distro
    Xubuntu

    Re: Problem running apt autoremove

    As apt-mark suggests, the package was installed automatically. That is why apt autoremove refuses to delete it. There is nothing to fix here.

    dpkg shows that the package virtualbox-ext-pack is currently selected for installation (the letter "i" in the first column) and that it's half-configured (the letter "F" in the second column). If you want to remove this package, run the aforementioned purge command.

    dpkg(1), dpkg-query(1)

  7. #7
    Join Date
    Apr 2006
    Beans
    3,905

    Re: Problem running apt autoremove

    Quote Originally Posted by kbar View Post
    As apt-mark suggests, the package was installed automatically. That is why apt autoremove refuses to delete it. There is nothing to fix here.

    dpkg shows that the package virtualbox-ext-pack is currently selected for installation (the letter "i" in the first column) and that it's half-configured (the letter "F" in the second column). If you want to remove this package, run the aforementioned purge command.

    dpkg(1), dpkg-query(1)
    There are 2 virtualbox-ext-pack here one from Ubuntu Repo and another download on VirtualBox website. I need the latter as I install VirtuaBox on the ISO download on their website.

    If running
    $ sudo apt purge virtualbox-ext-pack

    Whether it'll delete the package on Ubuntu Repo?

    Thanks

    Regards

  8. #8
    Join Date
    Aug 2021
    Beans
    194
    Distro
    Xubuntu

    Re: Problem running apt autoremove

    Is this the link that you downloaded the Oracle VM VirtualBox Extension Pack from?

    https://download.virtualbox.org/virt...0.vbox-extpack

  9. #9
    Join Date
    Apr 2006
    Beans
    3,905

    Re: Problem running apt autoremove

    Quote Originally Posted by kbar View Post
    Is this the link that you downloaded the Oracle VM VirtualBox Extension Pack from?

    https://download.virtualbox.org/virt...0.vbox-extpack
    Sorry, I couldn't recall exactly.

    The 1st time I downloaded it together with VirtualBox ISO

    This Ubuntu PC has been running at least 3 years. The ext_pack has been updated many times eversince building this Ubuntu PC and installing VirtualBox.

    Each time if there was new ext_pack to update. When I stared VirtualBox Manage, it would ask me to update the new ext_pack. I accepted it then it would install it automatically and delete the old version. The complete process was fully automatic.

    Regard

  10. #10
    Join Date
    Aug 2021
    Beans
    194
    Distro
    Xubuntu

    Re: Problem running apt autoremove

    apt should not interfere with that at all. You can safely purge virtualbox-ext-pack.

    Start your Oracle VM VirtualBox Manager, select File, then Preferences (Ctrl+G), click on the Extensions tab and check its version. Report back.

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
  •