Update and ubuntu software center not opening

Asked by Saitama

I am unable to update ubuntu 10.10 and unable to open software center..
The following error comes out.
"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:Malformed line 1 in source list /etc/apt/sources.list.d/ubuntu-tweak-stable.list (dist parse)'"
Even Ubuntu tweak software givin error
"Traceback (most recent call last):
  File "/usr/bin/ubuntu-tweak", line 110, in <module>
    launcher = TweakLauncher(session_bus, MainWindow())
  File "/usr/lib/python2.6/dist-packages/ubuntutweak/mainwindow.py", line 234, in __init__
    proxy.enable_stable_source()
  File "/usr/lib/python2.6/dist-packages/ubuntutweak/policykit/dbusproxy.py", line 33, in __getattr__
    return self.__proxy.get_dbus_method(name, dbus_interface = self.INTERFACE)
AttributeError: 'NoneType' object has no attribute 'get_dbus_method'
"
please help

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Can you give the output of:

gedit /etc/apt/sources.list.d/ubuntu-tweak-stable.list

Thanks

Revision history for this message
Saitama (saitama01-deactivatedaccount) said :
#2

@actionparsnip: the output of:

gedit /etc/apt/sources.list.d/ubuntu-tweak-stable.list:-
"
deb http://ppa.launchpad.net/tualatrix/ppa/ubuntu main #Ubuntu Tweak Stable Source
"
opened in gedit text editor

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

ok then run:

gksudo gedit /etc/apt/sources.list.d/ubuntu-tweak-stable.list

Chnage:
deb http://ppa.launchpad.net/tualatrix/ppa/ubuntu main #Ubuntu Tweak Stable Source
To:
deb http://ppa.launchpad.net/tualatrix/ppa/ubuntu maverick main #Ubuntu Tweak Stable Source

Save the new file, close gedit and run:

sudo apt-get update

Should be smooth

Can you help with this problem?

Provide an answer of your own, or ask Saitama for more information if necessary.

To post a message you must log in.