Problem with UPGRADING

jack jdangler at
Sat Aug 4 22:09:10 UTC 2007

On Sat, 2007-08-04 at 17:53 -0400, Yanni Enya wrote:
> Joel,
> I am brand new to this. I do not know linux.  How do I edit a system
> file it tells me it is read only.  How do I enter with admin rights ?

Joel ~
At the risk of annoying the rest of the list, I'll repeat this...
type this at the commandline
sudo cat /etc/apt/sources.list <return>
type your password <return>

If the listings in the file now displayed on your screen look something
like - 

deb dapper main restricted

you'll never get anything but 6.06 updates.

So - 
at the commandline, type:
ls -l /etc/apt/sources.list
it needs to be write-able so it should look something like:
-rw-r--r-- 1 root root 2455 2007-07-06 19:54 /etc/apt/sources.list

(if it doesn't, then type: sudo chmod 644 /etc/apt/sources.list)

Now, do the following...

sudo nano -w /etc/apt/sources.list <return>
Password: <yourpassword> <return>

(nano is the editor, similar to notepad)

When nano opens, change every instance of dapper to edgy
When you've made all of the changes, type 
Ctrl-X to exit.  nano will ask you to write the file.  Say 'y' ...

now you're back at the commandline... so type
sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade

when this is finished, all the files (and the system) should be upgraded
to edgy...

sudo reboot

Once the system reboots, log in and go into a terminal and type
cat /etc/ or lsb_release -r or whatever other linux command you
want to determine the version you're running...

repeat the process, except substitute feisty for edgy

More information about the ubuntu-users mailing list