Ошибка при установке debian virtualbox

I’m trying to install a Debian Jessie (8.7.1) on a Virtualbox VM.

During the Debian software installation, which correspond to the step after the choice of which software I’m want to install (see screen bellow)
enter image description here

the installation is getting lock around 27% and then shows a fail screen (see screen bellow)
enter image description here

When I’m looking at /var/log/syslog after having aborted the installation, I can see this
enter image description here

Apparently, the VM is unable to connect to some hosts.

Is it normal ? Should I ignore this step ?
Do you have some ways to explore? Or some ideas?

Hamza's user avatar

asked Apr 14, 2017 at 16:13

Xor's user avatar

For anyone still struggling with this, I finally managed to fix it (albeit on Parrot) by upping the disk size to 32 GB I tried 8GB, 10GB and 20GB but that was apparently not enough! I also tried messing around with many other settings including boot orders and RAM but that was not it either.
Nor was it the ISO in my case but increasing the size to 32 GB worked. Hope this helps.
Don

answered Mar 4, 2018 at 8:41

datalink's user avatar

datalinkdatalink

5031 gold badge5 silver badges12 bronze badges

7

I was having the same problem on my Windows 10 workstation with Virtualbox failing.

To resolve this I increased the disk size from 8GB to 32GB.

ross's user avatar

ross

2,6842 gold badges13 silver badges22 bronze badges

answered Jul 3, 2019 at 14:52

Michael's user avatar

I had almost the exact same problem. However I managed to get one working with a 3GB hard disk by using VHD format instead of virtual boxes VDI format.

Couldn’t tell you why this works but hopefully it helps some other people.

answered Aug 7, 2019 at 7:14

John's user avatar

1

You don’t need an internet connection to install the base system. You can install it and then troubleshoot the connection from the Debian terminal. You can install all the packages you need once it is fixed. Try selecting a different repository like http://httpredir.debian.org/. Also check your VM settings to make sure the necessary ports are open and that the network settings are correct. Disable any firewalls.

answered Apr 14, 2017 at 20:13

ghamod's user avatar

1

Just skip tasksel step and go to the grub installation. Later you can install any package you need from a terminal. Worked with 8GB virtual disk

answered Aug 19, 2020 at 3:48

Dmitry's user avatar

DmitryDmitry

931 silver badge7 bronze badges

1

Tried this install in a Virtualbox VM for testing on win 10 1803. VHD was only 8gb and it failed regardless of installing from the iso only (debian-9.5.0-amd64-DVD-1.iso) or with adding the mirror. Recreated the VM and increased the VHD to 32Gb and installed from the ISO with no issues.

Stephen Rauch's user avatar

Stephen Rauch

47.4k31 gold badges105 silver badges134 bronze badges

answered Nov 7, 2018 at 1:57

sean's user avatar

I was able to install it on VirtualBox with a 26GB disk (VDI).
I tried to set the VHD with lower values, without success.
Thus, I think that must be a minimum size around 26GB for VirtualBox.
Also, try to set All files in one partition /, as stated here.

I’m running Debian 10 w/ KDE.

answered Oct 10, 2019 at 21:53

Vinícius Valente's user avatar

I was having the same problem on my Windows 10 workstation with VMWare player.

It is all about disk space. Just increase it from 20 to 40 GB. Done.

answered Jun 12, 2020 at 18:19

Mauricio Arregui Ortiz's user avatar

MrEngman

Posts: 5
Joined: 2012-01-17 11:11

Solved — Install on virtualbox fails

#1

Post

by MrEngman » 2012-01-17 11:54

Trying to install from debian-6.0.3-i386-businesscard.iso fails on VirtualBox on a Windows 7 machine. I have tried a number of times and used several different mirror sites for downloading files but the error is always the same. I get the error dialog:-

[!!] Configuring man-db

Unable to install initramfs-tools
An error was returned while trying to install the initramfs-tools package onto the target system.

Check /var/log/syslog or see virtual console 4 for the details.

Syslog shows the following:-

Jan 16 02:38:37 in-target: 9081 files and directories currently installed.)
Jan 16 02:38:37 in-target: Upacking busybox (from …/busybox_1%3a1.17.1-8_i386.deb) …
Jan 16 02:38:37 in-target: Processing triggers for man-db …
Jan 16 02:38:37 in-target: Setting up busybox (1:1.17.1-8) …
Jan 16 02:38:37 in-target: Reading package lists…
Jan 16 02:38:38 in-target:
Jan 16 02:38:38 in-target: Building dependency tree…
Jan 16 02:38:38 in-target:
Jan 16 02:38:38 in-target: Reading state information…
Jan 16 02:38:38 in-target:
Jan 16 02:38:38 in-target: The following extra packages will be installed:
Jan 16 02:38:38 in-target: klibc-utils libklibc
Jan 16 02:38:38 in-target: Suggested packages:
Jan 16 02:38:38 in-target: bash-completion
Jan 16 02:38:38 in-target: The following NEW packages will be installed:
Jan 16 02:38:38 in-target: initramfs-tools klibc-utils libklibc
Jan 16 02:38:39 in-target: 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Jan 16 02:38:39 in-target: Need to get 299kB of archives.
Jan 16 02:38:39 in-target: After this operation, 1,073kB of additional disk space will be used.
Jan 16 02:38:39 in-target: Get:1 http://ftp.uk.debian.org/debian/ squeeze/main libklibc i386 1.5.20-1+squeeze1 [51.3kB]
Jan 16 02:40:40 in-target: Get:2 http://ftp.uk.debian.org/debian/ squeeze/main klibc-utils i386 1.5.20-1+squeeze1 [159kB]
Jan 16 02:40:40 in-target: Get:3 http://ftp.uk.debian.org/debian/ squeeze/main initramfs-tools all 0.98.8 [89.5kB]
Jan 16 02:40:40 in-target: Failed to fetch http://ftp.uk.debian.org/debian/pool/ma … 1_i386.deb Size mismatch
Jan 16 02:40:40 in-target: Fetched 300kB in 2min 1s (2,470 B/s)
Jan 16 02:40:40 in-target: E: Unable to fetch some archives, maybe run apt-get update or try with —fix-missing?
Jan 16 02:40:40 base-installer: error: exiting on error base-installer/kernel/failed-package-install
Jan 16 02:41:02 main-menu[298]: WARNING **: Configuring ‘bootstrap-base’ failed with error code 1
Jan 16 02:41:02 main-menu[298]: WARNING **: Menu item ‘bootstrap-base’ failed.
Jan 16 02:41:04 main-menu[298]: INFO: Modifying debconf priority limit from ‘high’ to ‘medium’
Jan 16 02:41:04 debconf: Setting debconf/priority to medium
Jan 16 02:41:09 main-menu[298]: INFO: Menu item ‘di-utils-shell’ selected

Looks like there is a problem here with file size definition. Where is the file size defined?

«Jan 16 02:38:39 in-target: Get:1 http://ftp.uk.debian.org/debian/ squeeze/main libklibc i386 1.5.20-1+squeeze1 [51.3kB]» and
«Jan 16 02:40:40 in-target: Failed to fetch http://ftp.uk.debian.org/debian/pool/ma … 1_i386.deb Size mismatch»

Install looks to expect that the file size is 51.3kB but the actual file size on all the mirror sites I’ve checked is about 297kB so if its checking file sizes being downloaded no wonder it fails.

One question — is there a way I can copy the syslog file from VirtualBox/Debian to Windows 7?

MrEngman

Last edited by MrEngman on 2012-01-18 15:44, edited 1 time in total.




apronouva

Posts: 14
Joined: 2012-01-16 05:57

Re: Install on virtualbox fails

#4

Post

by apronouva » 2012-01-17 18:05

Can you open another terminal using alt+f2 during the pause of installation ?
if yes, Have you tried this one command suggested by syslog ?

MrEngman wrote:
Jan 16 02:40:40 in-target: E: Unable to fetch some archives, maybe run apt-get update or try with —fix-missing?

don’t forgot to fire «apt-get update» afterwards, to make sure you have no problem reaching and updating from the mirror you’ve chosen.

For the shared folders, afaik, you need to enable guest addons after succesfully install the guest OS. Use the tutorial here :

Otherwise, depending on your networking setting between host and guest machine, you can set up public ftp server (filezilla, perhaps) on the localhost and wget from there. But if you want to access the file during installation, i think it would be easier to create usb bootable installation media and just put the file into it, or else just make the usb devices automatically attachet to the guest machine, and mount it afterwards

Sorry if I’m not helping at all. CMIIW.

regards,
apronouva


User avatar

mslinux

Posts: 942
Joined: 2010-12-24 05:14

Re: Install on virtualbox fails

#5

Post

by mslinux » 2012-01-18 03:09

I’ve tried at least 3 or 4 different sites in the UK.

Are you using netinst CD? If so, try using the CD #1 or better yet DVD #1
Install only base system then check if its networking and see whether it can connect to the said mirrors.

MsLinux-

forums.debian.netwhere facepalm is the default answer :D

© 2012
║▌║│█║▌│█│║▌║█║▌│█│║▌║│


MrEngman

Posts: 5
Joined: 2012-01-17 11:11

Re: Install on virtualbox fails

#6

Post

by MrEngman » 2012-01-18 11:04

apronouva wrote:
For the shared folders, afaik, you need to enable guest addons after succesfully install the guest OS. Use the tutorial here :

Otherwise, depending on your networking setting between host and guest machine, you can set up public ftp server (filezilla, perhaps) on the localhost and wget from there. But if you want to access the file during installation, i think it would be easier to create usb bootable installation media and just put the file into it, or else just make the usb devices automatically attachet to the guest machine, and mount it afterwards

Sorry if I’m not helping at all. CMIIW.

regards,
apronouva

Really very, very helpful. I can now copy log files to USB and view them rather more easily in win7. When I get back into using Linux I should be able to manage without it but its been 15 yrs since I last used any version of Linux and my brain is not what it used to be;)

I have finally actually managed to get Debian installed. I used the primary mirror in France — http://ftp.fr.debian.org/debian/ — although even then I don’t think all files were download correctly but I had no errors notified on screen.

Having managed to get full copies and been able to view the various syslog’s of the failing installs I’ve actually decided the the error is probably down to some wierd networking error. Maybe some odd interaction between Win7 and VirtualBox/Debian.

Regards,
MrEngman


MrEngman

Posts: 5
Joined: 2012-01-17 11:11

Re: Install on virtualbox fails

#7

Post

by MrEngman » 2012-01-18 12:34

mslinux wrote:

I’ve tried at least 3 or 4 different sites in the UK.

Are you using netinst CD? If so, try using the CD #1 or better yet DVD #1
Install only base system then check if its networking and see whether it can connect to the said mirrors.

Yes, I have been using the netinst CD and I wouldn’t normally expect any network problems. My system is usually quite happy downloading even very large files without problems. My machine is currently connected to a local domain via a wireless connection. I am going to try using a wired connection to see if that makes a difference.

I have installed using CD #1 and again don’t see any obvious network issues but I think there maybe some files that are not downloaded correctly if I select additional file groups to load at the end of the install although there were no errors reported on screen.

Using either install the network setup appears to have no problems and the local domain is found immediately with no delay at all.

As to accessing the various mirror sites. I have been able to connect to all those I’ve tried — all the UK mirrors + us, de and fr main mirrors — although one gave noteable issues and failed much sooner in the install. That was the uk site «http://www.mirrorservice.org/sites/ftp. … rg/debian/». Download speeds have also generally been quite high and in most cases near the max limit for my internet connection at around ~6000kbps.

I’m currently downloading the DVD you suggested — that’s downloading at about 5700Kbps. I will try an install from that but I would really like to find out what the issue is with the failing installs.

I’m concidering some sort of issue between Win7 and VirtualBox/Debian networking.

Regards,
MrEngman


User avatar

mslinux

Posts: 942
Joined: 2010-12-24 05:14

Re: Install on virtualbox fails

#8

Post

by mslinux » 2012-01-18 14:55

I’m concidering some sort of issue between Win7 and VirtualBox/Debian networking.

That is what I was trying to say. I mean, your host OS may have no problem with internet connection. But your virtualbox network configuration which affects your guest Debian installation maybe the source of the problem.
To test it out, given that you’ve got the CD#1 already, try install with minimum install ( base system only ). After that check from within your virtualbox guest Debian installation, if it can reach the said mirrors.

MsLinux-

forums.debian.netwhere facepalm is the default answer :D

© 2012
║▌║│█║▌│█│║▌║█║▌│█│║▌║│


MrEngman

Posts: 5
Joined: 2012-01-17 11:11

Re: Solved — Install on virtualbox fails

#9

Post

by MrEngman » 2012-01-18 15:42

mslinux wrote:

I’m concidering some sort of issue between Win7 and VirtualBox/Debian networking.

That is what I was trying to say. I mean, your host OS may have no problem with internet connection. But your virtualbox network configuration which affects your guest Debian installation maybe the source of the problem.
To test it out, given that you’ve got the CD#1 already, try install with minimum install ( base system only ). After that check from within your virtualbox guest Debian installation, if it can reach the said mirrors.

I think I have just found the solution and I have now been able to install using the netinst CD from one of the mirrors I was having problems with without any problems at last.

I have change the network setup from NAT to Bridged Adapter. Looking through the VirtualBox manual it looks as though this means VirtualBox talks directly to the network hardware rather than going though the host machine’s (Win7) driver. There are various issues that can happen when in NAT mode and I guess I was getting hit by one of those.

Thanks very much for your suggestions and also to apronouva for showing an interest in my problem. Much appreciated.

Regards,
MrEngman



I’m embarrassed to say this but this one stumped me for a day before I realized what was going on. VirtualBox doesn’t really help the situation either, since it never offers you an option to change the architecture so you’re left to figure this out on your own. Here’s the issue, if you haven’t guessed by now.

After going through the wizard to create a VM you’ll need to attach the downloaded ISO to your newly created VM. No big deal, this is accessible under the «Storage» menu item under the «Settings» for the new VM. Now start up the VM.

    ss #1

If you select «Live (amd64)» your VM will seemingly hang without any notification of what’s gone awry. However if you reboot it and this time select «Live (amd64 failsafe)» you’ll get a huge clue as to what’s wrong.

    ss #2

Here’s where you say «DUH!». So if we change the VM’s architecture to 64-bit we should be OK. Here’s how.

Changing a VM’s architecture to 64-bit

  1. First go back to the main window of VirtualBox, and select «Settings».

                               ss #3

  2. From here you can access the various hardware settings for a given VM. We’re going to change the architecture settings to 64-bit, which are under «General».

        ss #4

  3. Now pull down the «Version» pull-down and change it to «Debian (64 bit)».

        ss #5

  4. Now you should be using the correct architecture, 64-bit.

        ss #6

References

  • Debian installation boot freezes

I am unable to install debian 9 as a guest operating system in virtualbox 6.0, either with a debian 9 host or with a Windows 10 host.
— I installed virtualbox per the instructions on the debian wiki, updating my sources.lst and adding the oracle vbox public key:

https://wiki.debian.org/VirtualBox

  • I did install virtualbox 6.0 — the wiki is out of date and refers to 5.2. (I installed 5.2 first on my debian system, but removed it after the failures described below, hoping that the newer version would correct those.)
  • Virtualbox appeared to have installed with no reported problems, both on debian and on Windows.
  • I downloaded debian-live-9.9.0-amd64-gnome.iso, since that was a bootable image.
  • I checked its sha256 to confirm.
  • I burned the image to a dvd, with verification, and installed from the dvd.
  • My Windows 10 box and my debian box are both 64 bit.

  • I am able to install up to the point of downloading from a mirror.

  • At this point, it appears that several files are downloaded, showing messages like «file 5 of 18…», at which point I am presented with a failure message and the choice to retry, try another mirror, or ignore.
  • I have both retried and have tried several mirrors with the same results.
  • My Internet connection is solid and reliable — I have experienced no other difficulties.
  • If I ‘Ignore’, the installation proceeds to the point of attempting to install the grub bootloader, at which point it fails.
  • I have used defaults for both virtualbox and for debian, and have not tinkered with any of the suggested settings.

There are dozens of pages on the Internet apparently describing the exact steps I took, but for all those bloggers the installation «just worked».
There are a number of reports of people experiencing difficulties installing the Guest Additions, but that is a separate issue that I have not gotten far enough to worry about.

I would like to think this is some simple setting I have overlooked or step I have missed. Any clues or suggestions are appreciated.

———— UPDATE 1 ———-

Based on similar issues found on googling the error message below, I have disabled the network, declined to use a mirror, and jumped ahead to the second error, which is the killer:

«The ‘grub-pc’ package failed to install into /target/.»

At this point I have exited to a shell to try to manually install grub, which should (?) exist in some form on my install media (DVD, ISO, whatever…). A network connection should not be required at this point. However, I have tried this both with and without re-enabling the network connection. No joy.

In the shell, I am unable to find apt, or apt-get, or dpkg, and so have not been able to manually install grub. I think that if this point I could get grub installed so that this VM instance would boot, I could correct any remaining issues. Can someone help me through this next step?

———— UPDATE 2 ———-

After getting zero responses in over a week I have given up on this and am using qemu. Qemu of course has a learning curve of its own, but I was at least able to create a functioning basic guest system fairly quickly. VirtualBox has been fairly painless for me with a Windows Host, and with a Windows guest and an older Ubuntu host. It would be interesting to know what the issue is here.

Приветствую.

Пытаюсь установить Debian 7.6.0 на виртуалку при помощи Virtual Box’а. Пробовал следующие варианты с оф. сайта:

  • http://cdimage.debian.org/debian-cd/7.6.0/amd64/iso-cd/debian-7.6.0-amd64-xfc…
  • http://cdimage.debian.org/debian-cd/7.6.0/amd64/iso-cd/debian-7.6.0-amd64-net…

Оба из них выдают ошибку «An installation step failed. You can try to run the failing item again from the menu, or skip it and choose something else. The failing step is: Select and install software». Делают они это стабильно. Проблем с интернетом в данном случае быть не может, да и пробовал устанавливать уже с двух совершенно разных сетей.

При установке ничего особенного не трогал и не менял.

В чём может быть дело?

Заранее благодарю за возможные ответы.

Понравилась статья? Поделить с друзьями:
  • Ошибка при установке dead island
  • Ошибка при установке days gone на пк
  • Ошибка при установке crysis 3
  • Ошибка при установке corona render
  • Ошибка при установке coreldraw 2022