PDA

View Full Version : [ubuntu] Update Manager - Could not initialize the package information



Ramot
February 9th, 2011, 01:36 PM
Hi all,

My Update Manager and Synaptic Package Manager are showing me the following massage when I try to open them:


Could not initialize the package information
An unresolvable problem occurred while initializing the package information.
Please report this bug against the 'update-manager' package and include the following error message:
'E:Type 'n' is not known on line 2 in source list /etc/apt/sources.list.d/ubuntu-wine-ppa-lucid.list, E:The list of sources could not be read.'

Any idea how to solve this issue?

zvacet
February 9th, 2011, 07:05 PM
In terminal type


gedit /etc/apt/sources.list.d/ubuntu-wine-ppa-lucid.list

Copy and paste output here.

Ramot
February 9th, 2011, 09:56 PM
This is the output:
deb http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu lucid main
n

zvacet
February 10th, 2011, 12:18 AM
It should be


deb http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu lucid main

So type in terminal


sudo gedit /etc/apt/sources.list.d/ubuntu-wine-ppa-lucid.list

and delete n.Save and close file.


sudo apt-get update && sudo apt-get upgrade

Ramot
February 10th, 2011, 10:17 AM
So simple. So nice. So grateful.
Thnx zvacet, it is working perfect now.

vmguru007
June 15th, 2011, 09:12 PM
Hi,

In case for anyone the above fix did not work, I have found an article that helped me fix the same problem a bit differently. It can be found at:

http://www.linux2aix.com/linux/ubuntu/ubuntu-1104-update-manager-could-not-initialize-the-package-information.html

Please confirm the error exactly match the error screenshot on the article before proceeding with the fix, as mine was an exact match.

Enjoy,
Erick
http://www.TSMGuru.com

adityaghante
October 6th, 2011, 09:28 PM
gedit /etc/apt/sources.list.d/ubuntu-wine-ppa-lucid.list

is not working for me it just opens up a blank text editor