medibuntu messed up my system

Asked by ollienor

i tried to add the medibuntu repository as show on community ubuntu by:
sudo wget http://www.medibuntu.org/sources.list.d/hardy.list -O /etc/apt/sources.list.d/medibuntu.list

then tried the add/remove applications tab and got:

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'.

... so i try to check with synaptic and i get this:

E: Type ‘--18:31:24--’ is not known on line 1 in source list /etc/apt/sources.list.d/medibuntu.list
E: The list of sources could not be read.
Go to the repository dialogue to correct the problem.
E: _cache->open() failed, please report.

can anyone tell me how to get it back to how it was before?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu synaptic Edit question
Assignee:
No assignee Edit question
Solved by:
Jim Hutchinson
Solved:
Last query:
Last reply:
Revision history for this message
Best Jim Hutchinson (jphutch) said :
#1

Something probably didn't get copied right. Try opening the sources.list and manually editing it. Open a terminal (apps - accessories) and type

gksudo gedit /etc/apt/sources.list

and then look for the section added for medibuntu. Make sure the line for medibuntu looks like this

deb http://packages.medibuntu.org/ hardy free non-free

If it is different, fix it. There may be some other lines as well. If it was added correctly I think the full section should look like

## Medibuntu - Ubuntu 8.04 LTS "hardy heron"
## Please report any bug on https://bugs.launchpad.net/medibuntu/
deb http://packages.medibuntu.org/ hardy free non-free
#deb-src http://packages.medibuntu.org/ hardy free non-free

Make sure the number signs are there in front of the other 3 lines. They are just for info and if there are no # then it could cause problems.

Revision history for this message
Jim Hutchinson (jphutch) said :
#2

Addendum: Well, the last line is for source files but most people don't want or need those.

Revision history for this message
Elfy (elfy) said :
#3

You need to edit a slightly different file to the one that Jim has given you other than that do as he has said

Replace

gksudo gedit /etc/apt/sources.list

with

gksudo gedit /etc/apt/sources.list.d/medibuntu.list

Revision history for this message
ollienor (ollienor) said :
#4

hi, thanks for the help, the sources list didn't look how it should and something wasn't copied right, i read the command i put into the terminal to get the medibuntu list and realized i didn't put the upper case -O, i forgot that ubuntu is case sensitive as i have done a few times now (i'm very new).

I figured it would work if i just typed the command in again properly (it was actually a complete guess :) ) and it did, learn't a little more though.

Thanks again

Revision history for this message
ollienor (ollienor) said :
#5

problem solved

Revision history for this message
ollienor (ollienor) said :
#6

Thanks Jim Hutchinson, that solved my question.