31 hours ago
I have unistalled and reinstalled the Ubuntu Software Center as per info I found in a similar thread and I got the same response about line 91 or something like that.
I just tried to upload a screen shot but since I'm new it won't allow me to. I also can not figure out how to cut and paste anything so I have to hand type what the error screen says, both when I attempt to open the software center and nothing happens, when I try to enter commands into the terminal to uninstall, reinstall, whatever I get the same following:
COULD NOT INTITIALIZE THE PACKAGE INFORMATION An unresolvable problem occured while initializing the package information Please report t:his bug against the 'update-manager' package and include the following error message: 'E: Malformed line 91 in source list/etc/apt/sources.list (dist parse) E: The list of sources could not be read., E: The package list of status file could not be parsed or opened.
How do I report bugs? What can be done about this. I have searched and everything everyone says to do leads me back to the same line error message.
So, I don't know how to get to line 91 in the source list; to tell you what it says. Sorry, I'm really new to this. That is what I need is to find out how to get there and fix what it says. I would really like to NOT have to re partition my hard drive and start from scratch, so I'm really looking forward to getting this problem solved. I need to be able to install new software.
13 hours ago
Some lines are broken in your sources.list file (or another *.list file in sources.list.d/).
sources.list
*.list
sources.list.d/
Edit the file mentioned in the error to fix the broken lines.
To do this, run this command (press Ctrl+Alt+T to open a Terminal):
sudo -H gedit /etc/apt/sources.list
Or, instead of Gedit (which not all Ubuntu systems have), you might prefer to open the file an a terminal-based text editor:
sudoedit /etc/apt/sources.list
If necessary, replace /etc/apt/sources.list with another file name, i.e., the path to some file inside /etc/apt/sources.list.d/.
/etc/apt/sources.list
/etc/apt/sources.list.d/
Find the lines which are incorrectly formatted (refer to the error for a line number, then look around that point). These are examples of correctly formatted lines:
# Comment, marked by a line starting with '#' deb http://site.example.com/debian distribution component1 component2 component3 deb-src http://site.example.com/debian distribution component1 component2 component3
The URL, distribution and components will be different. It does not necessarily have to have 3 components.
distribution
Anything which doesn't fit this format is incorrect.
Save the file and quit the text editor. Then run this command in a Terminal window:
sudo apt-get update
Assuming there are no errors, the problem is now fixed. You should be able to run the Sofware Center.
However, while some problems with the Software Center can be solved by reinstalling the software-center package, most cannot, so it's possible your original problem will remain. If that is the case, you can post a new question to get help with it.
software-center
12 hours ago
A workaround for this problem can be building the sources.list entry from scratch. For trusty:
deb http://archive.ubuntu.com/ubuntu precise main universe restricted multiverse deb-src http://archive.ubuntu.com/ubuntu precise universe main multiverse restricted deb http://security.ubuntu.com/ubuntu/ precise-security universe main multiverse restricted deb http://archive.ubuntu.com/ubuntu precise-updates universe main multiverse restricted deb http://archive.ubuntu.com/ubuntu precise-backports universe main multiverse restricted # deb http://archive.canonical.com/ubuntu precise partner # deb-src http://archive.canonical.com/ubuntu precise partner # deb http://extras.ubuntu.com/ubuntu precise main # deb-src http://extras.ubuntu.com/ubuntu precise main
Copy the above content (in gray box) and open the sources.list file as root.
Typing sudo -H gedit /etc/apt/sources.list this in a terminal and hitting Enter will do the job.
Then paste the copied content in the sources.list - note you probably will need to replace precise with the codename representing your Ubuntu version (lsb_release --codename) - e.g. trusty for 14.04. Then save and close gedit.
precise
lsb_release --codename
trusty
Then do sudo apt-get update and you will see that the repository list is updated.
Explanation: Here we are completely replacing the content with another sources.list file with repository entry from Main Server. If you want to use your local server for sources.list see the method below.
ources.list
Go to the Ubuntu sources list generator site.
You are done. (I hope this will help.)
30 hours ago
As you can see from the error, it says that your sources.list file has a wrong entry. This wrong entry could not be parsed. This error is not related to Software Center as such but mostly to do with apt(The package manager)
The way to solve this would be to fix the malformed line 91 entry.
91
If you cannot understand what is wrong with line 91, please post line 91 and I will help you out
6 hours ago
Please paste file /etc/apt/sources.list so we can troubleshoot this problem for you. See this short tutorial answer for how to do that:
How can I easily share the output of a command or a text file with others?
This can sometimes be a very easy fix, but you must backup sources.list first since it's a critical file.
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
sudo sed -i -e '68d' /etc/apt/sources.list
If you see no errors appear when you try step 4, the problem is hopefully fixed. You can exit the terminal and go back to Software Center/Update Manager and it should work.
If there is still a problem, you can restore the original file from the terminal with sudo cp /etc/apt/sources.list.backup /etc/apt/sources.list. In that case, please paste the problematic lines or even the entire file to a pastebin and then we can help out further.
sudo cp /etc/apt/sources.list.backup /etc/apt/sources.list
16 hours ago
The file /etc/apt/sources.list contains the URLs of webservers and location of other sources form (e.g. cds), from which you retrieve your software and updates. It basically tells Ubuntu where to look for new Software and updates to already installed programs. The error message you got means, that somehow the file got compromised. Without knowing what the content of your file is, it is hard to know what exactly is wrong with it. So you should post the output of sudo more /etc/apt/sources.list for us to help you better.
sudo more /etc/apt/sources.list
If the file is messed up beyond repair, you can use the Ubuntu Source List Generator to generate a sources.list anew. But you should backup your old one beforehand. Also this will cause you to lose all changes you have made for your Software Sources, e.g. in Sofware Center.
The better way to fix this is letting us see whats wrong with your sources.list
I believe the file you posted should look like this (note the last to lines and the missing /etc/apt/sources.list in the end):
# /etc/apt/sources.list deb http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse deb http://security.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse deb http://archive.canonical.com/ubuntu partner deb-src http://archive.canonical.com/ubuntu partner
24 hours ago
Please try to edit your sources.list file by dropping sudo gedit /etc/apt/sources.list in a terminal (your password may be asked), after which you will have the options to enable "Line Numbers" in the Menu Edit/Preferences of gEdit and clicking the "Display line numbers" checkbox, then manually go to the Line in your error e.g. 91 or by using "Search/Go to line" (Ctrl+I does the trick).
sudo gedit /etc/apt/sources.list
At the beginning of the Line 91 drop two # symbols (##) to comment on that line and this way remove it from the update process (you can also delete that line at your own risk, I suggest you a backup).
##
When you finish, save the file and close it down. Then open a terminal and run sudo apt-get update and see if the error still appears. If not, then try opening your update manager.
Somehow it seems that the text in the Line 91 of your sources.list file is corrupted or there is some kind of an error, which means that some software is unable to be installed/updated/upgraded.
By commenting/removing the erroneous line the software won't be installed (if not already) or won't be updated/upgraded if that's what you try. Of which I suggest you to check where is that line coming from (which software requires it) and do the proper modifications as required in order to everything run fine.
If you face any malformed line error like below, i strongly recommend you to comment out(adding # before the line) the line rather than deleting it in /etc/apt/sources.list file.
#
E: Malformed line 91 in source list /etc/apt/sources.list (dist parse)
From the above error, the line number 91 in /etc/apt/sources.list file is corrupted. To comment out the line number 91, you have to run the below command on terminal.
sudo sed -i '91s/\(.*\)/#\1/' /etc/apt/sources.list
91 in the above code represents the line number. Replace the number 91 in the above code with your's if you got any malformed line error.
In some cases malformed line error will also occur in a list file that was actually present inside /etc/apt/sources.list.d directory. For example,
/etc/apt/sources.list.d
E: Malformed line 1 in source list /etc/apt/sources.list.d/google.list (dist parse)
In this case i strongly recommend you to delete the google.list file by running sudo rm /etc/apt/sources.list.d/google.list and then add the corresponding PPA again.
google.list
sudo rm /etc/apt/sources.list.d/google.list
Finally update all the repositories by running sudo apt-get update command on terminal. Now the error won't appears.
You have to delete the last line of this file (not the file itself, of course):
Your sources.list file has to look something like this:
# /etc/apt/sources.list deb http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse deb http://security.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse deb http://archive.canonical.com/ partner deb-src http://archive.canonical.com/ partner
Of course, just replacing your sources.list file with that text could be a very bad thing, especially if it looked quite different before. The key point is that each line starts with deb or deb-src (except for comments, which start with #).
deb
deb-src
Open a terminal using CTRL+Alt+T and execute the below command to remove line 6, which is not correct form of repository source line, thus apt giving you an error about malformed line.
WARNING: Don't execute this command without reading the question first, this command will delete the line 68 of /etc/apt/sources.list file. Check whether your problem is similar and, even if it is, replace 68 with the number of the line that you need to delete.
68
sudo sed -i.old '68d' /etc/apt/sources.list
This command will delete the line using sed in place. It makes a backup called /etc/apt/sources.list.old. If you don't want the backup then you can use plain -i instead of -i.old.
sed
/etc/apt/sources.list.old
-i
-i.old
Alternatively, you can manually delete the line with Gedit.
gksu gedit /etc/apt/sources.list
gksu
sudo -H gedit
The correct format of repository source line is:
<type of repository> <location i.e URI> <dist-name> <components i.e main, universe>
For example:
deb http://archive.ubuntu.com/ubuntu precise main
Type: deb is the type of repo, it indicates it is a binary repository, not a source repository, which has type deb-scr.
deb-scr
Location: http://archive.ubuntu.com/ubuntu location of the repository
http://archive.ubuntu.com/ubuntu
Dist-name: precise is the distribution name of Ubuntu release. for Ubuntu 12.04 it is precise, 11.10 is oneiric
oneiric
Component: main is indicating the component of repository. Ubuntu repository are divided into four parts.
main
See this page for more information.
You can now understand that /etc/apt/sources.list is not a repository source line and hence apt-get complaining about it.
apt-get
For more information about Adding and Removing repositories and the format of repository source line, See this Ubuntu Help page.
See the Sed manual page here.