Ubuntu Software Center gagal diluncurkan


2

Setiap kali saya mencoba untuk meluncurkan pusat perangkat lunak ubuntu itu berkedip jendela dan kemudian ditutup. Bahkan jika saya coba dari terminal. Saat mengetik

software-center

Saya mendapatkan ini:

/usr/bin/software-center:25: PyGIWarning: Gtk was imported without
  specifying a version first. Use gi.require_version('Gtk', '3.0') before 
  import to ensure that the right version gets loaded.
    from gi.repository import Gtk, GObject
/usr/share/software-center/softwarecenter/ui/gtk3/views/purchaseview.py:29: 
  PyGIWarning: WebKit2 was imported without specifying a version first. Use 
  gi.require_version('WebKit2', '4.0') before import to ensure that the 
  right version gets loaded.
    from gi.repository import WebKit2 as webkit
2016-12-13 15:59:47,733 - softwarecenter.backend.zeitgeist_logger -
    WARNING - Support for Zeitgeist disabled
/usr/share/software-center/softwarecenter/ui/gtk3/widgets/
  symbolic_icons.py:23: PyGIWarning: PangoCairo was imported without 
  specifying a version first. Use gi.require_version('PangoCairo', '1.0') 
  before import to ensure that the right version gets loaded.
    from gi.repository import Gtk, Gdk, GLib, PangoCairo
2016-12-13 15:59:47,790 - softwarecenter.ui.gtk3.app - 
    INFO - setting up proxy 'None'
2016-12-13 15:59:49,479 - softwarecenter.backend.reviews - 
    WARNING - Could not get usefulness from server, no username in 
    config file
2016-12-13 15:59:49,482 - softwarecenter.plugin - 
    INFO - activating plugin '<module 'webapps_activation' from '/usr/share
    /software-center/softwarecenter/plugins/webapps_activation.pyc'>'
2016-12-13 15:59:49,536 - 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 261, in open
    self._cache = apt.Cache(progress)
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 113, in __init__
    self.open(progress)
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 166, in open
    self._records = apt_pkg.PackageRecords(self._cache)
SystemError: E:Could not open file /var/lib/apt/lists
/www.hu.freepascal.org_lazarus_dists_lazarus-stable_universe_binary-amd64_Packages
 - open (13: Permission denied)
2016-12-13 15:59:49,820 - softwarecenter.db.update - 
    WARNING - failed to load file /var/lib/apt-xapian-index/cataloged_times.p: unsupported pickle protocol: 3
/usr/share/software-center/softwarecenter/ui/gtk3/widgets/videoplayer.py:29: 
  PyGIWarning: Gst was imported without specifying a version first. Use 
  gi.require_version('Gst', '1.0') before import to ensure that the right 
  version gets loaded.
    from gi.repository import Gst
2016-12-13 15:59:50,102 - 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 281, 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 183, in <module>
    app.run(args)
  File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 1378, in run
    self.show_available_packages(args)
  File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 1316, in show_available_packages
    self.view_manager.set_active_view(ViewPages.AVAILABLE)
  File "/usr/share/software-center/softwarecenter/ui/gtk3/session/viewmanager.py", line 150, in set_active_view
    view_widget.init_view()
  File "/usr/share/software-center/softwarecenter/ui/gtk3/panes/availablepane.py", line 227, in init_view
    self.cache, self.db, self.icons, self.apps_filter)
  File "/usr/share/software-center/softwarecenter/ui/gtk3/views/lobbyview.py", line 80, in __init__
    self.build()
  File "/usr/share/software-center/softwarecenter/ui/gtk3/views/lobbyview.py", line 326, in build
    self._build_homepage_view()
  File "/usr/share/software-center/softwarecenter/ui/gtk3/views/lobbyview.py", line 121, in _build_homepage_view
    self._append_whats_new()
  File "/usr/share/software-center/softwarecenter/ui/gtk3/views/lobbyview.py", line 255, in _append_whats_new
    whats_new_cat = self._update_whats_new_content()
  File "/usr/share/software-center/softwarecenter/ui/gtk3/views/lobbyview.py", line 240, in _update_whats_new_content
    docs = whats_new_cat.get_documents(self.db)
  File "/usr/share/software-center/softwarecenter/db/categories.py", line 131, in get_documents
    nonblocking_load=False)
  File "/usr/share/software-center/softwarecenter/db/enquire.py", line 330, in set_query
    self._blocking_perform_search()
  File "/usr/share/software-center/softwarecenter/db/enquire.py", line 225, 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 281, in __contains__
    return self._cache.__contains__(k)
AttributeError: 'NoneType' object has no attribute '__contains__'

Hmm, Sepertinya pembaruan apt-get sudo saya menunjukkan banyak kesalahan, mungkin ini tidak berfungsi karena tidak dapat mengambilnya?
Joseph

sudo apt-get update Ign: 1 dl.google.com/linux/chrome/deb stable InRelease Get: 2 repo.steampowered.com/steam tepatnya InRelease [2,842 B] Kesalahan : 3 us.old-releases.ubuntu.com/ ubuntu xenial InRelease Tidak dapat menyelesaikan 'us.old-releases.ubuntu.com'
Joseph

Jawaban:


1

Coba ini:

Buka terminal,

Tekan Ctrl+ Alt+T

Menjalankannya:

exec sudo -i 
appstreamcli refresh --force --verbose

dan

appstreamcli status 

Tunggu beberapa detik dan Buka kembali pusat perangkat lunak

Jika Anda masih mendapatkan kesalahan coba yang berikut ini:

exec sudo -i
apt purge gnome-software ubuntu-software
apt autoremove
apt install gnome-software ubuntu-software
apt-get update
apt-get dist-upgrade
apt-get clean

Dan buka pusat perangkat lunak.


Dari metode pertama yang saya dapatkan: Program 'dan' saat ini tidak diinstal. Anda dapat menginstalnya dengan mengetik: apt install dan opsi Tidak Dikenal --verboseappstreamcli Jalankan 'appstreamcli --help' untuk melihat daftar lengkap opsi baris perintah yang tersedia.
Joseph

pada hal kedua, setelah saya melakukan pembersihan dan kemudian autoremove saya mencoba menginstal dan mengatakan: Paket gnome-software tidak tersedia, tetapi disebut oleh paket lain. Ini mungkin berarti bahwa paket tersebut hilang, telah usang, atau hanya tersedia dari sumber lain E: Paket 'gnome-software' tidak memiliki kandidat instalasi
Joseph

setelah memperbaiki kesalahan pada apt-get saya, saya sekarang dapat membuka pusat perangkat lunak ubuntu jika saya melakukannya dari terminal menggunakan sudo
Joseph

@ Joseph: Saya mengedit posting untuk memperjelasnya, saya minta maaf karena mengacaukan po saya
kyodake

1

Di baris perintah lakukan hal berikut

LAKUKAN INI DALAM PESANAN YANG TERDAFTAR!

sudo apt-get purge software-center

sudo apt-get autoremove

sudo apt-get instal pusat perangkat lunak

Jika itu tidak berhasil lakukan

sudo apt-get pembaruan


E: Paket 'pusat perangkat lunak' tidak memiliki kandidat instalasi
Joseph
Dengan menggunakan situs kami, Anda mengakui telah membaca dan memahami Kebijakan Cookie dan Kebijakan Privasi kami.
Licensed under cc by-sa 3.0 with attribution required.