/usr/share/software-center/softwarecenter/db/database.py", line 57, in parse_axi_values_file -> ValueError: too many values to unpack -> cannot open software-center in Ubuntu 12.04.1 LTS (64-bit edition)

Asked by David

I can't get Ubuntu's Software Center to work. I get a python error:

2013-02-13 18:14:26,690 - softwarecenter.ui.gtk3.app - INFO - setting up proxy 'None'
2013-02-13 18:14:26,701 - softwarecenter.db.database - INFO - open() database: path=None use_axi=True use_agent=True
Traceback (most recent call last):
  File "/usr/bin/software-center", line 142, in <module>
    app = SoftwareCenterAppGtk3(datadir, xapian_base_path, options, args)
  File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 277, in __init__
    self.db.open(use_axi=self._use_axi)
  File "/usr/share/software-center/softwarecenter/db/database.py", line 230, in open
    self._axi_values = parse_axi_values_file()
  File "/usr/share/software-center/softwarecenter/db/database.py", line 57, in parse_axi_values_file
    (key, value) = line.split()
ValueError: too many values to unpack

---------------------------------
Additional Information
---------------------------------

/etc/apt/sources.list.d/steam.list

     1 # deb http://repo.steampowered.com/steam/ precise steam
     2 # deb-src http://repo.steampowered.com/steam/ precise steam

/etc/apt/sources.list.d/gwendal-lebihan-dev-cinnamon-stable-precise.list

     1 # deb http://ppa.launchpad.net/gwendal-lebihan-dev/cinnamon-stable/ubuntu precise main
     2 # deb-src http://ppa.launchpad.net/gwendal-lebihan-dev/cinnamon-stable/ubuntu precise main

/etc/apt/sources.list.d/ubuntu-wine-ppa-precise.list

     1 # deb http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu precise main
     2 # deb-src http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu precise main

/etc/apt/sources.list

     1
     2 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
     3 # newer versions of the distribution.
     4 deb http://archive.ubuntu.com/ubuntu precise main restricted multiverse
     5 deb-src http://archive.ubuntu.com/ubuntu precise restricted main multiverse universe #Added by software-properties
     6
     7 ## Major bug fix updates produced after the final release of the
     8 ## distribution.
     9 deb http://archive.ubuntu.com/ubuntu precise-updates main restricted multiverse
    10 deb-src http://archive.ubuntu.com/ubuntu precise-updates restricted main multiverse universe #Added by software-properties
    11
    12 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    13 ## team. Also, please note that software in universe WILL NOT receive any
    14 ## review or updates from the Ubuntu security team.
    15 deb http://archive.ubuntu.com/ubuntu precise universe
    16 deb http://archive.ubuntu.com/ubuntu precise-updates universe
    17
    18 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    19 ## team, and may not be under a free licence. Please satisfy yourself as to
    20 ## your rights to use the software. Also, please note that software in
    21 ## multiverse WILL NOT receive any review or updates from the Ubuntu
    22 ## security team.
    23
    24 ## N.B. software from this repository may not have been tested as
    25 ## extensively as that contained in the main release, although it includes
    26 ## newer versions of some applications which may provide useful features.
    27 ## Also, please note that software in backports WILL NOT receive any review
    28 ## or updates from the Ubuntu security team.
    29 deb http://archive.ubuntu.com/ubuntu precise-backports main restricted universe multiverse
    30 deb-src http://archive.ubuntu.com/ubuntu precise-backports main restricted universe multiverse #Added by software-properties
    31
    32 deb http://archive.ubuntu.com/ubuntu precise-security main restricted multiverse
    33 deb-src http://archive.ubuntu.com/ubuntu precise-security restricted main multiverse universe #Added by software-properties
    34 deb http://archive.ubuntu.com/ubuntu precise-security universe
    35
    36 ## Uncomment the following two lines to add software from Canonical's
    37 ## 'partner' repository.
    38 ## This software is not part of Ubuntu, but is offered by Canonical and the
    39 ## respective vendors as a service to Ubuntu users.
    40 # deb http://archive.canonical.com/ubuntu precise partner
    41 # deb-src http://archive.canonical.com/ubuntu precise partner
    42
    43 ## This software is not part of Ubuntu, but is offered by third-party
    44 ## developers who want to ship their latest software.
    45 # deb http://extras.ubuntu.com/ubuntu precise main
    46 # deb-src http://extras.ubuntu.com/ubuntu precise main
    47
    48 # Medibuntu packages
    49 # deb http://packages.medibuntu.org/ precise free non-free
    50
    51 # Nowcomputing packages
    52 # deb http://1Z7nT63H:<email address hidden>/ubuntu precise multiverse

Question information

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

Ok, what is the issue? Without this, the above detail is useless......

Revision history for this message
David (gooster-snesi) said :
#2

Wow, that was quick! Ok, I'm a first time Linux user and I was just following the steps at https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure because I can't get Ubuntu's Software Center to work. I get a python error:

2013-02-13 18:14:26,690 - softwarecenter.ui.gtk3.app - INFO - setting up proxy 'None'
2013-02-13 18:14:26,701 - softwarecenter.db.database - INFO - open() database: path=None use_axi=True use_agent=True
Traceback (most recent call last):
  File "/usr/bin/software-center", line 142, in <module>
    app = SoftwareCenterAppGtk3(datadir, xapian_base_path, options, args)
  File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 277, in __init__
    self.db.open(use_axi=self._use_axi)
  File "/usr/share/software-center/softwarecenter/db/database.py", line 230, in open
    self._axi_values = parse_axi_values_file()
  File "/usr/share/software-center/softwarecenter/db/database.py", line 57, in parse_axi_values_file
    (key, value) = line.split()
ValueError: too many values to unpack

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

Try:

sudo apt-get --reinstall install software-center

Also, what is the output of:

lsb_release -a; uname -a

In Linux-land, things are quick, not like Windows ;)

Revision history for this message
David (gooster-snesi) said :
#4

From the first command I get the following:

Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/625 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 235291 files and directories currently installed.)
Preparing to replace software-center 5.2.7 (using .../software-center_5.2.7_all.deb) ...
Unpacking replacement software-center ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for man-db ...
Setting up software-center (5.2.7) ...
Traceback (most recent call last):
  File "/usr/sbin/update-software-center", line 38, in <module>
    from softwarecenter.db.update import rebuild_database
  File "/usr/share/software-center/softwarecenter/db/update.py", line 97, in <module>
    axi_values = parse_axi_values_file()
  File "/usr/share/software-center/softwarecenter/db/database.py", line 57, in parse_axi_values_file
    (key, value) = line.split()
ValueError: too many values to unpack

And from the second command I get this:

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.1 LTS
Release: 12.04
Codename: precise
Linux david-stormfly 3.2.0-37-generic #58-Ubuntu SMP Thu Jan 24 15:28:10 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Thanks for the help! Linux land is an exciting place!

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#5

I see that you have not followed all the steps in the procedure yet.

Please execute step 9 in this procedure:

https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure

Post the Terminal output of ALL the commands here:

https://answers.launchpad.net/ubuntu/+source/apt/+question/221798

Revision history for this message
David (gooster-snesi) said :
#6

Again, frikin fast community!

I did in fact go through step 9 and got some python errors as well, but here's the output for each step:

sudo apt-get purge software-center

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  oneconf python-piston-mini-client ubuntu-extras-keyring python-debtagshw
  apt-xapian-index gir1.2-gudev-1.0 app-install-data gir1.2-launchpad-integration-3.0
  software-center-aptdaemon-plugins
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  software-center* ubuntu-desktop*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 4,453 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 235290 files and directories currently installed.)
Removing ubuntu-desktop ...
Removing software-center ...
Purging configuration files for software-center ...
rmdir: failed to remove `/var/cache/software-center/xapian/': No such file or directory
dpkg: error processing software-center (--purge):
 subprocess installed post-removal script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Processing triggers for man-db ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Errors were encountered while processing:
 software-center
E: Sub-process /usr/bin/dpkg returned an error code (1)

çNo output for these commands:

david@david-stormfly:~$ rm -rf ~/.cache/software-center
david@david-stormfly:~$ rm -rf ~/.config/software-center
david@david-stormfly:~$ rm -rf ~/.cache/update-manager-core

I don't know if the update information is of any use, but here it goes:

Ign http://archive.ubuntu.com precise InRelease
Ign http://archive.ubuntu.com precise-updates InRelease
Ign http://archive.ubuntu.com precise-backports InRelease
Ign http://archive.ubuntu.com precise-security InRelease
Hit http://archive.ubuntu.com precise Release.gpg
Get:1 http://archive.ubuntu.com precise-updates Release.gpg [198 B]
Get:2 http://archive.ubuntu.com precise-backports Release.gpg [198 B]
Get:3 http://archive.ubuntu.com precise-security Release.gpg [198 B]
Hit http://archive.ubuntu.com precise Release
Get:4 http://archive.ubuntu.com precise-updates Release [49.6 kB]
Get:5 http://archive.ubuntu.com precise-backports Release [49.6 kB]
Get:6 http://archive.ubuntu.com precise-security Release [49.6 kB]
Hit http://archive.ubuntu.com precise/restricted Sources
Hit http://archive.ubuntu.com precise/main Sources
Hit http://archive.ubuntu.com precise/multiverse Sources
Hit http://archive.ubuntu.com precise/universe Sources
Hit http://archive.ubuntu.com precise/main amd64 Packages
Hit http://archive.ubuntu.com precise/restricted amd64 Packages
Hit http://archive.ubuntu.com precise/multiverse amd64 Packages
Hit http://archive.ubuntu.com precise/universe amd64 Packages
Hit http://archive.ubuntu.com precise/main i386 Packages
Hit http://archive.ubuntu.com precise/restricted i386 Packages
Hit http://archive.ubuntu.com precise/multiverse i386 Packages
Hit http://archive.ubuntu.com precise/universe i386 Packages
Get:7 http://archive.ubuntu.com precise/main TranslationIndex [3,706 B]
Get:8 http://archive.ubuntu.com precise/multiverse TranslationIndex [2,676 B]
Get:9 http://archive.ubuntu.com precise/restricted TranslationIndex [2,596 B]
Get:10 http://archive.ubuntu.com precise/universe TranslationIndex [2,922 B]
Get:11 http://archive.ubuntu.com precise-updates/restricted Sources [5,135 B]
Get:12 http://archive.ubuntu.com precise-updates/main Sources [367 kB]
Get:13 http://archive.ubuntu.com precise-updates/multiverse Sources [4,726 B]
Get:14 http://archive.ubuntu.com precise-updates/universe Sources [78.6 kB]
Get:15 http://archive.ubuntu.com precise-updates/main amd64 Packages [574 kB]
Get:16 http://archive.ubuntu.com precise-updates/restricted amd64 Packages [9,565 B]
Get:17 http://archive.ubuntu.com precise-updates/multiverse amd64 Packages [9,435 B]
Get:18 http://archive.ubuntu.com precise-updates/universe amd64 Packages [180 kB]
Get:19 http://archive.ubuntu.com precise-updates/main i386 Packages [584 kB]
Get:20 http://archive.ubuntu.com precise-updates/restricted i386 Packages [9,503 B]
Get:21 http://archive.ubuntu.com precise-updates/multiverse i386 Packages [10.4 kB]
Get:22 http://archive.ubuntu.com precise-updates/universe i386 Packages [181 kB]
Get:23 http://archive.ubuntu.com precise-updates/main TranslationIndex [3,564 B]
Get:24 http://archive.ubuntu.com precise-updates/multiverse TranslationIndex [2,605 B]
Get:25 http://archive.ubuntu.com precise-updates/restricted TranslationIndex [2,461 B]
Get:26 http://archive.ubuntu.com precise-updates/universe TranslationIndex [2,850 B]
Get:27 http://archive.ubuntu.com precise-backports/main Sources [2,422 B]
Get:28 http://archive.ubuntu.com precise-backports/restricted Sources [14 B]
Get:29 http://archive.ubuntu.com precise-backports/universe Sources [21.8 kB]
Get:30 http://archive.ubuntu.com precise-backports/multiverse Sources [2,669 B]
Get:31 http://archive.ubuntu.com precise-backports/main amd64 Packages [1,945 B]
Get:32 http://archive.ubuntu.com precise-backports/restricted amd64 Packages [14 B]
Get:33 http://archive.ubuntu.com precise-backports/universe amd64 Packages [22.3 kB]
Get:34 http://archive.ubuntu.com precise-backports/multiverse amd64 Packages [2,489 B]
Get:35 http://archive.ubuntu.com precise-backports/main i386 Packages [1,941 B]
Get:36 http://archive.ubuntu.com precise-backports/restricted i386 Packages [14 B]
Get:37 http://archive.ubuntu.com precise-backports/universe i386 Packages [22.4 kB]
Get:38 http://archive.ubuntu.com precise-backports/multiverse i386 Packages [2,504 B]
Get:39 http://archive.ubuntu.com precise-backports/main TranslationIndex [72 B]
Get:40 http://archive.ubuntu.com precise-backports/multiverse TranslationIndex [72 B]
Get:41 http://archive.ubuntu.com precise-backports/restricted TranslationIndex [70 B]
Get:42 http://archive.ubuntu.com precise-backports/universe TranslationIndex [73 B]
Get:43 http://archive.ubuntu.com precise-security/restricted Sources [1,950 B]
Get:44 http://archive.ubuntu.com precise-security/main Sources [63.1 kB]
Get:45 http://archive.ubuntu.com precise-security/multiverse Sources [1,380 B]
Get:46 http://archive.ubuntu.com precise-security/universe Sources [21.4 kB]
Get:47 http://archive.ubuntu.com precise-security/main amd64 Packages [225 kB]
Get:48 http://archive.ubuntu.com precise-security/restricted amd64 Packages [3,969 B]
Get:49 http://archive.ubuntu.com precise-security/multiverse amd64 Packages [2,182 B]
Get:50 http://archive.ubuntu.com precise-security/universe amd64 Packages [66.7 kB]
Get:51 http://archive.ubuntu.com precise-security/main i386 Packages [234 kB]
Get:52 http://archive.ubuntu.com precise-security/restricted i386 Packages [3,968 B]
Get:53 http://archive.ubuntu.com precise-security/multiverse i386 Packages [2,371 B]
Get:54 http://archive.ubuntu.com precise-security/universe i386 Packages [68.3 kB]
Get:55 http://archive.ubuntu.com precise-security/main TranslationIndex [74 B]
Get:56 http://archive.ubuntu.com precise-security/multiverse TranslationIndex [71 B]
Get:57 http://archive.ubuntu.com precise-security/restricted TranslationIndex [71 B]
Get:58 http://archive.ubuntu.com precise-security/universe TranslationIndex [73 B]
Get:59 http://archive.ubuntu.com precise/main Translation-en [726 kB]
Get:60 http://archive.ubuntu.com precise/multiverse Translation-en [93.4 kB]
Get:61 http://archive.ubuntu.com precise/restricted Translation-en [2,395 B]
Get:62 http://archive.ubuntu.com precise/universe Translation-en [3,341 kB]
Get:63 http://archive.ubuntu.com precise-updates/main Translation-en [258 kB]
Get:64 http://archive.ubuntu.com precise-updates/multiverse Translation-en [5,694 B]
Get:65 http://archive.ubuntu.com precise-updates/restricted Translation-en [2,328 B]
Get:66 http://archive.ubuntu.com precise-updates/universe Translation-en [107 kB]
Get:67 http://archive.ubuntu.com precise-backports/main Translation-en [1,244 B]
Get:68 http://archive.ubuntu.com precise-backports/multiverse Translation-en [1,476 B]
Get:69 http://archive.ubuntu.com precise-backports/restricted Translation-en [14 B]
Get:70 http://archive.ubuntu.com precise-backports/universe Translation-en [15.9 kB]
Get:71 http://archive.ubuntu.com precise-security/main Translation-en [110 kB]
Get:72 http://archive.ubuntu.com precise-security/multiverse Translation-en [995 B]
Get:73 http://archive.ubuntu.com precise-security/restricted Translation-en [978 B]
Get:74 http://archive.ubuntu.com precise-security/universe Translation-en [42.5 kB]
Fetched 7,669 kB in 39s (192 kB/s)
Reading package lists... Done

sudo apt-get dist-upgrade

Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  base-files firefox firefox-globalmenu firefox-gnome-support flashplugin-installer
  gnome-control-center gnome-control-center-data gnome-settings-daemon grub-common
  grub-pc grub-pc-bin grub2-common gstreamer0.10-plugins-bad libgnome-control-center1
  libgstreamer-plugins-bad0.10-0 libpciaccess0 libpciaccess0:i386 libunity-core-5.0-5
  linux-generic linux-headers-generic linux-image-generic mountall unity unity-common
  unity-greeter unity-services xserver-xorg-video-intel xserver-xorg-video-qxl
28 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 33.7 MB of archives.
After this operation, 16.4 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://archive.ubuntu.com/ubuntu/ precise-updates/main base-files amd64 6.5ubuntu6.5 [69.8 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ precise-updates/main libpciaccess0 i386 0.12.902-1ubuntu0.1 [22.5 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ precise-updates/main libpciaccess0 amd64 0.12.902-1ubuntu0.1 [20.8 kB]
Get:4 http://archive.ubuntu.com/ubuntu/ precise-updates/main mountall amd64 2.36.4 [67.8 kB]
Get:5 http://archive.ubuntu.com/ubuntu/ precise-updates/universe gstreamer0.10-plugins-bad amd64 0.10.22.3-2ubuntu2.2 [1,740 kB]
Get:6 http://archive.ubuntu.com/ubuntu/ precise-updates/universe libgstreamer-plugins-bad0.10-0 amd64 0.10.22.3-2ubuntu2.2 [148 kB]
Get:7 http://archive.ubuntu.com/ubuntu/ precise-updates/main gnome-control-center-data all 1:3.4.2-0ubuntu0.9 [1,120 kB]
Get:8 http://archive.ubuntu.com/ubuntu/ precise-updates/main gnome-settings-daemon amd64 3.4.2-0ubuntu0.6.2 [482 kB]
Get:9 http://archive.ubuntu.com/ubuntu/ precise-updates/main unity-greeter amd64 0.2.9-0ubuntu1 [87.1 kB]
Get:10 http://archive.ubuntu.com/ubuntu/ precise-updates/main firefox-globalmenu amd64 18.0.2+build1-0ubuntu0.12.04.1 [49.9 kB]
Get:11 http://archive.ubuntu.com/ubuntu/ precise-updates/main firefox amd64 18.0.2+build1-0ubuntu0.12.04.1 [23.9 MB]
Get:12 http://archive.ubuntu.com/ubuntu/ precise-updates/main firefox-gnome-support amd64 18.0.2+build1-0ubuntu0.12.04.1 [9,260 B]
Get:13 http://archive.ubuntu.com/ubuntu/ precise-updates/multiverse flashplugin-installer amd64 11.2.202.262ubuntu0.12.04.1 [7,408 B]
Get:14 http://archive.ubuntu.com/ubuntu/ precise-updates/main libgnome-control-center1 amd64 1:3.4.2-0ubuntu0.9 [78.7 kB]
Get:15 http://archive.ubuntu.com/ubuntu/ precise-updates/main gnome-control-center amd64 1:3.4.2-0ubuntu0.9 [658 kB]
Get:16 http://archive.ubuntu.com/ubuntu/ precise-updates/main grub-pc amd64 1.99-21ubuntu3.9 [140 kB]
Get:17 http://archive.ubuntu.com/ubuntu/ precise-updates/main grub-pc-bin amd64 1.99-21ubuntu3.9 [868 kB]
Get:18 http://archive.ubuntu.com/ubuntu/ precise-updates/main grub2-common amd64 1.99-21ubuntu3.9 [94.2 kB]
Get:19 http://archive.ubuntu.com/ubuntu/ precise-updates/main grub-common amd64 1.99-21ubuntu3.9 [2,067 kB]
Get:20 http://archive.ubuntu.com/ubuntu/ precise-updates/main unity amd64 5.18.0-0ubuntu2 [1,286 kB]
Get:21 http://archive.ubuntu.com/ubuntu/ precise-updates/main unity-common all 5.18.0-0ubuntu2 [146 kB]
Get:22 http://archive.ubuntu.com/ubuntu/ precise-updates/main libunity-core-5.0-5 amd64 5.18.0-0ubuntu2 [235 kB]
Get:23 http://archive.ubuntu.com/ubuntu/ precise-updates/main unity-services amd64 5.18.0-0ubuntu2 [35.0 kB]
Get:24 http://archive.ubuntu.com/ubuntu/ precise-updates/main linux-generic amd64 3.2.0.37.45 [1,720 B]
Get:25 http://archive.ubuntu.com/ubuntu/ precise-updates/main linux-image-generic amd64 3.2.0.37.45 [2,704 B]
Get:26 http://archive.ubuntu.com/ubuntu/ precise-updates/main linux-headers-generic amd64 3.2.0.37.45 [2,694 B]
Get:27 http://archive.ubuntu.com/ubuntu/ precise-updates/main xserver-xorg-video-intel amd64 2:2.17.0-1ubuntu4.3 [238 kB]
Get:28 http://archive.ubuntu.com/ubuntu/ precise-updates/main xserver-xorg-video-qxl amd64 0.0.16-2ubuntu0.1 [66.9 kB]
Fetched 33.7 MB in 5min 35s (100 kB/s)
Preconfiguring packages ...
(Reading database ... 234847 files and directories currently installed.)
Preparing to replace base-files 6.5ubuntu6.4 (using .../base-files_6.5ubuntu6.5_amd64.deb) ...
Unpacking replacement base-files ...
Processing triggers for man-db ...
Processing triggers for install-info ...
Processing triggers for plymouth-theme-ubuntu-text ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.2.0-37-generic
Setting up base-files (6.5ubuntu6.5) ...
Installing new version of config file /etc/issue ...
Installing new version of config file /etc/issue.net ...
Installing new version of config file /etc/lsb-release ...
Installing new version of config file /etc/os-release ...
Processing triggers for plymouth-theme-ubuntu-text ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.2.0-37-generic
(Reading database ... 234847 files and directories currently installed.)
Preparing to replace libpciaccess0:i386 0.12.902-1 (using .../libpciaccess0_0.12.902-1ubuntu0.1_i386.deb) ...
De-configuring libpciaccess0 ...
Unpacking replacement libpciaccess0:i386 ...
Preparing to replace libpciaccess0 0.12.902-1 (using .../libpciaccess0_0.12.902-1ubuntu0.1_amd64.deb) ...
Unpacking replacement libpciaccess0 ...
Setting up libpciaccess0:i386 (0.12.902-1ubuntu0.1) ...
Setting up libpciaccess0 (0.12.902-1ubuntu0.1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
(Reading database ... 234847 files and directories currently installed.)
Preparing to replace mountall 2.36.3 (using .../mountall_2.36.4_amd64.deb) ...
Unpacking replacement mountall ...
Preparing to replace gstreamer0.10-plugins-bad 0.10.22.3-2ubuntu2.1 (using .../gstreamer0.10-plugins-bad_0.10.22.3-2ubuntu2.2_amd64.deb) ...
Unpacking replacement gstreamer0.10-plugins-bad ...
Preparing to replace libgstreamer-plugins-bad0.10-0 0.10.22.3-2ubuntu2.1 (using .../libgstreamer-plugins-bad0.10-0_0.10.22.3-2ubuntu2.2_amd64.deb) ...
Unpacking replacement libgstreamer-plugins-bad0.10-0 ...
Preparing to replace gnome-control-center-data 1:3.4.2-0ubuntu0.8 (using .../gnome-control-center-data_1%3a3.4.2-0ubuntu0.9_all.deb) ...
Unpacking replacement gnome-control-center-data ...
Preparing to replace gnome-settings-daemon 3.4.2-0ubuntu0.6.1 (using .../gnome-settings-daemon_3.4.2-0ubuntu0.6.2_amd64.deb) ...
Unpacking replacement gnome-settings-daemon ...
Preparing to replace unity-greeter 0.2.8-0ubuntu1.4 (using .../unity-greeter_0.2.9-0ubuntu1_amd64.deb) ...
Unpacking replacement unity-greeter ...
Preparing to replace firefox-globalmenu 18.0.1+build1-0ubuntu0.12.04.1 (using .../firefox-globalmenu_18.0.2+build1-0ubuntu0.12.04.1_amd64.deb) ...
Unpacking replacement firefox-globalmenu ...
Preparing to replace firefox 18.0.1+build1-0ubuntu0.12.04.1 (using .../firefox_18.0.2+build1-0ubuntu0.12.04.1_amd64.deb) ...
Unpacking replacement firefox ...
Preparing to replace firefox-gnome-support 18.0.1+build1-0ubuntu0.12.04.1 (using .../firefox-gnome-support_18.0.2+build1-0ubuntu0.12.04.1_amd64.deb) ...
Unpacking replacement firefox-gnome-support ...
Preparing to replace flashplugin-installer 11.2.202.261ubuntu0.12.04.1 (using .../flashplugin-installer_11.2.202.262ubuntu0.12.04.1_amd64.deb) ...
Unpacking replacement flashplugin-installer ...
Preparing to replace libgnome-control-center1 1:3.4.2-0ubuntu0.8 (using .../libgnome-control-center1_1%3a3.4.2-0ubuntu0.9_amd64.deb) ...
Unpacking replacement libgnome-control-center1 ...
Preparing to replace gnome-control-center 1:3.4.2-0ubuntu0.8 (using .../gnome-control-center_1%3a3.4.2-0ubuntu0.9_amd64.deb) ...
Unpacking replacement gnome-control-center ...
Preparing to replace grub-pc 1.99-21ubuntu3.8 (using .../grub-pc_1.99-21ubuntu3.9_amd64.deb) ...
Unpacking replacement grub-pc ...
Preparing to replace grub-pc-bin 1.99-21ubuntu3.8 (using .../grub-pc-bin_1.99-21ubuntu3.9_amd64.deb) ...
Unpacking replacement grub-pc-bin ...
Preparing to replace grub2-common 1.99-21ubuntu3.8 (using .../grub2-common_1.99-21ubuntu3.9_amd64.deb) ...
Unpacking replacement grub2-common ...
Preparing to replace grub-common 1.99-21ubuntu3.8 (using .../grub-common_1.99-21ubuntu3.9_amd64.deb) ...
Unpacking replacement grub-common ...
Preparing to replace unity 5.18.0-0ubuntu1 (using .../unity_5.18.0-0ubuntu2_amd64.deb) ...
Unpacking replacement unity ...
Preparing to replace unity-common 5.18.0-0ubuntu1 (using .../unity-common_5.18.0-0ubuntu2_all.deb) ...
Unpacking replacement unity-common ...
Preparing to replace libunity-core-5.0-5 5.18.0-0ubuntu1 (using .../libunity-core-5.0-5_5.18.0-0ubuntu2_amd64.deb) ...
Unpacking replacement libunity-core-5.0-5 ...
Preparing to replace unity-services 5.18.0-0ubuntu1 (using .../unity-services_5.18.0-0ubuntu2_amd64.deb) ...
Unpacking replacement unity-services ...
Preparing to replace linux-generic 3.2.0.37.44 (using .../linux-generic_3.2.0.37.45_amd64.deb) ...
Unpacking replacement linux-generic ...
Preparing to replace linux-image-generic 3.2.0.37.44 (using .../linux-image-generic_3.2.0.37.45_amd64.deb) ...
Unpacking replacement linux-image-generic ...
Preparing to replace linux-headers-generic 3.2.0.37.44 (using .../linux-headers-generic_3.2.0.37.45_amd64.deb) ...
Unpacking replacement linux-headers-generic ...
Preparing to replace xserver-xorg-video-intel 2:2.17.0-1ubuntu4.2 (using .../xserver-xorg-video-intel_2%3a2.17.0-1ubuntu4.3_amd64.deb) ...
Unpacking replacement xserver-xorg-video-intel ...
Preparing to replace xserver-xorg-video-qxl 0.0.16-2 (using .../xserver-xorg-video-qxl_0.0.16-2ubuntu0.1_amd64.deb) ...
Unpacking replacement xserver-xorg-video-qxl ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for libglib2.0-0:i386 ...
Processing triggers for libglib2.0-0 ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for gconf2 ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for update-notifier-common ...
flashplugin-installer: downloading http://archive.canonical.com/pool/partner/a/adobe-flashplugin/adobe-flashplugin_11.2.202.262.orig.tar.gz
Installing from local file /tmp/tmpn9PwUK.gz
Flash Plugin installed.
Processing triggers for install-info ...
Setting up mountall (2.36.4) ...
Setting up libgstreamer-plugins-bad0.10-0 (0.10.22.3-2ubuntu2.2) ...
Setting up gstreamer0.10-plugins-bad (0.10.22.3-2ubuntu2.2) ...
Setting up gnome-control-center-data (1:3.4.2-0ubuntu0.9) ...
Setting up gnome-settings-daemon (3.4.2-0ubuntu0.6.2) ...
Setting up unity-greeter (0.2.9-0ubuntu1) ...
Setting up firefox (18.0.2+build1-0ubuntu0.12.04.1) ...
Please restart all running instances of firefox, or you will experience problems.
Setting up firefox-globalmenu (18.0.2+build1-0ubuntu0.12.04.1) ...
Setting up firefox-gnome-support (18.0.2+build1-0ubuntu0.12.04.1) ...
Setting up flashplugin-installer (11.2.202.262ubuntu0.12.04.1) ...
Setting up libgnome-control-center1 (1:3.4.2-0ubuntu0.9) ...
Setting up gnome-control-center (1:3.4.2-0ubuntu0.9) ...
Setting up grub-common (1.99-21ubuntu3.9) ...
Setting up grub2-common (1.99-21ubuntu3.9) ...
Setting up grub-pc-bin (1.99-21ubuntu3.9) ...
Setting up grub-pc (1.99-21ubuntu3.9) ...
Installing new version of config file /etc/kernel/postinst.d/zz-update-grub ...
Installing new version of config file /etc/kernel/postrm.d/zz-update-grub ...
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-37-generic
Found initrd image: /boot/initrd.img-3.2.0-37-generic
Found linux image: /boot/vmlinuz-3.2.0-36-generic
Found initrd image: /boot/initrd.img-3.2.0-36-generic
Found linux image: /boot/vmlinuz-3.2.0-34-generic
Found initrd image: /boot/initrd.img-3.2.0-34-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sda2
done
Setting up unity-services (5.18.0-0ubuntu2) ...
Setting up libunity-core-5.0-5 (5.18.0-0ubuntu2) ...
Setting up unity-common (5.18.0-0ubuntu2) ...
Setting up unity (5.18.0-0ubuntu2) ...
Setting up linux-image-generic (3.2.0.37.45) ...
Setting up linux-headers-generic (3.2.0.37.45) ...
Setting up linux-generic (3.2.0.37.45) ...
Setting up xserver-xorg-video-intel (2:2.17.0-1ubuntu4.3) ...
Setting up xserver-xorg-video-qxl (0.0.16-2ubuntu0.1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

sudo apt-get install software-center ubuntu-desktop

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  software-center ubuntu-desktop
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/629 kB of archives.
After this operation, 4,453 kB of additional disk space will be used.
Selecting previously unselected package software-center.
(Reading database ... 234847 files and directories currently installed.)
Unpacking software-center (from .../software-center_5.2.7_all.deb) ...
Selecting previously unselected package ubuntu-desktop.
Unpacking ubuntu-desktop (from .../ubuntu-desktop_1.267.1_amd64.deb) ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for man-db ...
Setting up software-center (5.2.7) ...
Traceback (most recent call last):
  File "/usr/sbin/update-software-center", line 38, in <module>
    from softwarecenter.db.update import rebuild_database
  File "/usr/share/software-center/softwarecenter/db/update.py", line 97, in <module>
    axi_values = parse_axi_values_file()
  File "/usr/share/software-center/softwarecenter/db/database.py", line 57, in parse_axi_values_file
    (key, value) = line.split()
ValueError: too many values to unpack
Setting up ubuntu-desktop (1.267.1) ...

sudo dpkg-reconfigure software-center --force

Traceback (most recent call last):
  File "/usr/sbin/update-software-center", line 38, in <module>
    from softwarecenter.db.update import rebuild_database
  File "/usr/share/software-center/softwarecenter/db/update.py", line 97, in <module>
    axi_values = parse_axi_values_file()
  File "/usr/share/software-center/softwarecenter/db/database.py", line 57, in parse_axi_values_file
    (key, value) = line.split()
ValueError: too many values to unpack

sudo update-software-center

Traceback (most recent call last):
  File "/usr/sbin/update-software-center", line 38, in <module>
    from softwarecenter.db.update import rebuild_database
  File "/usr/share/software-center/softwarecenter/db/update.py", line 97, in <module>
    axi_values = parse_axi_values_file()
  File "/usr/share/software-center/softwarecenter/db/database.py", line 57, in parse_axi_values_file
    (key, value) = line.split()
ValueError: too many values to unpack

Revision history for this message
N1ck 7h0m4d4k15 (nicktux) said :
#7

Execute these commands with order , one by one

1) sudo apt-get purge software-center
2) rm -rf .cache/software-center/
3) rm -rf .config/software-center/
4) sudo rm -rf /usr/share/software-center/

Then reboot your machine.. and execute in terminal

1) sudo apt-get install software-center ubuntu-desktop

See if works now.

Thanks

Revision history for this message
David (gooster-snesi) said :
#8

Hi NikTh I tried that, but I'm still getting some python errors:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  software-center ubuntu-desktop
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/629 kB of archives.
After this operation, 4,453 kB of additional disk space will be used.
Selecting previously unselected package software-center.
(Reading database ... 234847 files and directories currently installed.)
Unpacking software-center (from .../software-center_5.2.7_all.deb) ...
Selecting previously unselected package ubuntu-desktop.
Unpacking ubuntu-desktop (from .../ubuntu-desktop_1.267.1_amd64.deb) ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for man-db ...
Setting up software-center (5.2.7) ...
Traceback (most recent call last):
  File "/usr/sbin/update-software-center", line 38, in <module>
    from softwarecenter.db.update import rebuild_database
  File "/usr/share/software-center/softwarecenter/db/update.py", line 97, in <module>
    axi_values = parse_axi_values_file()
  File "/usr/share/software-center/softwarecenter/db/database.py", line 57, in parse_axi_values_file
    (key, value) = line.split()
ValueError: too many values to unpack
Setting up ubuntu-desktop (1.267.1) ...

I have no idea how to fix this, other than that the systems runs perfectly. I can still get programs with apt-get.

Revision history for this message
N1ck 7h0m4d4k15 (nicktux) said :
#9

Something happened to python .. maybe ?

Try

sudo apt-get --purge autoremove

sudo apt-get purge $(dpkg -l | awk '/rc/ {print $2}')

sudo apt-get install --reinstall $(dpkg -l | awk '/python/ {print $2}')

Thanks

Revision history for this message
David (gooster-snesi) said :
#10

Ok NikTh, I tried it out but I still can't get the software center to open, I still get:

2013-02-13 23:47:32,216 - softwarecenter.ui.gtk3.app - INFO - setting up proxy 'None'
2013-02-13 23:47:32,223 - softwarecenter.db.database - INFO - open() database: path=None use_axi=True use_agent=True
Traceback (most recent call last):
  File "/usr/bin/software-center", line 142, in <module>
    app = SoftwareCenterAppGtk3(datadir, xapian_base_path, options, args)
  File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 277, in __init__
    self.db.open(use_axi=self._use_axi)
  File "/usr/share/software-center/softwarecenter/db/database.py", line 230, in open
    self._axi_values = parse_axi_values_file()
  File "/usr/share/software-center/softwarecenter/db/database.py", line 57, in parse_axi_values_file
    (key, value) = line.split()
ValueError: too many values to unpack

Revision history for this message
Best Mark Rijckenberg (markrijckenberg) said :
#11

Try running the following Terminal command sequence:

sudo apt-get purge software-center

rm -rf ~/.cache/software-center

rm -rf ~/.config/software-center

rm -rf ~/.cache/update-manager-core

sudo rm /var/lib/apt-xapian-index/cataloged_times.p

sudo rm /var/lib/apt-xapian-index/values

sudo update-apt-xapian-index --verbose --force

sudo update-apt-xapian-index --force

sudo apt-get update

sudo apt-get dist-upgrade

sudo apt-get install software-center ubuntu-desktop

sudo dpkg-reconfigure software-center --force

sudo update-software-center

sudo apt-get install --reinstall software-center

Then retest software-center.

If it does not help, I suggest installing and using synaptic as a replacement for software-center.

You can install synaptic using this command:

sudo apt-get update && sudo apt-get install synaptic

I have no further suggestions to make.

Revision history for this message
David (gooster-snesi) said :
#12

That did it!!!! Sorry for the late response, I had to go to work. But thanks a lot everyone! The software center now works :).

What exactly did I just do with those commands there? Did I reset apt?

Revision history for this message
David (gooster-snesi) said :
#13

Thanks Mark Rijckenberg, that solved my question.

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#14

You're welcome. :-)

I think the only difference this time is that you also deleted 2 files that were probably corrupt.

You deleted these files

/var/lib/apt-xapian-index/cataloged_times.p
/var/lib/apt-xapian-index/values

and then let the command update-apt-xapian-index regenerate those files from scratch.