Make it go away

Asked by Enigma

I think that I need to ask my question in parts.
I tried to install Automatix2 on the laptop, and now I have this error message:

A unresolvable problem occurred while initializing the package information.

Please report this bug against the 'update-manager' package and include the following error message:

'E:Malformed line 74 in source list /etc/apt/sources.list (dist), E:The list of sources could not be read.'

I don't care to have Automatix2 on the laptop, so it's not a matter of keeping it. It's the message I want to go away so that I can attempt to fix my other problems.

Anyhow, is there a way to make this message disappear forever...so far I only know to reinstall 7.10 every time I mess up, and that is getting boring.

Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
W. Prins
Solved:
Last query:
Last reply:
Revision history for this message
Sidarth Dasari (sirsid) said :
#1

try typing apt-get update and see if apt-get will fix it

Revision history for this message
Enigma (enigmaaphrodite) said :
#2

when I type that this is the message that comes up in the terminal

E: Malformed line 74 in source list /etc/apt/sources.list (dist)

Revision history for this message
W. Prins (wprins) said :
#3

Ok, the message is saying that line 74 in the file /etc/sources.list is somehow incorrect/broken. In order for us to help you, please therefore open that file and copy its contents here, so we can see what the problem is.

To easily open the file, press alt-f2, then type: gedit /etc/apt/sources.list
Then press enter. The file will open in a text editor from where you can copy and past/post it here.

Optional: In the editor, click Edit, then Preferences, then on the "View" tab tick "Display line numbers." Click Close. Now find line 74, and post only that line (or perhaps the few lines surrounding/including 74), instead of the whole file.

Revision history for this message
Christoph Langner (chrissss) said :
#4

> when I type that this is the message that comes up in the terminal

The error message is pretty clear. Edit your /etc/apt/sources.list and take a look at line 74. I guess this is the package source you added to install automatix.

> Anyhow, is there a way to make this message disappear forever...so far I only know to reinstall 7.10 every time I mess up, and that is getting boring.

That's not a very clever thing. It's pretty hard to screw up so hard that you've got to reinstall a linux. Ask questions at ubuntuforums.org, or here at launchpad. But to delete everything? That's a typical "windows" soultion ;)

> I tried to install Automatix2 on the laptop, and now I have this error message:

Why automatix? Automatix way very buggy and caused lot of problems. Keep away from "with this tool you can do 1000 things super easy" tools and stick to the soltions ubuntu offers out of the box.

Revision history for this message
Enigma (enigmaaphrodite) said :
#5

ok, here is the full page:

deb cdrom:[Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/ gutsy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

# Line commented out by installer because it failed to verify:
#deb http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted
# Line commented out by installer because it failed to verify:
#deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
# Line commented out by installer because it failed to verify:
#deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted
# Line commented out by installer because it failed to verify:
#deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted

## 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.
# Line commented out by installer because it failed to verify:
#deb http://us.archive.ubuntu.com/ubuntu/ gutsy universe
# Line commented out by installer because it failed to verify:
#deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy universe
# Line commented out by installer because it failed to verify:
#deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe
# Line commented out by installer because it failed to verify:
#deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-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.
# Line commented out by installer because it failed to verify:
#deb http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse
# Line commented out by installer because it failed to verify:
#deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse
# Line commented out by installer because it failed to verify:
#deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse
# Line commented out by installer because it failed to verify:
#deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-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.
# deb http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main 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://archive.canonical.com/ubuntu gutsy partner
# deb-src http://archive.canonical.com/ubuntu gutsy partner

# Line commented out by installer because it failed to verify:
#deb http://security.ubuntu.com/ubuntu gutsy-security main restricted
# Line commented out by installer because it failed to verify:
#deb-src http://security.ubuntu.com/ubuntu gutsy-security main restricted
# Line commented out by installer because it failed to verify:
#deb http://security.ubuntu.com/ubuntu gutsy-security universe
# Line commented out by installer because it failed to verify:
#deb-src http://security.ubuntu.com/ubuntu gutsy-security universe
# Line commented out by installer because it failed to verify:
#deb http://security.ubuntu.com/ubuntu gutsy-security multiverse
# Line commented out by installer because it failed to verify:
#deb-src http://security.ubuntu.com/ubuntu gutsy-security multiverse
deb http://www.getautomatix.com/keys/automatix2.key
gpg --import automatix2.key
deb http://www.getautomatix.com/apt gutsy main

If you look up 3 lines, these are the changes I have made:

The first time it came up that line read:
wget http://www.getautomatix.com/keys/automatix2.key

Someone said to take out the wget, so I did so it read:
http://www.getautomatix.com/keys/automatix2.key

and I got another message. Then someone said to add "deb", and I have, but the message in the package manager says:

E: Malformed line 74 in source list /etc/apt/sources.list (dist)
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
Enigma (enigmaaphrodite) said :
#6

My whole reason for trying to install Automatix was because I couldn't get Azureus to download, and I read on here somewhere that it may help to download Automatix first. So I'm not partial to the program, it was a means to get the program I wanted.

Revision history for this message
Best W. Prins (wprins) said :
#7

OK, the last 3 lines are causing your problem. They are not properly formed Aptitude source definitions. It looks like you put some commands for fetching the gpg authentication keys into the apt source file at some point, instead of entering them at the command prompt in the terminal. Anyway, I suggest just removing those lines, so, press alt-f2, then enter the following command:

gksudo gedit /etc/apt/sources.list

This will open up the file in an editor with rights to save it. Delete only the last 3 lines, e.g:

deb http://www.getautomatix.com/keys/automatix2.key
gpg --import automatix2.key
deb http://www.getautomatix.com/apt gutsy main

Save and close the file. Now Synaptic/Aptitude should work again, and the error should be gone. If you're still having problems with Azureus, then I suggest you open a seperate question for that, and/or post on the Ubuntu community forums.

Hope that solves your immediate problem. :-)

Revision history for this message
W. Prins (wprins) said :
#8

Aside: To be clear, in your Automatix installation, the commands:

wget http://www.getautomatix.com/keys/automatix2.key

followed by

gpg --import automatix2.key

Needs to be entered in a terminal at the command prompt, not added to the sources.lst file as you did. ONLY the last line (deb http://www.getautomatix.com/apt gutsy main) needed to be added to the sources list.

Just thought I'd clarify that as well.

Revision history for this message
Enigma (enigmaaphrodite) said :
#9

Thank you everyone...this worked!!!!

Revision history for this message
Enigma (enigmaaphrodite) said :
#10

Thanks ByteJuggler, that solved my question.

Revision history for this message
kiwiadam2 (kiwiadam2) said :
#11

In the future DO NOT USE AUTOMATIX!!!!!!!!!!!!!!!!