好吧,我已经在 askubuntu 和其他一些论坛上搜索过了,但似乎找不到解决问题所需的答案。我正在运行 Ubuntu 14.04,最近才安装它。过去几天我很喜欢它,但现在我的软件中心打不开。我已经尝试更新所有内容,卸载并重新安装了软件中心,从终端运行它,我在论坛上就这个问题做了所有我能找到的方法。但都没有用。这是我在终端中运行软件中心时得到的文本:
~$ software-center
2015-10-20 15:10:36,406 - softwarecenter.ui.gtk3.app - INFO - setting up proxy 'None'
2015-10-20 15:10:39,786 - softwarecenter.region - WARNING - failed to use geoclue: 'org.freedesktop.Geoclue.Error.notAvailable: Geoclue master client has no usable Address providers'
2015-10-20 15:10:40,554 - softwarecenter.backend.reviews - WARNING - Could not get usefulness from server, no username in config file
2015-10-20 15:10:40,573 - softwarecenter.plugin - INFO - activating plugin '<module 'webapps_activation' from '/usr/share/software-center/softwarecenter/plugins/webapps_activation.pyc'>'
2015-10-20 15:10:40,739 - softwarecenter.db.pkginfo_impl.aptcache - INFO - aptcache.open()
2015-10-20 15:10:41,602 - softwarecenter.backend.reviews - WARNING - error creating bsddb: '(22, 'Invalid argument -- BDB0054 illegal flag combination specified to DB_ENV->open')' (corrupted?)
2015-10-20 15:10:41,603 - softwarecenter.backend.reviews - ERROR - trying to repair DB failed
Traceback (most recent call last):
File "/usr/share/software-center/softwarecenter/backend/reviews/__init__.py", line 358, in _save_review_stats_cache_blocking
self._dump_bsddbm_for_unity(outfile, outdir)
File "/usr/share/software-center/softwarecenter/backend/reviews/__init__.py", line 377, in _dump_bsddbm_for_unity
0600)
DBInvalidArgError: (22, 'Invalid argument -- BDB0054 illegal flag combination specified to DB_ENV->open')
/usr/lib/python2.7/dist-packages/gi/overrides/GLib.py:535: Warning: Source ID 76 was not found when attempting to remove it
return super(MainContext, self).iteration(may_block)
/usr/lib/python2.7/dist-packages/gi/overrides/GLib.py:535: Warning: Source ID 20 was not found when attempting to remove it
return super(MainContext, self).iteration(may_block)
Bus error (core dumped)
答案1
卸载不会有什么不同。你需要清除软件中心。运行以下命令并发布任何错误:
sudo apt-get purge software-center software-center-aptdaemon-plugins
然后,重新安装:
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install software-center software-center-aptdaemon-plugins
编辑
看起来这可能与硬件有关,因为这里唯一不寻常的是总线错误。您可以尝试运行以下命令:
sudo rm /var/cache/apt/*.bin
答案2
我可以按照以下方法修复它这个答案。也许管理员可以将此问题标记为重复
sudo apt-get upgrade gnome-software
答案3
对于我来说 - 每次尝试使用软件中心或 Synaptic 或终端上的 apt-get 时都会出现神秘的总线错误消息 - 我必须先
sudo rm /var/cache/apt/*.bin
进而
sudo apt-get upgrade gnome-software
此后,一切都还好。
答案4
遇到了同样的问题。其他解决方案都不管用。这个管用!
sudo apt install ubuntu-software
sudo snap remove snap-store
sudo apt purge snapd
然后“搜索”应用程序中的“安装”。将适用于您的快捷栏的程序收藏起来。