cannot run update!

Asked by Karan

after putting this in terminal
Ubuntu 8.04 "Hardy Heron":

sudo wget http://www.medibuntu.org/sources.list.d/hardy.list -O /etc/apt/sources.list.d/medibuntu.list

i cannot run add/remove....it gives me this error....

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

and synaptic gives me this error

E: Type '--15:19: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 dialog to correct the problem.
E: _cache->open() failed, please report.

in the terminal i cannot run update....it gives me this...

E: Type '--15:19:24--' is not known on line 1 in source list /etc/apt/sources.list.d/medibuntu.list

plz help!

Question information

Language:
English Edit question
Status:
Solved
For:
Medibuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Andy Ruddock
Solved:
Last query:
Last reply:

This question was originally filed as bug #248340.

Revision history for this message
Albin Tonnerre (lutin) said :
#1

This is a question, not a bug report.
Please remove /etc/apt/sources.list.d/medibuntu.list and run 'apt-get update', then retry the procedure (the website is currently down, so not immediately)

Cheers

Revision history for this message
Max Schukin (schukin) said :
#2

Hi Karan,

Try running the following command in Terminal:
sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update

Revision history for this message
Albin Tonnerre (lutin) said :
#3

FYI, this is completely non-related to the discussed issue. The actual issue being that Karan *cannot* run apt-get update. This is because of a malformatted sources.d/medibuntu.list, and not because of the lack of the keyring, which would never lead to such error messages

Cheers

Revision history for this message
Best Andy Ruddock (andy-ruddock) said :
#4

Use a text editor to edit the sources list:

#sudo nano /etc/apt/sources.list.d/medibuntu.list

It should look like this :

----- medibuntu.list below here -----
## 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
----- medibuntu.list above here -----

Then press Ctrl-X and answer Y to save the file.

Afterwards you can

# apt-get update

to make sure all is ok

Revision history for this message
Karan (karankrn) said :
#5

Thanks Andy Ruddock, that solved my question.

Revision history for this message
Karan (karankrn) said :
#6

Thanks Andy

i also found a solution in the ubuntuforums which was similar to the one you submitted.
it worked and my system is rocking again!

Revision history for this message
Andy Ruddock (andy-ruddock) said :
#7

Glad I could be of help