PDA

View Full Version : [xubuntu] Install from ubuntu console?



Deddly
March 2nd, 2009, 03:44 PM
I have succeeded in installing just the text console of Ubuntu. I have mounted my external CDROM with a xubuntu cd inside it (I cannot boot from this device)

Since I can't boot from the CDROM, can I install xubuntu from the command-line I already have installed? If so, how? (Be gentle...)

--
Ed

taurus
March 2nd, 2009, 03:54 PM
Is your machine connected to the net?


sudo apt-get update
sudo apt-get install xubuntu-desktop

Deddly
March 2nd, 2009, 04:29 PM
Is your machine connected to the net?


sudo apt-get update
sudo apt-get install xubuntu-desktop

Sadly it isn't, which makes the process rather more complicated...

taurus
March 2nd, 2009, 04:34 PM
Insert the CD into the drive. Then from a terminal, run


sudo apt-cdrom add
sudo apt-get update
sudo apt-get install xubuntu-desktop

Deddly
March 2nd, 2009, 05:01 PM
Insert the CD into the drive. Then from a terminal, run


sudo apt-cdrom add
sudo apt-get update
sudo apt-get install xubuntu-desktop

Thanks very much for that. But when I type it, it tries to access the built-in CDROM (that doesn't work) instead of the USB one - sorry to ask such a newbie question, but... what should I do now? The USB CDROM is mounted as cdrom1

--
Ed

taurus
March 2nd, 2009, 05:12 PM
You can redirect it to point to your external cd drive. What are the outputs of these commands?


cat /etc/fstab
ls -la /media
df -h

Deddly
March 2nd, 2009, 05:23 PM
You can redirect it to point to your external cd drive. What are the outputs of these commands?


cat /etc/fstab
ls -la /media
df -h

"cat /etc/fstab":
amongst other things, it says:

/dev/scd1/ /media/cdrom1 ...

"ls -la /media":
it says something like:
cdrom -> cdrom0
cdrom0
cdrom1


How do I get cdrom to point to cdrom1?

taurus
March 2nd, 2009, 05:46 PM
cd /media
sudo rmdir cdrom
sudo ln -s cdrom1 cdrom
ls -la

Deddly
March 2nd, 2009, 07:21 PM
cd /media
sudo rmdir cdrom

This returns the error message:

rmdir: failed to remove 'cdrom': Not a directory

taurus
March 2nd, 2009, 07:27 PM
cd /media
sudo rm cdrom
sudo ln -s cdrom1 cdrom

Deddly
March 2nd, 2009, 07:39 PM
OK! Thanks for that. Now cdrom1 is cdrom.

Going back to the instructions, then:


Insert the CD into the drive. Then from a terminal, run


sudo apt-cdrom add
sudo apt-get update
sudo apt-get install xubuntu-desktop

I get as far as the last step, where I get the following error:

E: Couldn't find package xubuntu-desktop

taurus
March 2nd, 2009, 07:43 PM
Post your /etc/apt/sources.list.


cat /etc/apt/sources.list

Deddly
March 2nd, 2009, 07:52 PM
Post your /etc/apt/sources.list.

deb cdrom:[Xubuntu 8.10 _Intrepid Ibex_ - Release i386 (20081030.3)]/ intrepid main multiverse restricted

deb cdrom:[Ubuntu 8.10 _Intrepid Ibex_ - Release i386 (20081030)]/ intrepid main restricted

taurus
March 2nd, 2009, 07:58 PM
I guess you only have two lines in /etc/apt/sources.list.

Edit /etc/apt/sources.list


sudo nano -Bw /etc/apt/sources.list
and place a # in front of the second line.



#deb cdrom:[Ubuntu 8.10 _Intrepid Ibex_ - Release i386 (20081030)]/ intrepid main restricted

Save it and exit with <Ctrl>x.

Then run


sudo apt-get update
sudo apt-get install xubuntu-desktop

Deddly
March 2nd, 2009, 08:02 PM
I guess you only have two lines in /etc/apt/sources.list.

Edit /etc/apt/sources.list


sudo nano -Bw /etc/apt/sources.list

This returns:

sudo: nano: command not found

taurus
March 2nd, 2009, 08:07 PM
How about vi?


whereis vi

Deddly
March 2nd, 2009, 08:23 PM
whereis vi

vi: /usr/bin/vi /usr/share/man/man1/vi.1.gz

taurus
March 2nd, 2009, 08:35 PM
sudo vi /etc/apt/sources.list
Then press i to get into insert mode and when you are done inserting # in there, press Esc and then :wq! to save and exit.

Deddly
March 2nd, 2009, 08:45 PM
sudo vi /etc/apt/sources.list
Then press i to get into insert mode and when you are done inserting # in there, press Esc and then :wq! to save and exit.

OK that seemed to edit ok.

But when I do:


sudo apt-get update
sudo apt-get install xubuntu-desktop

I get:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package xubuntu-desktop

Deddly
March 3rd, 2009, 10:41 PM
I still haven't figured it out..any ideas?

taurus
March 4th, 2009, 12:21 AM
How did you manage to install the server (text only) on your machine? There are other ways to install Ubuntu on your machine if it can't boot from the CD.

https://help.ubuntu.com/community/Installation/

Deddly
March 4th, 2009, 12:38 AM
How did you manage to install the server (text only) on your machine? There are other ways to install Ubuntu on your machine if it can't boot from the CD.

Well I have a wierd problem with my internal DVDROM where it only reads DVDs, not CDs. I downloaded the Ubuntu DVD and it failed to install, presumably because I only have 255MB. So I installed text version thinking it meant text version of the installer...voila: Ubuntu console...

I don't know where to go from here since I don't know the console lol