PDA

View Full Version : [ubuntu] Error with update managers.



abu123
December 16th, 2008, 03:12 PM
I'm new to Linux and this forum.

I installed ubunto studio 8.1 2 days ago.

in the process of installing dvdcss protection removal I inadvertantly damaged something and get the following error message when ever trying to update thru either the GUI or the terminal

I have tried suggestions of variuos other threads but continue to the the same error:

E: Type ‘rm’ is not known on line 56 in source list /etc/apt/sources.list

please kindly assist

Thanks

taurus
December 16th, 2008, 03:16 PM
There is something wrong with line 56 in your /etc/apt/sources.list. So, you need to edit it

Applications -> Accessories -> Terminal

gksudo gedit /etc/apt/sources.list
and either remove it or place a # in front of it to comment it out. Then, save it and close down the gedit window.

Now run


sudo apt-get update
sudo apt-get upgrade
And if you are not sure which line it is, just post your /etc/apt/sources.list here.

abu123
December 16th, 2008, 03:27 PM
thank you for speedy reply.

I did try this prior to posting and agin after your suggestion but at your first step.

Getedit open in the GUI with following error

Could not open the file /etc/apt/sources.list.

gedit has not been able to detect the character coding.
Please check that you are not trying to open a binary file.
Select a character coding from the menu and try again.

Character encoding. {scroll down list with} current locale UTF-8 or weestern ISO -8859-15 or other.


please assist thanks

taurus
December 16th, 2008, 03:31 PM
What happens when you run this command from a terminal?


cat /etc/apt/sources.list

abu123
December 16th, 2008, 03:48 PM
a very long page loads and scrolls for 40-60 seconds.

looks jibberish

taurus
December 16th, 2008, 03:54 PM
You mean it doesn't look something like this?



#deb cdrom:[Ubuntu 8.10 _Intrepid Ibex_ - Release i386 (20081029.5)]/ intrepid main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://us.archive.ubuntu.com/ubuntu/ intrepid main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ intrepid main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ intrepid-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ intrepid-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ intrepid universe
deb-src http://us.archive.ubuntu.com/ubuntu/ intrepid universe
deb http://us.archive.ubuntu.com/ubuntu/ intrepid-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ intrepid-updates universe

abu123
December 16th, 2008, 04:14 PM
not at all that I can read.
mine I cannot... last few lines are as follows:

Ü0;st1§docst: ßst1§docst:ß$ 62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62 ;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9 ;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c 62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62 ;9;c62;9;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62 ;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9 ;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c 62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62 ;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9 ;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c 62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62 ;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9 ;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c 62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62 ;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9 ;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c 62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62 ;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9 ;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c 62;9;c62;9;c62;9;c62;9;c
Ü0;st1§docst: ßst1§docst:ß$

taurus
December 16th, 2008, 04:19 PM
Looks like you mess up your /etc/apt/sources.list big time. Remember what you did to your /etc/apt/sources.list?

Let's see if you have a backup copy of /etc/apt/sources.list. What's the output of this command?


ls -la /etc/apt/sources.list*

abu123
December 16th, 2008, 04:20 PM
I need to go to work now will be back in about 4.5hours. I will try any recommendations on returning.. Thnaks again

Casper Hansen
December 16th, 2008, 05:05 PM
Type


sudo gedit /etc/apt/sources.list

abu123
December 16th, 2008, 09:21 PM
Type


sudo gedit /etc/apt/sources.list



some result as per my second post above,

PLease what can I do?

is it possible to replace this file?

Does Linux offer a restore like M$?

abu123
December 16th, 2008, 10:33 PM
BUMP

Really could do with some help on this. Sorry to sound impatient.

taurus
December 16th, 2008, 10:47 PM
Have you looked at the post #8?

abu123
December 16th, 2008, 11:24 PM
Sorry missed it the first time.

result as follows:

-rw-r--r-- 1 root root 11624875 2008-12-15 22:41 /etc/apt/sources.list
-rw-r--r-- 1 root root 0 2008-12-14 23:45 /etc/apt/sources.list~
-rw-r--r-- 1 root root 3166 2008-12-15 22:41 /etc/apt/sources.list.save

/etc/apt/sources.list.d:
total 12
drwxr-xr-x 2 root root 4096 2008-12-16 13:51 .
drwxr-xr-x 4 root root 4096 2008-12-15 23:11 ..
-rw-r--r-- 1 root root 230 2008-08-18 21:13 medibuntu.list

taurus
December 16th, 2008, 11:29 PM
Try these.


sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
sudo cp /etc/apt/sources.list.save /etc/apt/sources.list
sudo apt-get update
sudo apt-get upgrade

abu123
December 16th, 2008, 11:57 PM
Thank you immensely Taurus

Done the trick.

taurus
December 17th, 2008, 12:04 AM
You're welcome. It's safe to remove this one, /etc/apt/sources.list.bak, since it's junk anyway.


sudo rm /etc/apt/sources.list.bak

abu123
December 17th, 2008, 12:07 AM
have done!

Is there a backup and restore programme for linux.

like System Restore for M$ which takes an image copy of current states.