Repairing Linux, first step

Know thy command line.

That should definitely be one of the commandments of Linux.

If your Linux installation is broken, then there’s a good chance that you will be working on the command line, especially if the X server doesn’t run.

In a follow-up to the last post, your repositories’ locations are found in the file

/etc/apt/sources.list

You will see something like this:

deb http://us.archive.ubuntu.com/ubuntu hardy main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu hardy-updates main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu hardy-security main restricted universe multiverse

Some explanation is needed here.

deb indicates a Debian package repository.  The url is the location of the repository you are getting packages from.  The one above is the default, and not necessarily the closest or best for you.

hardy is the Ubuntu distribution.  hardy-updates and hardy-security are also needed.

main is the core repository supported by Canonical (for Ubuntu)
restricted is a repository of non-free software supported by Canonical
universe is community supported free software
multiverse is community supported non-free software

I strongly recommend backing up sources.list BEFORE making changes.  You don’t want to muck up your updating mechanism.  Also, printing it out can’t hurt.

… As of today, my dependencies are OK, but X server hangs.  I will try and try again.  (I am that stubborn!)

Don’t touch that dial!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: