how fix: E: Malformed line 46
Every time I try to open the synaptic package manager gives me this error:
E: Malformed line 46 in source list / etc / apt / sources.list (dist parse)
E: The list of sources not could be read.
Go to the repository dialog to correct the problem.
E: _cache-> open () failed, please report.
Someone can help me with this problem
Paco
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- arjun
- Solved:
- Last query:
- Last reply:
Related FAQ:
None Link to a FAQ
Revision history for this message
|
#1 |
please open a terminal ( ALT CTRL T) and then type "cat /etc/apt/
Revision history for this message
|
#2 |
Im get all this hope so can help me thank Arjun
paco@paco-
deb cdrom:[Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1)]/
jaunty main restricted
# See http://
# newer versions of the distribution.
deb http://
## Major bug fix updates produced after the final release of the
## distribution.
deb http://
## 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://
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://
## '
## 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://
universe multiverse
## 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 http://
deb http://
multiverse universe
deb http://
deb http://
## This sources.list was manually created as the old one was somehow deleted
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. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://
deb-src http://
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
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://
deb-src http://
deb http://
deb-src 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://
universe multiverse
# deb-src http://
restricted universe multiverse
## 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-src http://
deb http://
deb-src http://
deb http://
deb http://
deb http://
deb http://
Revision history for this message
|
#3 |
press ALT F2 and the type "nautilus /etc/apt" a window will open inside that you will find a file called sources.list, take a backup of the file by copying it to another safe location. now press ALT F2 again and type into it "gksudo gedit /etc/apt/
"deb http://
multiverse universe"
once you find the line remove the newline character after "main" so that now it becomes
"deb http://
save it and try again
Revision history for this message
|
#4 |
1) Launch the Run dialog: ALT-F2
2) Type "gksudo gedit /etc/apt/
3) Under "Edit --> Preferences" click on "Display line numbers"
4) Go to the line 46 and cut the "multiverse universe" line and paste it at the end of line 45 (with space)
5) You may need to do the same on line 34
Save it and try again.
It is interesting how this thing happened though!
Revision history for this message
|
#5 |
Try both options and at first I said that "deb
http://
multiverse" NOT FOUND so I can not make any changes.
In another option, the line 46 says nothing about multiverse universe,
just says:
deb http://
could not make any changes to please can you give other option thank
Revision history for this message
|
#6 |
The line with the error is another one:
In line # 46
deb http://
there are some unprintable characters between "deb" and "http://"
So the solution would be:
press ALT F2 and type into it "gksudo gedit /etc/apt/
In the editor window that opens please locate the line with 'sevenmachines' and remove the whole line and insert (by copy and paste)
deb http://
Save and close the changes.
Revision history for this message
|
#7 |
so Thank :
Manfred Hampl: but the line 46 is that some:deb
http://
have to be replace is some> so replace anyway and give some error E: line
46
Revision history for this message
|
#8 |
The problem is that there apparently are some strange characters in that line between the letters deb and the letters http: that are not displayed on the screen
My idea was that you edit your sources.list and remove that line completely, and then copy the line from this comment and paste it in again - even if it looks completely the same.
This text below should be ok:
deb http://
You might also think of just removing the line from your sources.list - are you sure that you need it? Do you need flashplugin64-
Revision history for this message
|
#9 |
i asked you to search for "deb http://
multiverse universe" and not "deb
http://
multiverse"
please use copy paste instead of typing the whole thing, could you upload the sources.list file
Revision history for this message
|
#10 |
Thanks arjun, that solved my question.
Revision history for this message
|
#11 |
Thanks to everyone for all the help.
In truth I am learning from you all
Revision history for this message
|
#12 |
I also suggest you review your sources.list file. Its a complete mess. You have jauny, karmic and lucid all mentioned in the same file.
Can you give the output of:
lsb_release -a
Thanks