PDA

View Full Version : Software Center Crash



Wulfcaen
November 6th, 2012, 08:30 PM
Dear Sentients,

I'm experiencing the exact same problem as the above poster. Seeing as this thread doesn't look resolved, I will post my own details here to reopen this issue. I have recently installed Ubuntu 12.04, I formatted the hard drive completely; so it should be a fresh installation. When I open Ubuntu Software Center in terminal I receive this code:

wulfcaen@HopePatience:~$ software-center
2012-11-06 13:17:38,678 - softwarecenter.ui.gtk3.app - INFO - setting up proxy 'None'
2012-11-06 13:17:38,685 - softwarecenter.db.database - INFO - open() database: path=None use_axi=True use_agent=True
2012-11-06 13:17:39,164 - softwarecenter.backend.reviews - WARNING - Could not get usefulness from server, no username in config file
2012-11-06 13:17:39,349 - softwarecenter.ui.gtk3.app - INFO - show_available_packages: search_text is '', app is None.
2012-11-06 13:17:39,824 - softwarecenter.db.pkginfo_impl.aptcache - INFO - aptcache.open()
Traceback (most recent call last):
File "/usr/share/software-center/softwarecenter/db/pkginfo_impl/aptcache.py", line 243, in open
self._cache = apt.Cache(GtkMainIterationProgress())
File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 102, in __init__
self.open(progress)
File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 149, in open
self._list.read_main_list()
SystemError: E:Malformed line 59 in source list /etc/apt/sources.list (dist parse)
2012-11-06 13:17:41,712 - softwarecenter.db.enquire - ERROR - _get_estimate_nr_apps_and_nr_pkgs failed
Traceback (most recent call last):
File "/usr/share/software-center/softwarecenter/db/enquire.py", line 115, in _get_estimate_nr_apps_and_nr_pkgs
tmp_matches = enquire.get_mset(0, len(self.db), None, xfilter)
File "/usr/share/software-center/softwarecenter/db/appfilter.py", line 89, in __call__
if (not pkgname in self.cache and
File "/usr/share/software-center/softwarecenter/db/pkginfo_impl/aptcache.py", line 263, in __contains__
return self._cache.__contains__(k)
AttributeError: 'NoneType' object has no attribute '__contains__'
Traceback (most recent call last):
File "/usr/bin/software-center", line 176, in <module>
app.run(args)
File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 1422, in run
self.show_available_packages(args)
File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 1352, in show_available_packages
self.view_manager.set_active_view(ViewPages.AVAILA BLE)
File "/usr/share/software-center/softwarecenter/ui/gtk3/session/viewmanager.py", line 154, in set_active_view
view_widget.init_view()
File "/usr/share/software-center/softwarecenter/ui/gtk3/panes/availablepane.py", line 171, in init_view
self.apps_filter)
File "/usr/share/software-center/softwarecenter/ui/gtk3/views/catview_gtk.py", line 238, in __init__
self.build(desktopdir)
File "/usr/share/software-center/softwarecenter/ui/gtk3/views/catview_gtk.py", line 511, in build
self._build_homepage_view()
File "/usr/share/software-center/softwarecenter/ui/gtk3/views/catview_gtk.py", line 271, in _build_homepage_view
self._append_whats_new()
File "/usr/share/software-center/softwarecenter/ui/gtk3/views/catview_gtk.py", line 450, in _append_whats_new
whats_new_cat = self._update_whats_new_content()
File "/usr/share/software-center/softwarecenter/ui/gtk3/views/catview_gtk.py", line 439, in _update_whats_new_content
docs = whats_new_cat.get_documents(self.db)
File "/usr/share/software-center/softwarecenter/db/categories.py", line 124, in get_documents
nonblocking_load=False)
File "/usr/share/software-center/softwarecenter/db/enquire.py", line 317, in set_query
self._blocking_perform_search()
File "/usr/share/software-center/softwarecenter/db/enquire.py", line 212, in _blocking_perform_search
matches = enquire.get_mset(0, self.limit, None, xfilter)
File "/usr/share/software-center/softwarecenter/db/appfilter.py", line 89, in __call__
if (not pkgname in self.cache and
File "/usr/share/software-center/softwarecenter/db/pkginfo_impl/aptcache.py", line 263, in __contains__
return self._cache.__contains__(k)
AttributeError: 'NoneType' object has no attribute '__contains__'


When I type in the 'sudo apt-get update' command, I receive this:

wulfcaen@HopePatience:~$ sudo apt-get update
E: Malformed line 59 in source list /etc/apt/sources.list (dist parse)
E: The list of sources could not be read.

I have, since receiving this error, attempted to open the 'sources.list' file and edit the lines 59 and 60, but the solution that I read told me to add 'precise' and 'Ubuntu' to the lines of code, but they were already there. I attempted to remove them, saved the 'sources.list' file, and ran the 'sudo apt-get update' command, but I received the same error. I went back and edited the 'sources.list' files back to it's original settings, also no luck.

Any takers?

oldos2er
November 7th, 2012, 12:37 AM
Post moved to its own thread.

Can you post the output from
cat /etc/apt/sources.list

ibjsb4
November 7th, 2012, 12:51 AM
Could you make that

cat -n /etc/apt/sources.list

Just being lazy :)

Wulfcaen
November 7th, 2012, 11:42 PM
In response to old's query, this is the output code:

wulfcaen@HopePatience:~$ cat /etc/apt/sources.list
# deb cdrom:[Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1)]/ dists/precise/main/binary-i386/

# deb cdrom:[Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1)]/ dists/precise/restricted/binary-i386/
# deb cdrom:[Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1)]/ precise main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ precise main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ precise main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ precise universe
deb-src http://us.archive.ubuntu.com/ubuntu/ precise universe
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-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.
deb http://us.archive.ubuntu.com/ubuntu/ precise multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise multiverse
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates multiverse

## 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/ precise-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu precise-security main restricted
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe
deb http://security.ubuntu.com/ubuntu precise-security multiverse
deb-src http://security.ubuntu.com/ubuntu precise-security 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 precise partner
# deb-src http://archive.canonical.com/Ubuntu precise partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu precise main
deb http://archive.canonical.com/precise partner
deb-src http://archive.canonical.com/precise partner
deb-src http://extras.ubuntu.com/ubuntu precise main


And in response to ibjsb's query:

wulfcaen@HopePatience:~$ cat -n /etc/apt/sources.list
1 # deb cdrom:[Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1)]/ dists/precise/main/binary-i386/
2
3 # deb cdrom:[Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1)]/ dists/precise/restricted/binary-i386/
4 # deb cdrom:[Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1)]/ precise main restricted
5
6 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
7 # newer versions of the distribution.
8 deb http://us.archive.ubuntu.com/ubuntu/ precise main restricted
9 deb-src http://us.archive.ubuntu.com/ubuntu/ precise main restricted
10
11 ## Major bug fix updates produced after the final release of the
12 ## distribution.
13 deb http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted
14 deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted
15
16 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
17 ## team. Also, please note that software in universe WILL NOT receive any
18 ## review or updates from the Ubuntu security team.
19 deb http://us.archive.ubuntu.com/ubuntu/ precise universe
20 deb-src http://us.archive.ubuntu.com/ubuntu/ precise universe
21 deb http://us.archive.ubuntu.com/ubuntu/ precise-updates universe
22 deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates universe
23
24 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
25 ## team, and may not be under a free licence. Please satisfy yourself as to
26 ## your rights to use the software. Also, please note that software in
27 ## multiverse WILL NOT receive any review or updates from the Ubuntu
28 ## security team.
29 deb http://us.archive.ubuntu.com/ubuntu/ precise multiverse
30 deb-src http://us.archive.ubuntu.com/ubuntu/ precise multiverse
31 deb http://us.archive.ubuntu.com/ubuntu/ precise-updates multiverse
32 deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates multiverse
33
34 ## N.B. software from this repository may not have been tested as
35 ## extensively as that contained in the main release, although it includes
36 ## newer versions of some applications which may provide useful features.
37 ## Also, please note that software in backports WILL NOT receive any review
38 ## or updates from the Ubuntu security team.
39 deb http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
40 deb-src http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
41
42 deb http://security.ubuntu.com/ubuntu precise-security main restricted
43 deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
44 deb http://security.ubuntu.com/ubuntu precise-security universe
45 deb-src http://security.ubuntu.com/ubuntu precise-security universe
46 deb http://security.ubuntu.com/ubuntu precise-security multiverse
47 deb-src http://security.ubuntu.com/ubuntu precise-security multiverse
48
49 ## Uncomment the following two lines to add software from Canonical's
50 ## 'partner' repository.
51 ## This software is not part of Ubuntu, but is offered by Canonical and the
52 ## respective vendors as a service to Ubuntu users.
53 # deb http://archive.canonical.com/Ubuntu precise partner
54 # deb-src http://archive.canonical.com/Ubuntu precise partner
55
56 ## This software is not part of Ubuntu, but is offered by third-party
57 ## developers who want to ship their latest software.
58 deb http://extras.ubuntu.com/ubuntu precise main
59 deb http://archive.canonical.com/precise partner
60 deb-src http://archive.canonical.com/precise partner
61 deb-src http://extras.ubuntu.com/ubuntu precise main

I would like to thank you gentlemen for the time you are expending in helping me resolve this quandary.

May these words reach you in good health and spirits.

oldos2er
November 8th, 2012, 12:05 AM
59 deb http://archive.canonical.com/precise partner
60 deb-src http://archive.canonical.com/precise partner

Should be

deb http://archive.canonical.com/ubuntu precise partner
deb-src http://archive.canonical.com/ubuntu precise partner

Wulfcaen
November 8th, 2012, 09:24 AM
Thank you kindly, that cleared up my issue. I had to edit the source.list lines 61 and 62 afterwards in the same fashion as you suggested I edit lines 59 and 60; but the result was successful.

oldos2er
November 8th, 2012, 07:10 PM
Great! Would you please mark the thread as 'Solved' under Thread Tools? Thanks.