Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-05-2005, 10:37 PM   #1
LQ Newbie
Registered: Oct 2005
Distribution: Debian Squeeze
Posts: 12

Rep: Reputation: 0
Question Apt Configuration difficulties

I'm planning to switch to Linux once I get my own computer, but for now, unfortunately, I'm stuck with Windows XP. My mother fears change, and I'm only 17, so I'm still in school.

Therefore, since I felt I should try to get the hand of Linux before getting my own computer, I decided to try running it through QEmu. A friend reccomended ubuntu, so I decided I might as well take his word for it, since he's tried several different Linux distributions.

I did an installation to a hard drive image and it worked as far as that goes. It told me to remove the install CD and boot from the hard drive, so I closed down QEmu, got it to not boot from the install CD ISO.

My problem arose when working through the system configuration (when you set up the original user, things like that)

I got to the screen entitled "Apt Configuration," and it asked me how I wanted Apt to access the Ubuntu archive. I chose CD originally, not thinking, but of course, since I installed using an ISO, which is no longer set up as being in a virtual cd drive, it could not find ubuntu. If I had an install CD, I would not be asking for help now, so don't suggest that. If I had a burner, that would make it really simple, but my CD drive is a primitive 52x speed read only drive.

I tried both internet options (http and ftp), but still didn't get anywhere. I can only assume that QEmu is doing something weird about my network card and is not actually recognizing it or if it is, it didn't tell Ubuntu to recognize it. Anyways...fixing that will be when I can actually get the OS set up.

If I chose the "filesystem" option, it asks where on the hard drive image it should look for the Ubuntu archives. I don't even know if said archives are put onto the hard drive during install, let alone where they were put. This is a potential solution, if someone more knowledgeable than myself (essentially everyone on this board) can tell me what filepath I should give it. Since it's not running a window manager yet, and doesn't give me access to terminal commands like "ls", I can't really browse the HD until I find it.

The final option is to edit the sources list by hand, which opens a configuration file in vi, and asks me to tell it what to do. This should work (if I'm understanding what it means), but only if I knew what to type. The file it edits is "/etc/apt/sources.list" When I first opened vi, it also had a ".swp" extention at the end, but it doesn't at the bottom, so I don't know which one it is. Can someone tell me what the code they have in this file is, if I end up having to use this method?

Overall, my question is, does anyone have any idea how I can fix this problem? The only reason I haven't given up (and don't plan to) is because I've seen what Linux can do that Windows cannot do. Thus, I want to use Linux at some point in the future, the sooner the better.

Hooray! I'm stuck AGAIN! Oh well, at least when I get this OS working, it stays working (unlike windows)
Old 10-06-2005, 07:13 AM   #2
Registered: Oct 2004
Location: Florida
Distribution: Debian
Posts: 319

Rep: Reputation: 30
You can try to add the below to your /etc/apt/sources.list just change "warty" to "breezy" or "hoary" for the version you want to run.
This will give you enough to get it installed. Then you can search the Ubuntu site for more sources.
deb warty main restricted universe
deb warty-security main restricted
deb warty multiverse

For your network check the /etc/network/interfaces file for network settings, are you possible to use the Alt+F2 to switch to another console in Ubuntu? (if so then you can use F1 through F7)
Old 10-06-2005, 06:06 PM   #3
LQ Newbie
Registered: Oct 2005
Distribution: Debian Squeeze
Posts: 12

Original Poster
Rep: Reputation: 0
I'd like to say it worked...but...

VI seems to be glitching somehow. Whenever I tell it to save, quit, or do anything else, I get the following message:

E37: No write since last change (add ! to override)

I may sound like an idiot by asking this, but please bear with me. I'm new to VI.

How do I get it to accept the change? It says to add ! to override, but I don't understand where I would add an !. If I type :!e to save, I get:
[No write since last change]
/bin/sh: e: command not found

shen returned 127

Hit ENTER or type command to continue.

So...any suggestions as to what I do now?

Last edited by Rashkavar; 10-07-2005 at 12:14 PM.
Old 10-07-2005, 02:43 PM   #4
Registered: Oct 2004
Location: Florida
Distribution: Debian
Posts: 319

Rep: Reputation: 30
Try either :help or this site
Old 10-07-2005, 03:16 PM   #5
Senior Member
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 51
or use synaptic(GUI).

I don't understand your problems with vim very well.

#sudo vim /etc/apt/sources.list
[save command = :wq]
Old 10-07-2005, 10:52 PM   #6
LQ Newbie
Registered: Oct 2005
Distribution: Debian Squeeze
Posts: 12

Original Poster
Rep: Reputation: 0
I'm planning on using synaptic...It's just that when doing the prelim setup stuff, it asks me to set up apt.

To the post above that one...thx

Now I understant your confusion...
I was attempting to use the shortcuts that are used in gVIM, which is an approximation of VI that works in windows. In gVIM, :e is save, but in VI, it isn't. Hence, I was trying to tell VI to do something else. (either nothing or something that I don't know what it is)

Correction: I apparently cannot read. :e is open, :w is save, in both gVim and VI. Feel free to make fun of me for this, if you so desire.

Anyways...I tried it, and it still didn't work. Qemu doesn't seem to want me to connect to the net through it, so...

I've switched to plan B (which I just came up with): get a physical install CD (not the ISO file for it, but the real thing) and see if I can get QEmu to read it. If not, then...I'll be very annoyed.

Plan C: Find a different distribution that doesn't ask for archives that the install CD has on them but doesn't actually install (or whatever it's asking for)

I've heard Debian is good (It's also, I think, the base distro for a bunch of other distros, including Ubuntu, Kubuntu and DSL), so maybe I'll try that.

Plan D: (in the extreme case that the windows version of qemu is so hard to use that I cannot get any distro of linux to install) start using a live CD and deal with the fact that I won't be able to make changes to the settings and make it work the way I want it to.

Last edited by Rashkavar; 10-07-2005 at 11:29 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apt configuration problems during Debian Installation gunncyclopedia Linux - Networking 4 04-10-2005 09:56 PM
apt-get configuration question bdogg Debian 4 11-27-2004 12:57 PM
screen configuration difficulties thegreatgatsby Linux - Software 0 10-06-2003 11:20 AM
hotmail difficulties mre Linux - General 4 11-19-2002 11:35 PM
PengAOL difficulties... allywilson Linux - Networking 0 09-13-2002 11:34 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:12 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration