Ubuntu virtualbox install error

I'm trying to set up Ubuntu 20.04 on Oracle VirtualBox 6.1.6. During the installation, I got the following error message: The installer encountered an error copying files to the hard disk: [Errno...

I’m trying to set up Ubuntu 20.04 on Oracle VirtualBox 6.1.6. During the installation, I got the following error message:

The installer encountered an error copying files to the hard disk:

[Errno 5] Input/output error

This is often due to a faulty CD/DVD disk or drive, or a faulty hard disk.  
It may help to clean the CD/DVD, to burn the CD/DVD at a lower speed,   
to clean the CD/DVD drive lens (cleaning kits are often available from  
electronics suppliers), to check whether the hard disk is old and in   
need of replacement, or to move the system to a cooler environment.

I downloaded the file from the official Ubuntu website and multiple times, but none of the files works. I also verified the iso using echo "e5b72e9cfe20988991c9cd87bde43c0b691e3b67b01f76d23f8150615883ce11 *ubuntu-20.04-desktop-amd64.iso" | shasum -a 256 --check, but it doesn’t do anything.

karel's user avatar

karel

107k93 gold badges263 silver badges290 bronze badges

asked May 14, 2020 at 9:17

Simon's user avatar

5

I had this issue as well after I had enabed hyper-v on windows 10.

To fix it I, made sure I disabled hyper-v by doing the following.

  1. Open ‘Turn Windows features on or off’ (search for that in the start menu)
  2. Untick hyper-v, Windows hypervisior platform and virtual machine platform.
  3. Start the command prompt as an administrator. (type cmd in the start menu, right click ‘command prompt’ and select ‘run as administrator’)
  4. Run the following command bcdedit /set hypervisorlaunchtype off

After a restart it seemed to install and work.

Credit to u/SquareVehicle on r/virtualbox who suggested the bcdedit command

answered May 17, 2020 at 7:33

Eden Harris's user avatar

7

I faced the same issue. I used VirtualBox 6.1.14 and tried to install Ubuntu 20.04. The issue disappeared when I updated VirtualBox to the 6.1.16 version.

answered Oct 20, 2020 at 21:19

Viktor's user avatar

1

The second line of your code reminds me of the follwing:

Ubuntu 20.04 install media (.iso) normally checks itself at boot, unless you type a command to abort this health-check behaviour.

If what you typed came up at this point (I never experienced it myself), my guess is that your .iso might be corrupted. You can hash-check it yourself against the web-stated unique number to see if it is healthy.

Good practice is to download .iso’s with bittorrent, because that way the integrity gets automatically checked when ready; also little easier.

answered May 14, 2020 at 10:41

Martin's user avatar

This might be unusual, however my problem was fixed by enabling Hyper-V.
This was after hours of looking for solutions regarding Ubuntu 20 and Virtualbox 6.1. Tweaked many settings and finally decided to go against the most common advice and turn on Hyper-V (Win10).

answered Feb 15, 2021 at 14:57

Arman yaraee's user avatar

You can use VirtualBox 5.2 instead.

I installed VirtualBox 5.2 and then I was able to install Ubuntu 20.04 on my mac. I had the same issue with VirtualBox 6.1.

Eliah Kagan's user avatar

Eliah Kagan

115k53 gold badges311 silver badges484 bronze badges

answered Sep 29, 2020 at 7:41

PeterM's user avatar

just so you know I’m pretty new at Linux.

I just made the jump from Ubuntu 19.10 to Ubuntu 20.04.1 LTS because I thought there wouldn’t be a problem with VirtualBox.
When the upgrade was finished I noticed VirtualBox was gone, I tried to install it following the instruction on the official website and other sites.

I don’t know what you guys exactly need to help me solve the problem so here’s some informations :

Here’s what appears when I do sudo apt update :

Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [109 kB]
Hit:4 http://download.virtualbox.org/virtualbox/debian focal InRelease                    
Get:5 http://security.ubuntu.com/ubuntu focal-security/main i386 Packages [169 kB]        
Get:6 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [412 kB]
Get:7 http://security.ubuntu.com/ubuntu focal-security/main Translation-en [93,5 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [724 kB]
Get:9 http://archive.ubuntu.com/ubuntu focal-updates/main i386 Packages [399 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal-updates/main Translation-en [180 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [11,4 kB]
Get:12 http://archive.ubuntu.com/ubuntu focal-updates/restricted i386 Packages [13,4 kB]
Get:13 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [110 kB]
Get:14 http://archive.ubuntu.com/ubuntu focal-updates/restricted Translation-en [16,5 kB]
Fetched 2 352 kB in 1s (2 345 kB/s)                                 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
10 packages can be upgraded. Run 'apt list --upgradable' to see them.

Now sudo apt install virtualbox virtualbox-ext-pack :

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package virtualbox is a virtual package provided by:
  virtualbox-6.1 6.1.16-140961~Ubuntu~eoan
  virtualbox-6.0 6.0.24-139119~Ubuntu~eoan
You should explicitly select one to install.

Package virtualbox-ext-pack is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'virtualbox' has no installation candidate
E: Package 'virtualbox-ext-pack' has no installation candidate

Or when I do sudo apt install virtualbox-6.0 :

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 virtualbox-6.0 : Depends: libqt5printsupport5 (>= 5.0.2) but it is not installable
                  Depends: python (< 2.8) but it is not installable
                  Depends: python (>= 2.7) but it is not installable
                  Depends: python:any (>= 2.6.6-7~)
                  Recommends: libsdl-ttf2.0-0 but it is not installable
                  Recommends: gcc but it is not going to be installed
                  Recommends: make but it is not going to be installed or
                              build-essential but it is not going to be installed or
                              dpkg-dev but it is not going to be installed
                  Recommends: binutils but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I did

$ wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
$ wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -

and

echo "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib" | 
     sudo tee -a /etc/apt/sources.list.d/virtualbox.list

without any problems.

I hope everyone is having a good day :)

  • Печать

Страницы: [1]   Вниз

Тема: Не устанавливается virtualbox  (Прочитано 1801 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн
matana

Здравствуйте, хочу установить virtualbox на Ubuntu20.04. Скачиваю дистрибутив для ubuntu 20.04 с официального сайта, ввожу команду
sudo apt install virtualbox virtualbox-ext-pack virtualbox-guest-additions-iso
получаю ответ:

Уже установлен пакет virtualbox-guest-additions-iso самой новой версии (6.1.10-1~ubuntu1.20.04.1).
Некоторые пакеты не могут быть установлены. Возможно, то, что вы просите,
неосуществимо, или же вы используете нестабильную версию дистрибутива, где
запрошенные вами пакеты ещё не созданы или были удалены из Incoming.
Следующая информация, возможно, вам поможет:

Следующие пакеты имеют неудовлетворённые зависимости:
 virtualbox : Зависит: virtualbox-dkms (>= 6.1.10-dfsg-1~ubuntu1.20.04.1) но он не будет установлен или
                              virtualbox-source (>= 6.1.10-dfsg-1~ubuntu1.20.04.1) но он не будет установлен или
                              virtualbox-modules
              Зависит: libvncserver1 (>= 0.9.10) но он не может быть установлен
              Рекомендует: virtualbox-qt (= 6.1.10-dfsg-1~ubuntu1.20.04.1) но он не будет установлен
              Рекомендует: libqt5core5a (>= 5.12.2) но он не будет установлен
              Рекомендует: libqt5gui5 (>= 5.0.2) но он не будет установлен или
                                      libqt5gui5-gles (>= 5.0.2) но он не будет установлен
              Рекомендует: libqt5opengl5 (>= 5.0.2) но он не будет установлен
              Рекомендует: libqt5widgets5 (>= 5.0.2) но он не будет установлен
E: Невозможно исправить ошибки: у вас зафиксированы сломанные пакеты.

Куда бежать?

« Последнее редактирование: 11 Октября 2020, 16:37:46 от Aleksandru »


Оффлайн
jurganov

либо добавить репозитории к тем что есть. Либо пробовать руками разрешить зависимости.
К примеру,
ввести sudo apt install libvncserver1
если покажет, что нехватает ещё зависимостей, так же ставить их.
Мне пару раз удалось так установить программы.
Но лучще добавить репозитории
Поставить тут все галочки


Оффлайн
matana

jurganov, извините, я не понимаю, что это — репозитории? Когда-то у меня была Ubuntu 10, там был такой пункт, а здесь, в Ubuntu2 0.04 все по-другому и блуждаю, как в темном лесу. Если можно, по шагам — что делать.


Оффлайн
AlexBKost

matana, открой тайну — зачем устанавливать virtualbox на Ubuntu 20.04?
Нет, я понимаю, установить virtualbox на Windows 10, а потом запихнуть в него Ubuntu 20.04 втихаря.

Я странен, а не странен кто ж? (С)


Оффлайн
matana

jurganov, Ваша подсказка помогла, но теперь новая загвоздка:
При обработке следующих пакетов произошли ошибки:
 /tmp/apt-dpkg-install-lk4CNs/42-virtualbox-ext-pack_6.1.10-1~ubuntu1.20.04.1_al
l.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Что делать?


Пользователь добавил сообщение 11 Октября 2020, 17:56:28:


AlexBKost, есть программы, которые не работают под Ubuntu и не работают под вин 10, а ничего другого новый комп «не ест». Большая печаль…

« Последнее редактирование: 11 Октября 2020, 17:59:51 от matana »


Оффлайн
jurganov

« Последнее редактирование: 12 Октября 2020, 08:34:50 от jurganov »


Оффлайн
matana

jurganov, большое спасибо за ссылки. Я целыми днями читаю разные статьи по «укрощению зверя», как озаглавлена одна из серий статей. А по проблеме:
Утомившись, ложусь спать, просыпаюсь, подключаюсь, обновляюсь — И ВИРТУАЛЬНАЯ МАШИНА  — В СПИСКЕ ПРОГРАММ. Чудеса… Еще неделя поисков, и можно будет пользоваться


Оффлайн
jurganov

поздравляю. плагины установил — Extension Pack?


Оффлайн
KJOI

Куда бежать?

Обновить дистрибутив и поставить virtualbox.
Не оф репы рекомендую выключить, чтоб не превращать ОС в кашу.


Оффлайн
matana

KJOI,  Извините, сленга не понимаю. Для меня репа — это огородное растение.

« Последнее редактирование: 12 Октября 2020, 16:15:35 от matana »


Оффлайн
valrust

KJOI,  Извините, сленга не понимаю. Для меня репа — это огородное рпстение.

Почитайте, что такое репозитории.


Оффлайн
matana

jurganov, В терминале:

Как понимаю, Extension Pack установлен?
valrust,


Пользователь добавил сообщение 12 Октября 2020, 14:41:50:


valrust, Спасибо, читаю.

« Последнее редактирование: 12 Октября 2020, 16:14:58 от matana »


  • Печать

Страницы: [1]   Вверх

The problem: Unable to install virtual box.
I tried to install it using the following command:

sudo apt install virtualbox

Here is the outcome

sudo: /etc/sudoers.d/README is world writable
Reading package lists... Done
Building dependency tree       
Reading state information... Done
virtualbox is already the newest version (5.1.38-dfsg-0ubuntu1.16.04.1).
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.
Do you want to continue? [Y/n] y
Setting up virtualbox-ext-pack (5.1.38-0ubuntu1.16.04.1) ...
removing old virtualbox extension packs
virtualbox-ext-pack: downloading: http://download.virtualbox.org/virtualbox/5.1.38/Oracle_VM_VirtualBox_Extension_Pack-5.1.38.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-5.1.38.vbox-extpack"
VBoxManage: error: The installer failed with exit code 1: VBoxExtPackHelperApp: error: World writable: '/usr'
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ExtPackManagerWrap, interface IExtPackManager
VBoxManage: error: Context: "RTEXITCODE handleExtPack(HandlerArg*)" at line 1201 of file VBoxManageMisc.cpp
Hash mismatch Oracle_VM_VirtualBox_Extension_Pack-5.1.38.vbox-extpack: expected e93d87b0f5de50369baca0a48082236b947df5b922ffd0233c0fa92c1206defd, or wrong accept-license key, removing the file.
dpkg: error processing package virtualbox-ext-pack (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 virtualbox-ext-pack
E: Sub-process /usr/bin/dpkg returned an error code (1)

Then I googled the solution and found similar problems:

This topic provides the following solution

sudo dpkg --configure -a
sudo apt-get install -f

Did NOT work. Here is the outcome.

sudo: /etc/sudoers.d/README is world writable
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 (5.1.38-0ubuntu1.16.04.1) ...
removing old virtualbox extension packs
virtualbox-ext-pack: downloading: http://download.virtualbox.org/virtualbox/5.1.38/Oracle_VM_VirtualBox_Extension_Pack-5.1.38.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-5.1.38.vbox-extpack"
VBoxManage: error: The installer failed with exit code 1: VBoxExtPackHelperApp: error: World writable: '/usr'
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ExtPackManagerWrap, interface IExtPackManager
VBoxManage: error: Context: "RTEXITCODE handleExtPack(HandlerArg*)" at line 1201 of file VBoxManageMisc.cpp
Hash mismatch Oracle_VM_VirtualBox_Extension_Pack-5.1.38.vbox-extpack: expected e93d87b0f5de50369baca0a48082236b947df5b922ffd0233c0fa92c1206defd, or wrong accept-license key, removing the file.
dpkg: error processing package virtualbox-ext-pack (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 virtualbox-ext-pack
E: Sub-process /usr/bin/dpkg returned an error code (1)

This one offers the following solution:

sudo dpkg --remove --force-remove-reinstreq virtualbox-ext-pack
sudo apt-get update

Did NOT work. Same outcome appears as I try to install virtualbox.

Ths one provides another approach:

sudo apt install virtualbox-ext-pack
export http_proxy='http://proxyserveraddress:port'    
export https_proxy='https://proxyserveraddress:port'

Did NOT work. Nothing changes.

This link and This one offers following solution:

sudo apt-get purge virtualbox
sudo apt-get update
sudo apt-get install virtualbox

Did NOT work. Same error persists.

Then I have seen this one which is offers a pretty extensive solution:

# Oldfred's command list for cleaning and repairing

#houseclean
sudo apt-get autoclean # only removes files that cannot be downloaded anymore (obsolete)
sudo apt-get clean

#refresh
sudo apt-get update #resync package index
sudo apt-get upgrade #newest versions of all packages, update must be run first

#would upgrade you to the latest kernel in the repositories
#dist-upgrade is also able to remove existing packages if required
sudo apt-get dist-upgrade

# fix Broken packages -f 
sudo apt-get -f install
sudo dpkg --configure -a

# Remove lock
# If you are absolutely sure you do not have another upgrade process running.
# Locked dpkg - only if sure you are not running another update.

sudo rm /var/lib/dpkg/lock
sudo dpkg --configure -a 

# added zika's tip for problems with hash sum mismatch

sudo rm /var/lib/apt/lists/*
sudo apt-get update

# added 2F4U's tips for Package Manager & Update Manager problems

Does executing these commands help?

cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get update

This will rebuild the cache.

Starting from sudo apt-get dist-upgrade I get the following error:

sudo: /etc/sudoers.d/README is world writable
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 (5.1.38-0ubuntu1.16.04.1) ...
removing old virtualbox extension packs
virtualbox-ext-pack: downloading: http://download.virtualbox.org/virtualbox/5.1.38/Oracle_VM_VirtualBox_Extension_Pack-5.1.38.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-5.1.38.vbox-extpack"
VBoxManage: error: The installer failed with exit code 1: VBoxExtPackHelperApp: error: World writable: '/usr'
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ExtPackManagerWrap, interface IExtPackManager
VBoxManage: error: Context: "RTEXITCODE handleExtPack(HandlerArg*)" at line 1201 of file VBoxManageMisc.cpp
Hash mismatch Oracle_VM_VirtualBox_Extension_Pack-5.1.38.vbox-extpack: expected e93d87b0f5de50369baca0a48082236b947df5b922ffd0233c0fa92c1206defd, or wrong accept-license key, removing the file.
dpkg: error processing package virtualbox-ext-pack (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 virtualbox-ext-pack
E: Sub-process /usr/bin/dpkg returned an error code (1)

Then I visited virtualbox page and followed the instructions for «Debian-based Linux distributions», more specifically:

  • added deb https://download.virtualbox.org/virtualbox/debian <mydist> contrib to my /etc/apt/sources.list

  • sudo apt-key add oracle_vbox_2016.asc

  • sudo apt-get update

-sudo apt-get install virtualbox-5.2

sudo: /etc/sudoers.d/README is world writable
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libgsoap8 libvncserver1 virtualbox-dkms
Use 'sudo apt autoremove' to remove them.
Recommended packages:
  libsdl-ttf2.0-0
The following packages will be REMOVED:
  virtualbox virtualbox-ext-pack virtualbox-qt
The following NEW packages will be installed:
  virtualbox-5.2
0 upgraded, 1 newly installed, 3 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 73,7 MB of archives.
After this operation, 87,3 MB of additional disk space will be used.

This time I get a different error

sudo: /etc/sudoers.d/README is world writable
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libgsoap8 libvncserver1 virtualbox-dkms
Use 'sudo apt autoremove' to remove them.
Recommended packages:
  libsdl-ttf2.0-0
The following packages will be REMOVED:
  virtualbox virtualbox-ext-pack virtualbox-qt
The following NEW packages will be installed:
  virtualbox-5.2
0 upgraded, 1 newly installed, 3 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 73,7 MB of archives.
After this operation, 87,3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://download.virtualbox.org/virtualbox/debian xenial/contrib amd64 virtualbox-5.2 amd64 5.2.20-125813~Ubuntu~xenial [73,7 MB]
Fetched 73,7 MB in 32s (2.245 kB/s)                                                                                                                                                                        
Preconfiguring packages ...
(Reading database ... 330819 files and directories currently installed.)
Removing virtualbox-ext-pack (5.1.38-0ubuntu1.16.04.1) ...
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Successfully uninstalled "Oracle VM VirtualBox Extension Pack".
VBoxManage: error: The installer failed with exit code 1: VBoxExtPackHelperApp: error: World writable: '/usr'
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ExtPackManagerWrap, interface IExtPackManager, callee nsISupports
VBoxManage: error: Context: "Cleanup()" at line 1251 of file VBoxManageMisc.cpp
dpkg: error processing package virtualbox-ext-pack (--remove):
 subprocess installed pre-removal script returned error exit status 1
Removing virtualbox-qt (5.1.38-dfsg-0ubuntu1.16.04.1) ...
dpkg: virtualbox: dependency problems, but removing anyway as you requested:
 virtualbox-ext-pack depends on virtualbox (<< 5.1.38-dfsg-z) | virtualbox-5.1; however:
  Package virtualbox is to be removed.
  Package virtualbox-5.1 which provides virtualbox is not installed.
  Package virtualbox-5.2 which provides virtualbox is not installed.
  Package virtualbox-5.1 is not installed.
 virtualbox-ext-pack depends on virtualbox (>= 5.1.38-dfsg-0~) | virtualbox-5.1; however:
  Package virtualbox is to be removed.
  Package virtualbox-5.1 which provides virtualbox is not installed.
  Package virtualbox-5.2 which provides virtualbox is not installed.
  Package virtualbox-5.1 is not installed.
 virtualbox-ext-pack depends on virtualbox (<< 5.1.38-dfsg-z) | virtualbox-5.1; however:
  Package virtualbox is to be removed.
  Package virtualbox-5.1 which provides virtualbox is not installed.
  Package virtualbox-5.2 which provides virtualbox is not installed.
  Package virtualbox-5.1 is not installed.
 virtualbox-ext-pack dep
Removing virtualbox (5.1.38-dfsg-0ubuntu1.16.04.1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for shared-mime-info (1.5-2ubuntu0.2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.2) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20180209-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1.1) ...
Errors were encountered while processing:
 virtualbox-ext-pack
E: Sub-process /usr/bin/dpkg returned an error code (1)

Finally, I downloaded the .deb file (for ubuntu 16.04 AMD64)from virtualbox page and executed

sudo dpkg -i virtualbox-5.1_5.1.38-122592~Ubuntu~xenial_amd64.deb

This results in the following:

sudo: /etc/sudoers.d/README is world writable
(Reading database ... 331301 files and directories currently installed.)
Preparing to unpack virtualbox-5.1_5.1.38-122592~Ubuntu~xenial_amd64.deb ...
Unpacking virtualbox-5.1 (5.1.38-122592~Ubuntu~xenial) over (5.1.38-122592~Ubuntu~xenial) ...
Setting up virtualbox-5.1 (5.1.38-122592~Ubuntu~xenial) ...
addgroup: The group `vboxusers' already exists as a system group. Exiting.
Processing triggers for systemd (229-4ubuntu21.5) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1.1) ...
Processing triggers for shared-mime-info (1.5-2ubuntu0.2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.2) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20180209-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for mime-support (3.59ubuntu1) ...

but when I execute virtualbox I get the following error:

VirtualBox: Error -610 in supR3HardenedMainInitRuntime!
VirtualBox: dlopen("/usr/lib/virtualbox/VBoxRT.so",) failed: <NULL>

VirtualBox: Tip! It may help to reinstall VirtualBox.

So what else should I do to install virtual box and extension pack?

Thanks to @GAD3R the problem has found.
The problem is you have initially changed the permission of /usr and its sub-dir , your system become insucure , and the package connot be installed because of the write permission for «other»

So I installed another ubuntu next to the troublesome one.

Содержание

Введение
your current centos software installation requires of available space
(rc=-1908) Kernel driver not installed
This system is currently not set up to build kernel modules
(rc=-1912) The VirtualBox kernel modules do not match this version of VirtualBox
Nonexistent host networking interface
Cannot unregister the machine

Возможные проблемы

Если что-то не получилось, особенно в самом начале, например возникла ошибка 1908

Установка Virtual Windows 7 на Debian Linux изображение с сайта www.andreyolegovich.ru

rc=-1908


wwww.andreyolegovich.ru

и

Установка Virtual Windows 7 на Debian Linux изображение с сайта www.andreyolegovich.ru

rc=-1908


wwww.andreyolegovich.ru

Советую подумать:

  • Всё ли сделано по инструкции с сайта debian.org
  • Обновлено ли у вас ядро хотя бы до той версии, что у меня.

Если все так — попробуйте сделать то, что советует virtualbox

/etc/init.d/vboxdrv setup

Однако, этого пути может и не существовать.

Есть форумы, где обсуждалась эта проблема — поyahooярьте, пояндексите. Правда, когда
у меня на ноутбуке возникла такая проблема, ничего
оттуда не помогло. Но у меня было старое ядро!

your current centos software installation requires of available space

При попытке установить новую вирутальную ОС может появиться
следующая ошибка

virtualbox your current centos software installation requires of available space including for software and for swap space

Нажмите Reclaim Space

Создание host-only адаптера в VirtualBox изображение с сайта www.andreyolegovich.ru

reclaim space


ww.andreyolegovich.ru

Создание host-only адаптера в VirtualBox изображение с сайта www.andreyolegovich.ru
reclaim space


ww.andreyolegovich.ru

Kernel driver not installed (rc=-1908)

Довольно затруднительная ситуация когда при выполнении

virtualbox

Получаете предупреждение

WARNING: The character device /dev/vboxdrv does not exist.
Please install the virtualbox-dkms package and the appropriate
headers, most likely linux-headers-generic.

You will not be able to start VMs until this problem is fixed.

А в UI следующая ошибка

Kernel driver not installed (rc 1908) в VirtualBox изображение с сайта www.andreyolegovich.ru

rc=-1908


ww.andreyolegovich.ru

Попытки установить всё перечисленное выше и сделать apt upgrade могут не принести результата

sudo apt install virtualbox-dkms

Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
libfprint-2-tod1 libllvm10 libllvm10:i386 linux-headers-5.4.0-59
linux-headers-5.4.0-59-generic linux-headers-5.6.0-1020-oem
linux-headers-5.6.0-1036-oem linux-headers-5.6.0-1039-oem
linux-image-5.4.0-59-generic linux-image-5.6.0-1020-oem
linux-image-5.6.0-1036-oem linux-image-5.6.0-1039-oem
linux-modules-5.4.0-59-generic linux-modules-5.6.0-1020-oem
linux-modules-5.6.0-1036-oem linux-modules-5.6.0-1039-oem
linux-modules-extra-5.4.0-59-generic
linux-modules-nvidia-450-5.4.0-59-generic linux-oem-5.6-headers-5.6.0-1020
linux-oem-5.6-headers-5.6.0-1036 linux-oem-5.6-headers-5.6.0-1039
Use ‘sudo apt autoremove’ to remove them.
The following additional packages will be installed:
linux-headers-5.4.0-60 linux-headers-5.4.0-60-generic
The following NEW packages will be installed:
linux-headers-5.4.0-60 linux-headers-5.4.0-60-generic linux-headers-generic
0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.
Need to get 12.2 MB of archives.
After this operation, 85.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://fi.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-headers-5.4.0-60 all 5.4.0-60.67 [11.0 MB]
Get:2 http://fi.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-headers-5.4.0-60-generic amd64 5.4.0-60.67 [1,232 kB]
Get:3 http://fi.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-headers-generic amd64 5.4.0.60.63 [2,468 B]
Fetched 12.2 MB in 2s (6,333 kB/s)
Selecting previously unselected package linux-headers-5.4.0-60.
(Reading database … 382700 files and directories currently installed.)
Preparing to unpack …/linux-headers-5.4.0-60_5.4.0-60.67_all.deb …
Progress: [ 8%] [#####………………………………………………………..]
Selecting previously unselected package linux-headers-5.4.0-60-generic……………………..]
Preparing to unpack …/linux-headers-5.4.0-60-generic_5.4.0-60.67_amd64.deb …
Unpacking linux-headers-5.4.0-60-generic (5.4.0-60.67) …
Selecting previously unselected package linux-headers-generic.
Preparing to unpack …/linux-headers-generic_5.4.0.60.63_amd64.deb …
Unpacking linux-headers-generic (5.4.0.60.63) …
Setting up linux-headers-5.4.0-60 (5.4.0-60.67) …
Setting up linux-headers-5.4.0-60-generic (5.4.0-60.67) …
/etc/kernel/header_postinst.d/dkms:
* dkms: running auto installation service for kernel 5.4.0-60-generic

Kernel preparation unnecessary for this kernel. Skipping…
applying patch disable_fstack-clash-protection_fcf-protection.patch…patching file Kbuild
Hunk #1 succeeded at 84 (offset 13 lines).

Building module:
cleaning build area…
unset ARCH; [ ! -h /usr/bin/cc ] && export CC=/usr/bin/gcc; env NV_VERBOSE=1 ‘make’ -j8 NV_EXCLUDE_BUI
LD_MODULES=» KERNEL_UNAME=5.4.0-60-generic IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 SYSSRC=/lib/mod
Progress: [ 69%] [#######################################………..#####…………………….]
Signing module:
— /var/lib/dkms/nvidia/450.80.02/5.4.0-60-generic/x86_64/module/nvidia-uvm.ko
— /var/lib/dkms/nvidia/450.80.02/5.4.0-60-generic/x86_64/module/nvidia.ko
— /var/lib/dkms/nvidia/450.80.02/5.4.0-60-generic/x86_64/module/nvidia-modeset.ko
— /var/lib/dkms/nvidia/450.80.02/5.4.0-60-generic/x86_64/module/nvidia-drm.ko
Nothing to do.
cleaning build area…

DKMS: build completed.

nvidia.ko:
Running module version sanity check.
— Original module
— No original module exists within this kernel
— Installation
— Installing to /lib/modules/5.4.0-60-generic/updates/dkms/

nvidia-modeset.ko:
Running module version sanity check.
— Original module
— No original module exists within this kernel
— Installation
— Installing to /lib/modules/5.4.0-60-generic/updates/dkms/

nvidia-drm.ko:
Running module version sanity check.
— Original module
— No original module exists within this kernel
— Installation
— Installing to /lib/modules/5.4.0-60-generic/updates/dkms/

nvidia-uvm.ko:
Running module version sanity check.
— Original module
— No original module exists within this kernel
— Installation
— Installing to /lib/modules/5.4.0-60-generic/updates/dkms/

depmod…

DKMS: install completed.

Kernel preparation unnecessary for this kernel. Skipping…

Building module:
cleaning build area…
make -j8 KERNELRELEASE=5.4.0-60-generic -C /lib/modules/5.4.0-60-generic/build M=/var/lib/dkms/virtual
box/6.1.10/build……
Signing module:
— /var/lib/dkms/virtualbox/6.1.10/5.4.0-60-generic/x86_64/module/vboxdrv.ko
— /var/lib/dkms/virtualbox/6.1.10/5.4.0-60-generic/x86_64/module/vboxnetadp.ko
— /var/lib/dkms/virtualbox/6.1.10/5.4.0-60-generic/x86_64/module/vboxnetflt.ko
Nothing to do.
cleaning build area…

DKMS: build completed.

vboxdrv.ko:
Running module version sanity check.
— Original module
— No original module exists within this kernel
— Installation
— Installing to /lib/modules/5.4.0-60-generic/updates/dkms/

vboxnetadp.ko:
Running module version sanity check.
— Original module
— No original module exists within this kernel
— Installation
— Installing to /lib/modules/5.4.0-60-generic/updates/dkms/

vboxnetflt.ko:
Running module version sanity check.
— Original module
— No original module exists within this kernel
— Installation
— Installing to /lib/modules/5.4.0-60-generic/updates/dkms/

depmod…

DKMS: install completed.
…done.
Setting up linux-headers-generic (5.4.0.60.63) …

sudo modprobe vboxdrv

modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/5.8.0-34-generic

sudo dpkg-reconfigure virtualbox-dkms

——— Uninstall Beginning ———
Module: virtualbox
Version: 6.1.10
Kernel: 5.4.0-60-generic (x86_64)
————————————-

Status: Before uninstall, this module version was ACTIVE on this kernel.

vboxdrv.ko:
— Uninstallation
— Deleting from: /lib/modules/5.4.0-60-generic/updates/dkms/
— Original module
— No original module was found for this module on this kernel.
— Use the dkms install command to reinstall any previous module version.

vboxnetadp.ko:
— Uninstallation
— Deleting from: /lib/modules/5.4.0-60-generic/updates/dkms/
— Original module
— No original module was found for this module on this kernel.
— Use the dkms install command to reinstall any previous module version.

vboxnetflt.ko:
— Uninstallation
— Deleting from: /lib/modules/5.4.0-60-generic/updates/dkms/
— Original module
— No original module was found for this module on this kernel.
— Use the dkms install command to reinstall any previous module version.

depmod…

DKMS: uninstall completed.

——— Uninstall Beginning ———
Module: virtualbox
Version: 6.1.10
Kernel: 5.6.0-1036-oem (x86_64)
————————————-

Status: Before uninstall, this module version was ACTIVE on this kernel.

vboxdrv.ko:
— Uninstallation
— Deleting from: /lib/modules/5.6.0-1036-oem/updates/dkms/
— Original module
— No original module was found for this module on this kernel.
— Use the dkms install command to reinstall any previous module version.

vboxnetadp.ko:
— Uninstallation
— Deleting from: /lib/modules/5.6.0-1036-oem/updates/dkms/
— Original module
— No original module was found for this module on this kernel.
— Use the dkms install command to reinstall any previous module version.

vboxnetflt.ko:
— Uninstallation
— Deleting from: /lib/modules/5.6.0-1036-oem/updates/dkms/
— Original module
— No original module was found for this module on this kernel.
— Use the dkms install command to reinstall any previous module version.

depmod…

DKMS: uninstall completed.

——— Uninstall Beginning ———
Module: virtualbox
Version: 6.1.10
Kernel: 5.6.0-1039-oem (x86_64)
————————————-

Status: Before uninstall, this module version was ACTIVE on this kernel.

vboxdrv.ko:
— Uninstallation
— Deleting from: /lib/modules/5.6.0-1039-oem/updates/dkms/
— Original module
— No original module was found for this module on this kernel.
— Use the dkms install command to reinstall any previous module version.

vboxnetadp.ko:
— Uninstallation
— Deleting from: /lib/modules/5.6.0-1039-oem/updates/dkms/
— Original module
— No original module was found for this module on this kernel.
— Use the dkms install command to reinstall any previous module version.

vboxnetflt.ko:
— Uninstallation
— Deleting from: /lib/modules/5.6.0-1039-oem/updates/dkms/
— Original module
— No original module was found for this module on this kernel.
— Use the dkms install command to reinstall any previous module version.

depmod…

DKMS: uninstall completed.

——— Uninstall Beginning ———
Module: virtualbox
Version: 6.1.10
Kernel: 5.6.0-1042-oem (x86_64)
————————————-

Status: Before uninstall, this module version was ACTIVE on this kernel.

vboxdrv.ko:
— Uninstallation
— Deleting from: /lib/modules/5.6.0-1042-oem/updates/dkms/
— Original module
— No original module was found for this module on this kernel.
— Use the dkms install command to reinstall any previous module version.

vboxnetadp.ko:
— Uninstallation
— Deleting from: /lib/modules/5.6.0-1042-oem/updates/dkms/
— Original module
— No original module was found for this module on this kernel.
— Use the dkms install command to reinstall any previous module version.

vboxnetflt.ko:
— Uninstallation
— Deleting from: /lib/modules/5.6.0-1042-oem/updates/dkms/
— Original module
— No original module was found for this module on this kernel.
— Use the dkms install command to reinstall any previous module version.

depmod…

DKMS: uninstall completed.

——————————
Deleting module version: 6.1.10
completely from the DKMS tree.
——————————
Done.
Loading new virtualbox-6.1.10 DKMS files…
Building for 5.8.0-34-generic 5.8.0-36-generic
Building initial module for 5.8.0-34-generic
ERROR: Cannot create report: [Errno 17] File exists: ‘/var/crash/virtualbox-dkms.0.crash’
Error! Bad return status for module build on kernel: 5.8.0-34-generic (x86_64)
Consult /var/lib/dkms/virtualbox/6.1.10/build/make.log for more information.

sudo dpkg-reconfigure virtualbox

Job for vboxweb.service failed because the service did not take the steps required by its unit configuration.
See «systemctl status vboxweb.service» and «journalctl -xe» for details.
Job for virtualbox.service failed because the control process exited with error code.
See «systemctl status virtualbox.service» and «journalctl -xe» for details.
invoke-rc.d: initscript virtualbox, action «restart» failed.
virtualbox.service — LSB: VirtualBox Linux kernel module
Loaded: loaded (/etc/init.d/virtualbox; generated)
Active: failed (Result: exit-code) since Fri 2021-01-08 15:31:23 EET; 4ms ago
Docs: man:systemd-sysv-generator(8)
Process: 66734 ExecStart=/etc/init.d/virtualbox start (code=exited, status=1/FAILURE)

Jan 08 15:31:23 LL-USER2 systemd[1]: Starting LSB: VirtualBox Linux kernel module…
Jan 08 15:31:23 LL-USER2 virtualbox[66734]: * Loading VirtualBox kernel modules…
Jan 08 15:31:23 LL-USER2 virtualbox[66734]: * No suitable module for running kernel found
Jan 08 15:31:23 LL-USER2 virtualbox[66734]: …fail!
Jan 08 15:31:23 LL-USER2 systemd[1]: virtualbox.service: Control process exited, code=exited, status=1/FAILURE
Jan 08 15:31:23 LL-USER2 systemd[1]: virtualbox.service: Failed with result ‘exit-code’.
Jan 08 15:31:23 LL-USER2 systemd[1]: Failed to start LSB: VirtualBox Linux kernel module.

Содержание man SYSTEMD-SYSV-GENERATOR (8)

SYSTEMD-SYSV-GENERATOR (8)
systemd-sysv-generator S
NAME
systemd-sysv-generator — Unit generator for SysV init scripts
SYNOPSIS
/lib/systemd/system-generators/systemd-sysv-generator
DESCRIPTION
systemd-sysv-generator is a generator that creates wrapper .service
units for SysV init[1] scripts in /etc/init.d/* at boot and when
configuration of the system manager is reloaded. This will allow
systemd(1) to support them similarly to native units.
LSB headers[2] in SysV init scripts are interpreted, and the ordering
specified in the header is turned into dependencies between the
generated unit and other units. The LSB facilities «$remote_fs»,
«$network», «$named», «$portmap», «$time» are supported and will be
turned into dependencies on specific native systemd targets. See
systemd.special(7) for more details.
SysV runlevels have corresponding systemd targets (runlevelX.target).
The wrapper unit that is generated will be wanted by those targets
which correspond to runlevels for which the script is enabled.
systemd does not support SysV scripts as part of early boot, so all
wrapper units are ordered after basic.target.
systemd-sysv-generator implements systemd.generator(7).
SEE ALSO
systemd(1), systemd.service(5), systemd.target(5)
NOTES
1.
SysV init
https://savannah.nongnu.org/projects/sysvinit
2.
LSB headers
http://refspecs.linuxbase.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/iniscrptact.html
systemd 245 SYSTEMD-SYSV-GENERATOR(8)

sudo apt install —reinstall linux-headers-$(uname -r) virtualbox-dkms dkms

Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
libfprint-2-tod1 libllvm10 libllvm10:i386 linux-headers-5.4.0-59 linux-headers-5.4.0-59-generic
linux-headers-5.6.0-1020-oem linux-headers-5.6.0-1036-oem linux-headers-5.6.0-1039-oem
linux-image-5.4.0-59-generic linux-image-5.6.0-1020-oem linux-image-5.6.0-1036-oem
linux-image-5.6.0-1039-oem linux-modules-5.4.0-59-generic linux-modules-5.6.0-1020-oem
linux-modules-5.6.0-1036-oem linux-modules-5.6.0-1039-oem linux-modules-extra-5.4.0-59-generic
linux-modules-nvidia-450-5.4.0-59-generic linux-oem-5.6-headers-5.6.0-1020
linux-oem-5.6-headers-5.6.0-1036 linux-oem-5.6-headers-5.6.0-1039
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 3 reinstalled, 0 to remove and 1 not upgraded.
Need to get 1,990 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://fi.archive.ubuntu.com/ubuntu focal/main amd64 dkms all 2.8.1-5ubuntu1 [66.6 kB]
Get:2 http://fi.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-headers-5.8.0-34-generic amd64 5.8.0-34.37~20.04.2 [1,236 kB]
Get:3 http://fi.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 virtualbox-dkms amd64 6.1.10-dfsg-1~ubuntu1.20.04.1 [687 kB]
Fetched 1,990 kB in 0s (7,308 kB/s)
(Reading database … 412468 files and directories currently installed.)
Preparing to unpack …/dkms_2.8.1-5ubuntu1_all.deb …
Unpacking dkms (2.8.1-5ubuntu1) over (2.8.1-5ubuntu1) …
Preparing to unpack …/linux-headers-5.8.0-34-generic_5.8.0-34.37~20.04.2_amd64.deb …
Unpacking linux-headers-5.8.0-34-generic (5.8.0-34.37~20.04.2) over (5.8.0-34.37~20.04.2) …
Preparing to unpack …/virtualbox-dkms_6.1.10-dfsg-1~ubuntu1.20.04.1_amd64.deb …

——————————
Deleting module version: 6.1.10
completely from the DKMS tree.
——————————
Done.
Unpacking virtualbox-dkms (6.1.10-dfsg-1~ubuntu1.20.04.1) over (6.1.10-dfsg-1~ubuntu1.20.04.1) …
Setting up linux-headers-5.8.0-34-generic (5.8.0-34.37~20.04.2) …
/etc/kernel/header_postinst.d/dkms:
* dkms: running auto installation service for kernel 5.8.0-34-generic
…done.
Setting up dkms (2.8.1-5ubuntu1) …
Setting up virtualbox-dkms (6.1.10-dfsg-1~ubuntu1.20.04.1) …
Loading new virtualbox-6.1.10 DKMS files…
Building for 5.8.0-34-generic 5.8.0-36-generic
Building initial module for 5.8.0-34-generic
ERROR: Cannot create report: [Errno 17] File exists: ‘/var/crash/virtualbox-dkms.0.crash’
Error! Bad return status for module build on kernel: 5.8.0-34-generic (x86_64)
Consult /var/lib/dkms/virtualbox/6.1.10/build/make.log for more information.
dpkg: error processing package virtualbox-dkms (—configure):
installed virtualbox-dkms package post-installation script subprocess returned error exit status 10
Processing triggers for man-db (2.9.1-1) …
Errors were encountered while processing:
virtualbox-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

This system is currently not set up to build kernel modules.

This system is currently not set up to build kernel modules.
Please install the gcc make perl packages from your distribution.
modprobe vboxguest failed
The log file /var/log/vboxadd-setup.log may contain further information.

Установите

gcc

В

Rocky
,

CentOS

и RedHat это делается следующим образом

yum install gcc

The VirtualBox kernel modules do not match this version of VirtualBox

RTR3InitEx failed with rc=-1912 (rc=-1912)

The VirtualBox kernel modules do not match this version of VirtualBox. The installation of VirtualBox was apparently not successful. Executing

‘/sbin/vboxconfig’

may correct this. Make sure that you are not mixing builds of VirtualBox from different sources.

where: supR3HardenedMainInitRuntime what: 4 VERR_VM_DRIVER_VERSION_MISMATCH (-1912) — The installed support driver doesn’t match the version of the user.

Возможно, существует более цивилизованный способ решения этой проблемы, но мне приходится удалять текущий VirtualBox

sudo apt remove —purge virtualbox
sudo apt install virtualbox

Иногда рекомендуют установить также virtualbox-dkms

sudo apt install virtualbox-dkms

Однажды мне помогло скачивание новой версии и устанавка из .deb

sudo dpkg -i virtualbox-6.1_6.1.28-147628~Ubuntu~eoan_amd64.deb

Nonexistent host networking interface

VBoxManage: error: Nonexistent host networking interface, name » (VERR_INTERNAL_ERROR)

Выполните, заменив ubuntu20 на имя вашей машины

VBoxManage showvminfo ubuntu20

У какого-то интерфейса вы обнаружите пустое место там где должно быть название сети. В данном примере
это NIC 1

NIC 1: MAC: 08002706DACE, Attachment: Host-only Interface » Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none

Убедитесь, что у вас есть нужная сеть и добавьте интерфейс туда

VBoxManage modifyvm ubuntu20 —nic1 hostonly —hostonlyadapter1 vboxnet0

Подробнее читайте в статье

«Подключение сетевого адаптераф»

Cannot unregister the machine

VBoxManage: error: Cannot unregister the machine ‘ubuntu’ while it is locked

Значит, что ваша машина в данный момент запущена.

Скорее всего в режиме headless, иначе бы вы её увидели и выключили бы.

Нужно найти запущенный процесс и закончить его. Например, с помощью

grep

ps -A | grep VBoxHeadless

10226 ? 00:01:01 VBoxHeadless

kill -9 10226

Или с помощью

awk

kill $(ps -A | grep VBoxHeadless | awk {‘print $1’})

Похожие статьи

VirtualBox
Установка
Виртуальная CentOS 7 на Ubuntu
Терминал VirtualBox
Windows 7 на VirtualBox Debian
NatNetwork
VBoxManage Manual
Разбор ошибок
DevOps
CentOS
Ubuntu

I’m trying to install Ubuntu 20.04 server on VirtualBox 6.1 but it keeps crashing. It complains about

/dev/loop2 Can't open blockdev

and

failed unmounting /cdrom

It also complained about something related to one file being bad. I’ve downloaded the ISO twice.

I don’t have HyperV turned on in windows 10.

enter image description here

enter image description here

HyperV turned off in windows:

Here are my bios settings:

bios
bios
bios

asked Jun 9, 2020 at 14:30

fregas's user avatar

fregasfregas

1811 gold badge1 silver badge6 bronze badges

14

I had the same issue.
(PC: Windows 10 (20h2), CPU Athlon x250, 4gb RAM, GTX 650ti; Windows 10 features or components — default (Hyper-V isn’t installed))

Settings which worked for me:

  1. Settings > System > Motherboard : Chipset choose ICH9;
    enable «Enable I/O APIC»;
    enable «Hardware CLock in UTC Time»
    .

pic of Motherboard tab

  1. Settings > Processor : 1 cpu;
    enable «Enable PAE/NX».

pic of Processor tab

  1. Settings > System > Acceleration : paravirtualization interface — Hyper-V;
    both boxes checked in hardware virtualization.

    (have no idea why it works, cause Hyper-V isnt installed on the Windows)

pic of Acceleration tab

All other parameters are by default.

ZygD's user avatar

ZygD

2,43111 gold badges25 silver badges43 bronze badges

answered Mar 14, 2021 at 14:23

Rash's user avatar

I had the same issue. Try to uncheck the virtual machine platform in Turn Windows features on-off. It should help.

answered Nov 2, 2020 at 8:34

DvorakDavid's user avatar

To solve this, go to the audio section of the settings and uncheck the Enable Audio option.

Here's an image on what to do

karel's user avatar

karel

13.3k25 gold badges44 silver badges52 bronze badges

answered Nov 14, 2020 at 11:24

benx's user avatar

Make sure to remove the ISO file.
Remove it by going to Storage panel and Remove it from Controller.

answered Jan 20, 2021 at 15:38

surajit das's user avatar

Cover image for VirtualBox installation error in Linux - Error: Dependency is not satisfiable: libc6 (>=2.28)

Mir Rahed Uddin

Dependency is not satisfiable: libc6 (>=2.28)

This is one of the strange problems of VirtualBox which drives me crazy until I figured out, how simple the solution was.

If you are running from the same problem, don’t worry. Just make sure you are using the right installer for your distribution/OS

By the way, Error: Dependency is not satisfiable: libc6 (>=2.28) or libc6 (>=2.29) is referred to as the same problem

OK, Let me explain a bit further, A few months ago I was wanted to install VirtualBox on my Linux Mint computer, So, I went to the VirtualBox Official website (https://www.virtualbox.org/wiki/Linux_Downloads) but I won’t found the installer for Linux Mint Version there ( It’s still not present here as you can see in the picture below)

VirtualBox versions

So, I choose Ubuntu 19.10 / 20.04 / 20.10 / 21.04 from the available list because I knew Linux Mint is based on Ubuntu. so, whatever works on Ubuntu should be work on Linux Mint as well. It was not a big deal. But in the installation, it just won’t worked and threw this Dependency is not satisfiable: libc6 (>=2.28) error.

Ubuntu 19.10 / 20.04 / 20.10 / 21.04

At that moment I reconsider my OS. I was using Linux Mint 19.3 Cinnamon. OS version placed a critical role here. I simply Googled «Linux Mint 19.3 Ubuntu Version» and found Mint 19.3 is based on Ubuntu 18.04 .

I revisit the download page and download it again but now from the Ubuntu 18.04 / 18.10 / 19.04 option and run the installer and Guess what, It was running absolutely fine without any issue. Through the installer required some extra dependency, not an issue, just allowed it

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yd64o9ba1ocih6e23zrj.png)

Maybe you downloaded the Debian 10 version installer, not working.. then download it for Debian 9. Fedora 33/34 not working… download it for Fedora 32. Just make sure that the VirtualBox installer is compatible with your OS version :)

OR,

just download the VirtualBox from the Software Center. that will work fine too

Share your thoughts if you find something more interesting…

Watch on YouTube

Thanks for reading. Have a great day :)

Coffee https://www.buymeacoffee.com/rahedmir

Timeless DEV post…

How to write a kickass README

Arguably the single most important piece of documentation for any open source project is the README. A good README not only informs people what the project does and who it is for but also how they use and contribute to it.

If you write a README without sufficient explanation of what your project does or how people can use it then it pretty much defeats the purpose of being open source as other developers are less likely to engage with or contribute towards it.

Понравилась статья? Поделить с друзьями:
  • Udp error 10049
  • Ubuntu ttf mscorefonts installer error
  • Udma crc error rate
  • Ubuntu ssl err ssl protocol error
  • Udma crc error count что это