Software Center wont run

Bug #677924 reported by angel koilov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: software-center

i updated ubuntu from 10.04 to 10.10 and then software center wont run.

po_taka@potaka-desktop:~$ software-center
Traceback (most recent call last):
  File "/usr/bin/software-center", line 90, in <module>
    app = SoftwareCenterApp(datadir, xapian_base_path, options, args)
  File "/usr/share/software-center/softwarecenter/app.py", line 149, in __init__
    self.history = get_apt_history()
  File "/usr/share/software-center/softwarecenter/apt/apthistory.py", line 178, in get_apt_history
    apt_history = AptHistory()
  File "/usr/share/software-center/softwarecenter/apt/apthistory.py", line 83, in __init__
    self.rescan()
  File "/usr/share/software-center/softwarecenter/apt/apthistory.py", line 97, in rescan
    cmp=self._mtime_cmp):
  File "/usr/share/software-center/softwarecenter/apt/apthistory.py", line 92, in _mtime_cmp
    return cmp(os.path.getmtime(a), os.path.getmtime(b))
  File "/usr/lib/python2.6/genericpath.py", line 54, in getmtime
    return os.stat(filename).st_mtime
OSError: [Errno 13] Permission denied: '/var/log/apt/history.log.4.gz'
po_taka@potaka-desktop:~$

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: software-center 3.0.5
ProcVersionSignature: Ubuntu 2.6.35-22.35-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic x86_64
NonfreeKernelModules: fglrx
Architecture: amd64
Date: Sat Nov 20 21:25:28 2010
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: software-center

Revision history for this message
angel koilov (angel-koilov) wrote :
Revision history for this message
flipefr (flipefr) wrote :

i usually prefer to make a clean instalation because updates always have problems now or later, so i made a clean installation and don't have any problem with the software center, i can not reproduce this bug but i recomend you to make a clean installation next time or install it again if it possible.

Revision history for this message
Meister-petek (meister-petek) wrote :

I had the same problem, also upgrade from 10.04 and on amd64.
I solved by applying chmod 755 to the /var/log/apt/ directory.

Here the output of an unsuccessful and then successful start:
user@hostname:~$ software-center
Traceback (most recent call last):
  File "/usr/bin/software-center", line 90, in <module>
    app = SoftwareCenterApp(datadir, xapian_base_path, options, args)
  File "/usr/share/software-center/softwarecenter/app.py", line 149, in __init__
    self.history = get_apt_history()
  File "/usr/share/software-center/softwarecenter/apt/apthistory.py", line 178, in get_apt_history
    apt_history = AptHistory()
  File "/usr/share/software-center/softwarecenter/apt/apthistory.py", line 83, in __init__
    self.rescan()
  File "/usr/share/software-center/softwarecenter/apt/apthistory.py", line 97, in rescan
    cmp=self._mtime_cmp):
  File "/usr/share/software-center/softwarecenter/apt/apthistory.py", line 92, in _mtime_cmp
    return cmp(os.path.getmtime(a), os.path.getmtime(b))
  File "/usr/lib/python2.6/genericpath.py", line 54, in getmtime
    return os.stat(filename).st_mtime
OSError: [Errno 13] Permission denied: '/var/log/apt/history.log.3.gz'
user@hostname:~$ software-center
2011-03-03 17:06:00,273 - softwarecenter.fixme - WARNING - logs to the root logger: '('/usr/share/software-center/softwarecenter/view/widgets/mkit_themes.py', 675, 'retrieve')'
2011-03-03 17:06:00,273 - root - WARNING - No styling hints for A-New-Hope were found... using Human hints.
2011-03-03 17:06:03,735 - softwarecenter.app - INFO - software-center-agent finished with status 1

Revision history for this message
angel koilov (angel-koilov) wrote :

tnx Meister-petek it worked for me 2

Revision history for this message
Matthew Paul Thomas (mpt) wrote :

I just tried to reproduce this problem with Ubuntu Software Center 4.1.23.3, but could not. Here's what I did:
1. At a terminal, entered "sudo chmod a-r /var/log/apt/*" (making all the history files unreadable)
2. At a terminal, entered "rm ~/.cache/software-center/apthistory.p" (deleting the history cache too)
3. Launched USC
4. Navigated to the History screen
5. Closed USC
6. Restored the previous state with "sudo chmod a+r /var/log/apt/*"

USC launched fine. The "History" screen was empty, which was what I expected.

If you still experience the problem, you could help get it fixed by providing the error message:
1. close Ubuntu Software Center, if it's open already
2. enter the command "software-center" in a Terminal window
3. trigger the error
4. copy any error output from the Terminal window, and paste it into this bug report.

Thanks.

Changed in software-center (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for software-center (Ubuntu) because there has been no activity for 60 days.]

Changed in software-center (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.