Error: Synaptic Package Manager
Hi,
I am completely new to Linux and just downloaded Ubuntu for the first time yesterday as I got sick of Vista. I was trying to add the Medibuntu repository so that I can watch DVDs and can't remember what I did but now I can't access my Synaptic Package Manager. Every time I try and access Synaptic I get the following error message:
E: Type ‘--15:41:50--’ is not known on line 1 in source list /etc/apt/
E: The list of sources could not be read.
Go to the repository dialogue to correct the problem.
E: _cache->open() failed, please report.
I don't know what a 'repository dialogue' is and don't have the slightest clue as to what I should do in order to resolve this issue. I would really appreciate it if someone could walk me through a solution to this problem.
Thanks!
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu apt Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Revision history for this message
|
#1 |
the file that contains all of this stuff can be edited directly using
sudo gedit /etc/apt/
Where medibuntu is mentioned put a # at the start of the line to comment it out.
The run Synaptic again and see if the error has been resolved.
Revision history for this message
|
#2 |
Thanks for your quick response Tony!
I used sudo gedit /etc/apt/
Revision history for this message
|
#3 |
Ok, can you post the contents here?
cat /etc/apt/
Revision history for this message
|
#4 |
This is what I got when I typed in cat /etc/apt/
# deb cdrom:[Ubuntu 8.04 _Hardy Heron_ - Release i386 (20080423)]/ hardy main restricted
deb-src http://
# See http://
# newer versions of the distribution.
deb http://
deb-src http://
## Major bug fix updates produced after the final release of the
## distribution.
deb http://
deb-src http://
## 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
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://
deb http://
## 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://
deb http://
## 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.
# deb http://
# deb-src http://
## 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://
deb-src http://
deb http://
deb-src http://
deb http://
deb http://
Revision history for this message
|
#5 |
Ok, you could remove the file with
sudo rm /etc/apt/
Or if you want to view and possibly edit the file first, try
sudo gedit /etc/apt/
Revision history for this message
|
#6 |
I just tried the second option you suggested (to view and edit the file)...this is what I got. Can you please tell me what this means? Should I try my Synaptic Package Manager now to see if it works?
--15:41:50-- http://
=> `hardy.list'
Resolving www.medibuntu.
Connecting to www.medibuntu.
HTTP request sent, awaiting response... 200 OK
Length: 226 [text/plain]
0K 100% 16.59 MB/s
15:41:50 (16.59 MB/s) - `hardy.list' saved [226/226]
Revision history for this message
|
#7 |
The main line that this file /etc/apt/
deb http://
You could edit it and add that line or alternatively just delete it and try the steps to add it all over again.
Revision history for this message
|
#8 |
From the instructions here
https:/
I would suggest removing the existing Medibuntu file and then run the following two lines
sudo wget http://
sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update
Revision history for this message
|
#9 |
Would you suggest that I remove it or edit it? I will completely trust your judgment as I don't have the slightest clue as to which option is better. All I want is to watch DVDs on Ubuntu. Step-by-step instructions on the removal or editing process would be greatly appreciated as I am a complete novice. It would be great if you could tell me where I should input the line that you suggested above...in the terminal or somewhere else? Furthermore, after making the edit or deletion, what do I need to write or add to be able to watch movies on my PC? Sorry for the utter ignorance!
Thanks!!
Revision history for this message
|
#10 |
I would open a terminal window and run the following commands
sudo rm /etc/apt/
sudo wget http://
sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update
Revision history for this message
|
#11 |
After each line should I press 'Enter" or should I enter all the lines at the same time and then press enter?
Revision history for this message
|
#12 |
Press enter after each line in a terminal window (Applications menu, Accessories)
The make sure you have the Totem "Movie Player" (which appears under the Applications menu, Sound & Video)
sudo apt-get install totem
Revision history for this message
|
#13 |
Thanks Tony...my Synaptic Package Manager now works fine! I have just performed the 3 steps that you suggested and everything seems to have gone fine. I also made sure that I have the Totem player. But when I try and play a DVD on Totem it doesn't work. Do I have to now add 'libdvdcss2' and 'w32codecs'?
So sorry for the barrage of questions!
Revision history for this message
|
#15 |
I just spend an hour typing out my problem just for my browser to crash :-#
So I will try to explain my problem in short.
[U]First some background[/U]:
- this is a fresh install of Ubuntu, with all the updates and upgrades done.
- I am behind a firewall and need a proxy to use the internet (the proxy settings are correct and works, and I can even get to the medibuntu website to get the medibuntu.list file info)
- my general repositories are downloaded from my university's mirror (no proxy nesesary)
[U]Now my problem[/U]:
I can't connect to the Medibuntu repositories...
Input terminal:
[QUOTE]sudo wget [url]http://
Output terminal:
[QUOTE]--18:50:56-- [url]http://
=> `/etc/apt/
Resolving [url]www.
Connecting to [url]www.
[/QUOTE]
This creates the medibuntu.list file, but it is empty...
If I get the relevant info for this file form: [url]http://
and inserted it into the medibuntu.list file and run:
Input terminal:
[QUOTE]sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update
[/QUOTE]
This is what I get:
Output terminal:
[QUOTE]Hit [url]ftp://ftp.
Get:1 [url]ftp://ftp.
Ign [url]ftp://ftp.
Get:2 [url]ftp://ftp.
Ign [url]ftp://ftp.
Get:3 [url]ftp://ftp.
Ign [url]ftp://ftp.
Get:4 [url]ftp://ftp.
Ign [url]ftp://ftp.
Hit [url]ftp://ftp.
Get:5 [url]ftp://ftp.
Ign [url]ftp://ftp.
Get:6 [url]ftp://ftp.
Ign [url]ftp://ftp.
Get:7 [url]ftp://ftp.
Ign [url]ftp://ftp.
Get:8 [url]ftp://ftp.
Ign [url]ftp://ftp.
Hit [url]ftp://ftp.
Get:9 [url]ftp://ftp.
Ign [url]ftp://ftp.
Get:10 [url]ftp://ftp.
Ign [url]ftp://ftp.
Get:11 [url]ftp://ftp.
Ign [url]ftp://ftp.
Get:12 [url]ftp://ftp.
Ign [url]ftp://ftp.
Hit [url]ftp://ftp.
Get:13 [url]ftp://ftp.
Ign [url]ftp://ftp.
Get:14 [url]ftp://ftp.
Ign [url]ftp://ftp.
Get:15 [url]ftp://ftp.
Ign [url]ftp://ftp.
Get:16 [url]ftp://ftp.
Ign [url]ftp://ftp.
Hit [url]ftp://ftp.
Get:17 [url]ftp://ftp.
Ign [url]ftp://ftp.
Get:18 [url]ftp://ftp.
Ign [url]ftp://ftp.
Get:19 [url]ftp://ftp.
Ign [url]ftp://ftp.
Get:20 [url]ftp://ftp.
Ign [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
92% [Connecting to packages.
[/QUOTE]
Not connecting...and no packages are updated...
In Software Sources, the Medibuntu entry is made, and "ticked" under "Third-party Software"
In Synaptic Package Manager the packages are also not listed...
Any help would be appreciated.
Revision history for this message
|
#16 |
I just spend an hour typing out my problem just for my browser to crash :-#
So I will try to explain my problem in short.
[U]First some background[/U]:
- this is a fresh install of Ubuntu, with all the updates and upgrades done.
- I am behind a firewall and need a proxy to use the internet (the proxy settings are correct and works, and I can even get to the medibuntu website to get the medibuntu.list file info)
- my general repositories are downloaded from my university's mirror (no proxy nesesary)
[U]Now my problem[/U]:
I can't connect to the Medibuntu repositories...
Input terminal:
[QUOTE]sudo wget [url]http://
Output terminal:
[QUOTE]--18:50:56-- [url]http://
=> `/etc/apt/
Resolving [url]www.
Connecting to [url]www.
[/QUOTE]
This creates the medibuntu.list file, but it is empty...
If I get the relevant info for this file form: [url]http://
and inserted it into the medibuntu.list file and run:
Input terminal:
[QUOTE]sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update
[/QUOTE]
This is what I get:
Output terminal:
[QUOTE]Hit [url]ftp://ftp.
Get:1 [url]ftp://ftp.
Ign [url]ftp://ftp.
Get:2 [url]ftp://ftp.
Ign [url]ftp://ftp.
Get:3 [url]ftp://ftp.
Ign [url]ftp://ftp.
Get:4 [url]ftp://ftp.
Ign [url]ftp://ftp.
Hit [url]ftp://ftp.
Get:5 [url]ftp://ftp.
Ign [url]ftp://ftp.
Get:6 [url]ftp://ftp.
Ign [url]ftp://ftp.
Get:7 [url]ftp://ftp.
Ign [url]ftp://ftp.
Get:8 [url]ftp://ftp.
Ign [url]ftp://ftp.
Hit [url]ftp://ftp.
Get:9 [url]ftp://ftp.
Ign [url]ftp://ftp.
Get:10 [url]ftp://ftp.
Ign [url]ftp://ftp.
Get:11 [url]ftp://ftp.
Ign [url]ftp://ftp.
Get:12 [url]ftp://ftp.
Ign [url]ftp://ftp.
Hit [url]ftp://ftp.
Get:13 [url]ftp://ftp.
Ign [url]ftp://ftp.
Get:14 [url]ftp://ftp.
Ign [url]ftp://ftp.
Get:15 [url]ftp://ftp.
Ign [url]ftp://ftp.
Get:16 [url]ftp://ftp.
Ign [url]ftp://ftp.
Hit [url]ftp://ftp.
Get:17 [url]ftp://ftp.
Ign [url]ftp://ftp.
Get:18 [url]ftp://ftp.
Ign [url]ftp://ftp.
Get:19 [url]ftp://ftp.
Ign [url]ftp://ftp.
Get:20 [url]ftp://ftp.
Ign [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
Hit [url]ftp://ftp.
92% [Connecting to packages.
[/QUOTE]
Not connecting...and no packages are updated...
In Software Sources, the Medibuntu entry is made, and "ticked" under "Third-party Software"
In Synaptic Package Manager the packages are also not listed...
Any help would be appreciated.
Revision history for this message
|
#17 |
How about trying this in a terminal window to see if the proxy is what is causing the issue
sudo wget http://
This should just download a file called hardy.list
Revision history for this message
|
#18 |
Hi Tony,
I entered the link as you sugested, and this is the output:
--10:27:31-- http://
=> `hardy.list'
Resolving www.medibuntu.
Connecting to www.medibuntu.
Again, not connecting and downloading the file called hardy.list
Just to confirm that it is the proxy, I also entered the link in my browser, and I was able to open the file hardy.list
SO it seems that it is the proxy causing the problem. I guess because I setup the proxy inside the browser it detects the settings there, and then it is able to make the connection. Can you tell me, or direct me to a place, that can tell me how to set these "other" proxy settings?
Thanks for all the information and help.
Revision history for this message
|
#19 |
I just fount this. It works, but is there another way?
If you’re using Synaptic
Open up your Synaptic package manager (usually as root), go to Settings-> Preference -> Network. Enter your proxy server details like : username:<email address hidden>, and put the proxy server port (usually 8080).
If you’re using command-line apt-get
Edit your /etc/bash.bashrc file as root.
Put these line at the end of your /etc/bash.bashrc file :
export http_proxy=http://
export ftp_proxy=http://
You can omit the username:password, if your proxy server has no password.
Revision history for this message
|
#20 |
They look like a good solution to me.
Well found.
You should be ok from here.
Can you help with this problem?
Provide an answer of your own, or ask hajiboy for more information if necessary.