Ubuntu update software center can not open the solution

  

Yesterday installed in ubuntu "Python version of the webqq client" program, the results updated today after the system restart, found that ubuntu software center can not open, The following solutions were found online.

The initial judgment was caused by the addition of the linuxdeepin (depth) software source when installing the webqq client.

gongstring@chz-desktop:~$ software-center

Traceback (most recent call last):

File "/usr/bin/software-center", Line 149, in <module>

from softwarecenter.ui.gtk3.app import SoftwareCenterAppGtk3

File "/usr/share/software-center/softwarecenter/ui/gtk3/app. Py", line 49, in <module>

from softwarecenter.db.application import Application

File "/usr/share/software-center/softwarecenter/db/application.py" ;, line 25, in <module>

from softwarecenter.backend.channel import is_channel_available

File "/usr/share/software-center/softwarecenter/backend/channel.py" , line 25, in <module>

from softwarecenter.distro import get_distro

File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 165 , in <module>

distro_instance=_get_distro()

File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 14 8, in _get_distro

module = __import__(distro_id, globals(), locals(), [], -1)

ImportError: No module named LinuxDeepin

As follows:

sudo gedit /etc/lsb-release (well, I won't VIM -.-!)

Replace the text with the following:

DISTRIB_ID =Ubuntu DISTRIB_RELEASE=11.10 DISTRIB_CODENAME=oneiric DISTRIB_DESCRIPTION=“Ubuntu 11.10″

OK, you should be able to open the software source and software center.

However, I still have a problem, the software center is open, but the page has been in a blank refresh interface.

Uninstalling reload:

sudo apt-get autoremove software-center --purge

Display:

rmdir: Delete “/var/cache /software-center/xapian/” Failed: No such file or directory dpkg: Error processing software-center (--purge): child process installed post-removal script returned error number 1

An error occurred during processing: software-center E: Sub-process /usr/bin/dpkg returned an error code (1) Looked up, there is no software-center file in the cache folder.

sudo mkdir /var/cache/software-center sudo mkdir /var/cache/software-center/xapian sudo apt-get autoremove software-center --purge sudo apt-get install software-center Everything works fine.

Copyright © Windows knowledge All Rights Reserved