Using debootstrap: haven't installed grub and can't complete installation
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
As a result, I have not installed GRUB and configured it for the new install.
So when I reboot, Ubuntu on /dev/sda3 is not shown by the bootloader.
I also had a problem with putting the UUID of /dev/sda3 onto /etc/fstab.
I was uncertain whether to put the correct UUID (for sda3) into /etc/fstab of the host system I was in (i.e sda1), or to put the UUID into /etc/fstab which existed on /mnt/deboot. (At least, I think such a directory may exist - but as I say, I am uncertain).
I'd like to know how to sort out this particular issue.
After completing the tutorial, I ran:
Code:
osprober
update-grub
Both commands said they could see Ubuntu in sda3.
However when I reboot, GRUB will not offer sda3 as an option.
I think I may need to add sda3 into /etc/fstab of my host system (sda1) or possibly add GRUB into sda3 in some way.
OP has advised there will be an update to the debootstrap tutorial, and I will be looking forward to it.
But I wonder if someone can please say how I can activate this new install which I have on sda3?
I've started a new thread because I don't want to complicate the debootstrap tutorial thread.
As a result, I have not installed GRUB and configured it for the new install.
So when I reboot, Ubuntu on /dev/sda3 is not shown by the bootloader.
I also had a problem with putting the UUID of /dev/sda3 onto /etc/fstab.
I was uncertain whether to put the correct UUID (for sda3) into /etc/fstab of the host system I was in (i.e sda1), or to put the UUID into /etc/fstab which existed on /mnt/deboot. (At least, I think such a directory may exist - but as I say, I am uncertain).
I'd like to know how to sort out this particular issue.
After completing the tutorial, I ran:
Code:
osprober
update-grub
Both commands said they could see Ubuntu in sda3.
However when I reboot, GRUB will not offer sda3 as an option.
I think I may need to add sda3 into /etc/fstab of my host system (sda1) or possibly add GRUB into sda3 in some way.
OP has advised there will be an update to the debootstrap tutorial, and I will be looking forward to it.
But I wonder if someone can please say how I can activate this new install which I have on sda3?
I've started a new thread because I don't want to complicate the debootstrap tutorial thread.
It was updated a about a week ago. When you installed Ubuntu via debootstrap, did you install a kernel before exiting the install?
For the UUID of /dev/sda3:
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508
Original Poster
Rep:
Quote:
Originally Posted by replica9000
It was updated a about a week ago.
I see. That explains the additional information which I thought I had previously overlooked!
I've just noticed the update timestamp. That's good to see.
The tutorial says:
Code:
debootstrap can also be used to install Ubuntu (ex. Raring Ringtail):
root@host# debootstrap --arch amd64 raring /mnt/deboot http://archive.ubuntu.com/ubuntu
The system can't find 'Raring' on the ubuntu archive website. I think they've taken it off.
I found Debootstrap has script files or something in its directory (/usr/share/debootstrap/scripts).
For ubuntu, the script files seem to be identical.
So I copied the file for Raring and renamed it 'saucy'.
I then ran:
and the system was able to download all the files for saucy.
I didn't rename it 'utopic' for the latest ubuntu stable release because I wasn't sure if the correct script file for utopic had been amended in some way.
Quote:
When you installed Ubuntu via debootstrap, did you install a kernel before exiting the install?
No, I'm afraid I didn't. That's probably where I went wrong.
If I wanted to use debootstrap to install a stable version of Ubuntu saucy, would the command be:
Finally, I think the link to the archives has changed from 'http://archive.ubuntu.com/ubuntu' to 'http://archive.ubuntu.com/ubuntu/dists'
Quote:
For the UUID of /dev/sda3:
blkid /dev/sda3
Yes, where is the /etc/fstab located for inputting the UUID?
I'm getting confused between the /etc/fstab of the host system, and the /etc/fstab presumably being created in the mounted 'deboot' directory.
I'm not sure how to chroot back into the installation.
I think everything was extracted into sda3.
I'm wondering if it's easier to delete everything on the sda3 partition and redo the install.
I see. That explains the additional information which I thought I had previously overlooked!
I've just noticed the update timestamp. That's good to see.
The tutorial says:
Code:
debootstrap can also be used to install Ubuntu (ex. Raring Ringtail):
root@host# debootstrap --arch amd64 raring /mnt/deboot http://archive.ubuntu.com/ubuntu
The system can't find 'Raring' on the ubuntu archive website. I think they've taken it off.
I found Debootstrap has script files or something in its directory (/usr/share/debootstrap/scripts).
For ubuntu, the script files seem to be identical.
So I copied the file for Raring and renamed it 'saucy'.
I then ran:
and the system was able to download all the files for saucy.
I didn't rename it 'utopic' for the latest ubuntu stable release because I wasn't sure if the correct script file for utopic had been amended in some way.
You shouldn't have to rename any of the scripts. Most of them are just symlinks to the gutsy script. I'm assuming that script should allow you to install any of the Ubuntu versions available at http://archive.ubuntu.com/ubuntu/. I haven't spent a lot of time using debootstrap to install Ubuntu. I know the latest version is utopic, and the latest LTS is trusty, soon to be vivid.
Quote:
Originally Posted by Higgsboson
No, I'm afraid I didn't. That's probably where I went wrong.
If I wanted to use debootstrap to install a stable version of Ubuntu saucy, would the command be:
Debian uses linux-image-amd64 as a meta-package name for it's latest kernel. Ubuntu uses linux-image-generic instead.
Quote:
Originally Posted by Higgsboson
Finally, I think the link to the archives has changed from 'http://archive.ubuntu.com/ubuntu' to 'http://archive.ubuntu.com/ubuntu/dists'
You should always use http://archive.ubuntu.com/ubuntu as the repository for Ubuntu, at least for current releases. I'm not sure what Ubuntu does with older releases. With Debian, you can use branch names instead of code names. If you weren't sure if wheezy or jessie was Debian's current stable release, you could simply specify stable instead.
Quote:
Originally Posted by Higgsboson
Yes, where is the /etc/fstab located for inputting the UUID?
I'm getting confused between the /etc/fstab of the host system, and the /etc/fstab presumably being created in the mounted 'deboot' directory.
Assuming you've mounted /dev/sda3 on /mnt/deboot, then you'll want to add the UUID of /dev/sda3 to /mnt/deboot/etc/fstab
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508
Original Poster
Rep:
Quote:
Originally Posted by colorpurple21859
from the howto you initially followed.
Binding the virtual filesystems. Until your new install is booting on it's own, we'll borrow these from the host.
Code:
root@host# mount -o bind /dev /mnt/deboot/dev
root@host# mount -o bind /proc /mnt/deboot/proc
root@host# mount -o bind /sys /mnt/deboot/sys
Continuing the installation within chroot
Entering the chroot environment:
Code:
root@host# chroot /mnt/deboot /bin/bash
I'm going to do a re-install with the kernel included this time.
This way I can download the latest utopic version. Thank you.
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508
Original Poster
Rep:
Quote:
Originally Posted by replica9000
You shouldn't have to rename any of the scripts. Most of them are just symlinks to the gutsy script. I'm assuming that script should allow you to install any of the Ubuntu versions available at http://archive.ubuntu.com/ubuntu/. I haven't spent a lot of time using debootstrap to install Ubuntu. I know the latest version is utopic, and the latest LTS is trusty, soon to be vivid.
Ok, in that case I'll try and install utopic using debootstrap.
Quote:
Debian uses linux-image-amd64 as a meta-package name for it's latest kernel. Ubuntu uses linux-image-generic instead.
Excellent. I'll try that.
Quote:
You should always use http://archive.ubuntu.com/ubuntu as the repository for Ubuntu, at least for current releases. I'm not sure what Ubuntu does with older releases. With Debian, you can use branch names instead of code names. If you weren't sure if wheezy or jessie was Debian's current stable release, you could simply specify stable instead.
I'll try the link as you say for the current release.
Quote:
Assuming you've mounted /dev/sda3 on /mnt/deboot, then you'll want to add the UUID of /dev/sda3 to /mnt/deboot/etc/fstab
That's exactly what I wanted to know. Thank you very much.
Will let you know how I get on!
The problem that you're eperiencing is due to the fact that you are trying to install packages that are from a different repo when you chroot into system it already has it's sources.list. You don't need to tell the system which repo to install from.
You can do
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.