How to regain erased sources.lst

Scott Berry sberry at northlc.com
Mon Mar 3 01:44:13 UTC 2008


I apologize for that.  I wasn't really sure what to put in the subject.
Again I do apologize I try to usually make the subject match the message.



Scott Berry
Email: sberry at northlc.com 

-----Original Message-----
From: ubuntu-users-bounces at lists.ubuntu.com
[mailto:ubuntu-users-bounces at lists.ubuntu.com] On Behalf Of SYNass IT Ubuntu
/ Linux
Sent: Sunday, March 02, 2008 6:06 PM
To: Ubuntu user technical support,not for general discussions
Subject: Re: How to regain erased sources.lst
Importance: High

Sorry for my, exceptional, top posting:
It's a pity that the OP didn't set an appropriate subject to his
problem !
This error could happen anytime again and nobody will find it again 
with only "Re:" in the subject !!

Cheers, svobi




On Sun, 2008-03-02 at 15:44 -0800, NoOp wrote:
> On 03/02/2008 02:52 PM, Scott Berry wrote:
> > Hello guys and gals,
> > 
> > I goofed up on my Dad's comp while doing some system admin tasks and I
> > erased the/etc/apt/sources.list and when I try to run apt-get update I
get a
> > message saying that the doc type isn't right.  How do I go about taking
the
> > sources.list off the cd and copying it back on to the hard drive?  Ug!
I
> > hate when I make mistakes like that.  Here is the error message I get
when I
> > type apt-get update.
> > root at Matoe:~# apt-get update
> > 
> > E: Type '<!DOCTYPE' is not known on line 1 in source list
> > /etc/apt/sources.list  
> > 
> 
> gksu gedit /etc/apt/sources.list
> 
> Paste:
> 
> deb http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted
> deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted
> 
> ## Major bug fix updates produced after the final release of the
> ## distribution.
> 
> deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted
> deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted
> 
> ##Universe
> 
> deb http://us.archive.ubuntu.com/ubuntu/ gutsy universe
> deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy universe
> deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe
> deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe
> 
> ## Multiverse
> 
> deb http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse
> deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse
> deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse
> deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse
> 
> ## Backports
> 
> deb http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted
> universe multiverse
> deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main
> restricted universe multiverse
> 
> ## Canonical Partner Repository
> 
> deb http://archive.canonical.com/ubuntu gutsy partner
> deb-src http://archive.canonical.com/ubuntu gutsy partner
> deb http://security.ubuntu.com/ubuntu gutsy-security main restricted
> deb-src http://security.ubuntu.com/ubuntu gutsy-security main restricted
> deb http://security.ubuntu.com/ubuntu gutsy-security universe
> deb-src http://security.ubuntu.com/ubuntu gutsy-security universe
> deb http://security.ubuntu.com/ubuntu gutsy-security multiverse
> deb-src http://security.ubuntu.com/ubuntu gutsy-security multiverse
> 
> Modify as you see fit & save the file.
> 
> Now try a sudo apt-get update.
> 
> 


-- 
ubuntu-users mailing list
ubuntu-users at lists.ubuntu.com
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.21.2/1305 - Release Date: 2/29/2008
6:32 PM
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.21.2/1305 - Release Date: 2/29/2008
6:32 PM
 





More information about the ubuntu-users mailing list