Can't (so far) add Medibuntu repository

Asked by Randymanme

I went to: https://help.ubuntu.com/community/Medibuntu, and followed the directions to add the Medibuntu repositories. Here is how my terminal responds:

~$ sudo wget http://www.medibuntu.org/sources.list.d/jaunty.list --output-document=/etc/apt/sources.list.d/medibuntu.list
[sudo] password for:
--2009-08-11 23:18:37-- http://www.medibuntu.org/sources.list.d/jaunty.list
Resolving www.medibuntu.org... 87.98.242.110
Connecting to www.medibuntu.org|87.98.242.110|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 280 [text/plain]
Saving to: `/etc/apt/sources.list.d/medibuntu.list'

100%[======================================>] 280 --.-K/s in 0s

2009-08-11 23:18:38 (14.4 MB/s) - `/etc/apt/sources.list.d/medibuntu.list' saved [280/280]

$ sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update
E: Malformed line 50 in source list /etc/apt/sources.list (dist parse)
$ sudo apt-get install libdvdcss2
E: Malformed line 50 in source list /etc/apt/sources.list (dist parse)
E: The list of sources could not be read.

[I thought there would be more than this, but this is all that pasted.]

My computer: model name : Intel(R) Pentium(R) 4 CPU 2.60GHz
stepping : 9
cpu MHz : 2593.760
cache size : 512 KB

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Solved by:
GercoKees
Solved:
Last query:
Last reply:
Revision history for this message
Randymanme (randall43215) said :
#1

I'm running Jaunty 9.04 and Firefox 3.0 (happy to be rid of Shiretoko).

Revision history for this message
Tom (tom6) said :
#2

Hi :)

Please get to a command-line
https://help.ubuntu.com/community/UsingTheTerminal
and type in

cd /etc/apt
ls
sudo cp sources.list sources.list.0120809
ls
gedit sources.list

Note that "ls" is a lower-case "LS" and shows a LiSt of what's in the folder. The "sudo" command will ask for your normal user password, not your SuperUser/Root one. The "cp" should create a CoPy of "sources.list" giving it the name "sources.list.120809", which you should be able to see from the 2nd "ls" command. Ooops, err i think that's a folder with a lot of stuff so it might not be immediately obvious that the file has been added. Note that the only reason for using sudo is this is a system folder and sources.list is a system file - normally you can use "cp" without having "sudo" in front. Opening "sources.list" in gedit without using sudo (or gksudo) in front means you can't dsave any changes you make but that's ok because i just want you to post the contents of "sources.list" into here for us to have a look at what's gone wrong so that we can try to help you fix this.

Ok, please copy&paste everything in sources.list" into here from gedit and then close gedit :)
Good luck and regards from
Tom :)

Revision history for this message
Tom (tom6) said :
#3

Hi :)

Please get to a command-line
https://help.ubuntu.com/community/UsingTheTerminal
and type in

cd /etc/apt
ls
sudo cp sources.list sources.list.0120809
ls
gedit sources.list

Note that "ls" is a lower-case "LS" and shows a LiSt of what's in the folder. The "sudo" command will ask for your normal user password, not your SuperUser/Root one. The "cp" should create a CoPy of "sources.list" giving it the name "sources.list.120809", which you should be able to see from the 2nd "ls" command. Ooops, err i think that's a folder with a lot of stuff so it might not be immediately obvious that the file has been added. Note that the only reason for using sudo is this is a system folder and sources.list is a system file - normally you can use "cp" without having "sudo" in front. Opening "sources.list" in gedit without using sudo (or gksudo) in front means you can't save any changes you make but that's ok because i just want you to post the contents of "sources.list" into here for us to have a look at what's gone wrong so that we can try to help you fix this.

Ok, please copy&paste everything in sources.list" into here from gedit and then close gedit :)
Good luck and regards from
Tom :)

Revision history for this message
Randymanme (randall43215) said :
#4

I copied and pasted your command into a terminal and this is what I got the second time I did it:

# deb cdrom:[Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1)]/ jaunty main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ jaunty main restricted #Added by software-properties
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://us.archive.ubuntu.com/ubuntu/ jaunty main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ jaunty multiverse universe #Added by software-properties

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ jaunty-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ jaunty-updates restricted main multiverse universe #Added by software-properties

## 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/ jaunty universe
deb http://us.archive.ubuntu.com/ubuntu/ jaunty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ jaunty multiverse
deb http://us.archive.ubuntu.com/ubuntu/ jaunty-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu jaunty partner
deb-src http://archive.canonical.com/ubuntu jaunty partner

deb http://us.archive.ubuntu.com/ubuntu/ jaunty-security main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ jaunty-security restricted main multiverse universe #Added by software-properties
deb http://us.archive.ubuntu.com/ubuntu/ jaunty-security universe
deb http://us.archive.ubuntu.com/ubuntu/ jaunty-security multiverse
deb http://us.archive.ubuntu.com/ubuntu/ jaunty-proposed restricted main multiverse universe
deb-src http://us.archive.ubuntu.com/ubuntu/ jaunty-proposed restricted main multiverse universe #Added by software-properties
deb http://packages.medibuntu.org/ jaunty free non-free
deb http://archive.medibuntu.com/medibuntu/jaunty main
deb http://wine.budgetdedicated.com/apt jaunty main #WineHQ - Ubuntu 9.04 "Jaunty Jackalope"
deb http://us.archive.ubuntu.com/ubuntu/ jaunty-backports restricted main multiverse universe

The first time, I didn't get all this. I'll try it a third time to see what happens.

Thank you for your time and consideration.

Revision history for this message
Randymanme (randall43215) said :
#5

For me, something is a little tricky here. I copied and pasted your commands in . . . I think it's called a virtual terminal. When I press enter, I get the information above, in my previous post. But there were three tries when a password was requested and, after entering it, nothing else happened. Just curious.

freegeek@nina:~$ cd /etc/apt
freegeek@nina:/etc/apt$ ls
apt.conf.d sources.list sources.list.d trustdb.gpg trusted.gpg~
secring.gpg sources.list.0120809 sources.list.save trusted.gpg
freegeek@nina:/etc/apt$ sudo cp sources.list sources.list.0120809
freegeek@nina:/etc/apt$ ls
apt.conf.d sources.list sources.list.d trustdb.gpg trusted.gpg~
secring.gpg sources.list.0120809 sources.list.save trusted.gpg
freegeek@nina:/etc/apt$ gedit sources.list
freegeek@nina:/etc/apt$

Revision history for this message
Randymanme (randall43215) said :
#6

I tried to add the Medibuntu Repository yesterday and got the error response mentioned in my question. Today, when I try to open Synaptic Package Manager, all I get is an error box containing the following information -- SPM won't open. I can reboot by selecting a recovery boot command, and SPM will open, then, but I figure I should find out how to fix the problem. How?

E: Malformed line 50 in source list /etc/apt/sources.list (dist parse)
E: The list of sources could not be read.
Go to the repository dialog to correct the problem.
E: _cache->open() failed, please report.

Revision history for this message
Randymanme (randall43215) said :
#7

When I open Add/Remove Applications a few minutes ago, there was an error message box that says:

Failed to check for installed and available applications

This is a major failure of your software management system. Please check for broken packages with synaptic, check the file permissions and correctness of the file '/etc/apt/sources.list' and reload the software information with: 'sudo apt-get update' and 'sudo apt-get install -f'.

Revision history for this message
Randymanme (randall43215) said :
#8

Just now, when I went to the terminal to get a ssh key, I got the following:

freegeek@nina:~$ sudo apt-get install openssh-client
[sudo] password for freegeek:
E: Malformed line 50 in source list /etc/apt/sources.list (dist parse)
E: The list of sources could not be read.

So, now, synaptic won't open, Add/Remove Applications won't open, and the terminal won't respond.

What do I do now?

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#9

Can you copy and paste the contents of /etc/apt/sources.list here...

Thank you

Revision history for this message
Best GercoKees (gercokees) said :
#10

Hi,
just try commenting the medibuntu repositrys...
(you did make a copy of the sourceslist in a previous action did you?)
in a terminal enter:
sudo gedit /etc/apt/sources.list

then place a hash (#) in front of the lines mentioning medibuntu:

# deb http://packages.medibuntu.org/SO jaunty free non-free
# deb http://archive.medibuntu.com/medibuntu/jauntySP main

close gedit and try if it works:
sudo apt-get update && sudo apt-get upgrade

greetz...

Revision history for this message
Randymanme (randall43215) said :
#11

Thanks GercoKees, that solved my question.

Revision history for this message
Randymanme (randall43215) said :
#12

Please see my reopened question in which I asked someone to respond to this one.

Revision history for this message
Tom (tom6) said :
#13

Hi :)

Have you been able to test the new Ubuntu 10.04 before it gets officially released?
http://www.ubuntulinux.org/testing/lucid/beta1
Trying it as a LiveCd or as an extra dual/multi-boot would be ideal. Developers and everyone are keen to try to iron out any problems before 10.04 gets officially released so you might find faster & more effective answers to your bug reports which would make 10.04 work better on your system for you

Thanks and regards from
Tom :)