apt - How do I remove a malformed line from my sources.list? - Ask Ubuntu
i have unistalled , reinstalled ubuntu software center per info found in similar thread , got same response line 91 or that.
i tried upload screen shot since i'm new won't allow me to. can not figure out how cut , paste have hand type error screen says, both when attempt open software center , nothing happens, when try enter commands terminal uninstall, reinstall, whatever same following:
could not intitialize package information unresolvable problem occured while initializing package information please report t:his bug against 'update-manager' package , include following error message: 'e: malformed line 91 in source list/etc/apt/sources.list (dist parse) e: list of sources not read., e: package list of status file not parsed or opened.
how report bugs? can done this. have searched , says leads me same line error message.
so, don't know how line 91 in source list; tell says. sorry, i'm new this. need find out how there , fix says. not have re partition hard drive , start scratch, i'm looking forward getting problem solved. need able install new software.
some lines broken in sources.list
file (or *.list
file in sources.list.d/
).
edit file mentioned in error fix broken lines.
to this, run command (press ctrl+alt+t open terminal):
sudo -h gedit /etc/apt/sources.list
if necessary, replace
/etc/apt/sources.list
file name.find lines incorrectly formatted (refer error line number, around point). these examples of correctly formatted lines:
# comment, marked line starting '#' deb http://site.example.com/debian distribution component1 component2 component3 deb-src http://site.example.com/debian distribution component1 component2 component3
the url,
distribution
, components different. not have have 3 components.anything doesn't fit format incorrect.
save file , quit text editor. run command in terminal window:
sudo apt-get update
assuming there no errors, problem fixed. should able run sofware center.
however, while problems software center can solved reinstalling software-center
package, cannot, it's possible original problem remain. if case, can post new question it.
Comments
Post a Comment