The SPM crashes and not updating & upgrading via terminal due to package virtualbox-6.1
Sir,
My OS is Ubuntu 20.04 LTS.
When I upate and upgrade from terrminal it is not operated/executed due to some faulty Oracle VM virtualbox package. Upo upgrasding, it shows.....
“E: The package virtualbox-6.1 needs to be reinstalled, but I can't find an archive for it.”
I tried through SPM but it crashes with a warning massage as under:
E: The package virtualbox-6.1 needs to be reinstalled, but I can't find an archive for it.
E: Internal error opening cache (1). Please report.
The package virtualbox-6.1 is also not gettig reinstalled through Gdebi application.
How to resolve this issue? - Please guide with appropriate command lines for this.
Reards.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Manfred Hampl
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
For diagnostic purposes please provide the output tat you receive for the following commands:
uname -a
lsb_release -crid
sudo dpkg --audit
apt-cache policy virtualbox-6.1
sudo apt update
if you have the right version of virtualbox-6.1*.deb still available on your system, please also add the output of
sudo dpkg -i virtualbox-
(correct the file name, if you have a different version)
Revision history for this message
|
#2 |
Sir,
Thanks for your positive reply. The output of first 5 stuffs is as under:
------------ OUT PUT-----------
navin@linux:~$ uname -a
Linux linux 5.8.0-50-generic #56~20.04.1-Ubuntu SMP Mon Apr 12 21:46:35 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
navin@linux:~$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal
navin@linux:~$ sudo dpkg --audit
[sudo] password for navin:
The following packages are in a mess due to serious problems during
installation. They must be reinstalled for them (and any packages
that depend on them) to function properly:
virtualbox-6.1 Oracle VM VirtualBox
navin@linux:~$ apt-cache policy virtualbox-6.1
virtualbox-6.1:
Installed: 6.1.18-
Candidate: 6.1.18-
Version table:
*** 6.1.18-
100 /var/lib/
navin@linux:~$ sudo apt update
Hit:1 http://
Get:2 http://
Get:3 http://
Hit:4 http://
Get:5 http://
Hit:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Get:23 http://
Get:24 http://
Get:25 http://
Get:26 http://
Get:27 http://
Fetched 5,728 kB in 4s (1,472 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
23 packages can be upgraded. Run 'apt list --upgradable' to see them.
navin@linux:~$
------------ END OF OUT PUT----
Sir, for the last suggested out put, I am little confused that output of which version is required?
Presently the installed version is specified as under:
VirtualBox Graphical Iser interface
Version 6.1.18 r142142(Qt5.12.8)
When I load it (i.e. starts the application), pops-up for upgradable available new version of that as under:
A new version of VirtualBox has been released! Version 6.1.22 is available at virtualbox.org.You can download this version using the link:https:/
So, for which version should I give you the output? (---- i.e. for “Version 6.1.18 r142142(Qt5.12.8)” OR for “ Version 6.1.22”)
Regards.
Navin Talati /14-05-2021
Revision history for this message
|
#3 |
dpkg recommend reinstalling the current version which is (see your output);
navin@linux:~$ apt-cache policy virtualbox-6.1
virtualbox-6.1:
Installed: 6.1.18-
Candidate: 6.1.18-
so you need https:/
Download it and then install it with the command
sudo dpkg -i virtualbox-
If that is done, then you can do the upgrade.
Revision history for this message
|
#4 |
Sir,
...so the existing (i.e. presently installed version 6.1.18 r142142) is not required to be uninstall first. - isn't it?
Revision history for this message
|
#5 |
dpkg is a bit peculiar if there is a package in a broken status (as it currently is the case with your virtualbox-6.1 package).
dpkg does not allow uninstalling a package in that broken status (unless you force uninstallation) or doing anything else with that package. You have to re-install the same version before you can do an upgrade.
My recommendation:
sudo dpkg -i virtualbox-
sudo dpkg -i virtualbox-
one after the other in this sequence.
Revision history for this message
|
#6 |
Thanks for the reply – Sir.
1.
As per your instructions, I again downloaded the following versions from the respective links.
virtualbox-
(from: https:/
AND
virtualbox-
(from: https:/
Both have location in “Downloads” folder by default in my system. These are kept there.
(If I have to place them in some another folder, please guide for that.)
2.
Then I applied stuffs one by one as recommended in #5. The output is as under:
-------
navin@linux:~$ sudo dpkg -i virtualbox-
[sudo] password for navin:
dpkg: error: cannot access archive 'virtualbox-
navin@linux:~$ sudo dpkg -i virtualbox-
dpkg: error: cannot access archive 'virtualbox-
navin@linux:~$
-------
3.
Also in Terminal, following stuffs applied one by one:
sudo apt-get update
sudo apt upgrade
sudo apt-get install -f
...but finally says the same thing that...”The package virtualbox-6.1 needs to be reinstalled, but I can't find an archive for it.”
Here giving you the output of above THREE commands:
-------
navin@linux:~$ sudo apt-get update
Hit:1 http://
Get:2 http://
Get:3 http://
Hit:4 http://
Hit:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Fetched 4,162 kB in 2s (1,821 kB/s)
Reading package lists... Done
navin@linux:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package virtualbox-6.1 needs to be reinstalled, but I can't find an archive for it.
navin@linux:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package virtualbox-6.1 needs to be reinstalled, but I can't find an archive for it.
-------
If, I am missing something to apply, please lead me for that.
How to proceed further in the matter?
Regards.
Navin Talati /15-05-2021
Revision history for this message
|
#7 |
Did you read the message that you got? Didn't the word "error" in the message ring a bell?
sudo dpkg -i virtualbox-
dpkg: error: cannot access archive 'virtualbox-
You have to cd (change directory) to the directory where the *.deb file is stored, or provide the directory name together with the file name.
Probably
cd ~/Downloads
sudo dpkg -i virtualbox-
or
sudo dpkg -i ~/Downloads/
Revision history for this message
|
#8 |
Sir,
Thanks for the guidance and pointing out my mistake in understanding the massage. According to you instruction, I could:
1.......processed “sudo dpkg -i ~/Downloads/
2.......update and upgrade.
3.......open SPM.
4.......make “Software Updater” working.
5.......and also could apply and run “sudo dpkg -i ~/Downloads/
Thanks once again with best regards.
Navin Talati / 15-05-2021
Revision history for this message
|
#9 |
Thanks Manfred Hampl, that solved my question.