Não consigo abrir o Centro de Software em 14.04

1

Quando tento abrir o Centro de Software, ele fica branco e bate após 5 segundos. Eu tentei desinstalar e instalá-lo novamente através do Terminal, mas não funcionou.

Saída de software-center no terminal:

SystemError: E:Encountered a section with no Package: header, E:Problem with MergeList /var/lib/apt/lists/repository.spotify.com_dists_stable_non-free_i18n_Translation-sv, E:Paketlistan eller statusfilen kunde inte tolkas eller öppnas.
2015-11-03 20:23:40,237 - 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__'
erik@erik-P35-DS3P:~$ Traceback (most recent call last):
  File "/usr/share/software-center/update-software-center-agent", line 81, in <module>
    cache = apt.Cache(memonly=True)
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 107, in __init__
    self.open(progress)
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 151, in open
    self._cache = apt_pkg.Cache(progress)
SystemError: E:Encountered a section with no Package: header, E:Problem with MergeList /var/lib/apt/lists/repository.spotify.com_dists_stable_non-free_i18n_Translation-sv, E:Paketlistan eller statusfilen kunde inte tolkas eller öppnas.

Saída de LANG=C software-center :

2015-11-03 20:33:55,461 - softwarecenter.ui.gtk3.app - INFO - setting up proxy 'None'
2015-11-03 20:33:57,683 - softwarecenter.region - WARNING - failed to use geoclue: 'org.freedesktop.Geoclue.Error.notAvailable: Geoclue master client has no usable Address providers'
2015-11-03 20:33:58,598 - softwarecenter.backend.reviews - WARNING - Could not get usefulness from server, no username in config file
    
por Erik Jakobsson 03.11.2015 / 20:07

2 respostas

2

Acho que os dois comandos a seguir devem resolver seu problema:

sudo rm -rf /var/lib/apt/lists/*
sudo apt-get update

O primeiro comando excluirá todos os seus arquivos de índice de pacotes baixados, enquanto o segundo fará o download novamente de todos eles.

Provavelmente, uma lista de pacotes defeituosa está causando o seu problema.

Observação: isso levará algum tempo para fazer o download, dependendo da velocidade da sua conexão. Se desejar, você pode tentar uma intervenção mínima primeiro excluindo apenas o arquivo mencionado na mensagem de erro:

sudo rm /var/lib/apt/lists/repository.spotify.com_dists_stable_non-free_i18n_Translation-sv
sudo apt-get update
    
por Byte Commander 04.11.2015 / 12:34
0

1) Abra o terminal em Applications > Accessories > Terminal

digite

gksudo software-center

Se fizer o mesmo, você terá pelo menos uma saída de texto do erro. Poste aqui de volta.

2) Aqui está outra maneira de resolvê-lo:

Por favor, remova as linhas onde cairo e gusty escrito. Para fazer isso tipo

nano /etc/apt/sources.list 

(linha 60 aquela com rajadas) e salve o arquivo como antes.

Gusty é velho, muito velho e não é mais suportado.

Atenciosamente

    
por Gani Rakhmatov 23.08.2016 / 11:39