AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • Início
  • system&network
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • Início
  • system&network
    • Recentes
    • Highest score
    • tags
  • Ubuntu
    • Recentes
    • Highest score
    • tags
  • Unix
    • Recentes
    • tags
  • DBA
    • Recentes
    • tags
  • Computer
    • Recentes
    • tags
  • Coding
    • Recentes
    • tags
Início / ubuntu / Perguntas / 1538542
Accepted
Olumide
Olumide
Asked: 2025-01-18 23:42:39 +0800 CST2025-01-18 23:42:39 +0800 CST 2025-01-18 23:42:39 +0800 CST

Lutando para executar ou reinstalar aplicativos snap, por exemplo, firefox, skype

  • 772

Em uma tentativa estúpida de liberar espaço em disco, executei o comando sudo apt purge snapd. Agora, um monte de aplicativos como o Firefox não funcionam mais:

firefox &
...
Command '/usr/bin/firefox' requires the firefox snap to be installed.
Please install it with:

snap install firefox

Mas quando tento instalar o sistema informa que o firefox já foi instalado

sudo snap install firefox
snap "firefox" is already installed, see 'snap help refresh'

Acho que é um problema maior com o snap porque tenho o mesmo problema com o skype

$skype &
 cannot locate base snap core18: No such file or directory

$ sudo snap install skype
snap "skype" is already installed, see 'snap help refresh'
snap
  • 2 2 respostas
  • 67 Views

2 respostas

  • Voted
  1. vidarlo
    2025-01-19T00:35:57+08:002025-01-19T00:35:57+08:00

    Você precisa reinstalar o snapd.

    sudo apt install snapddeve resolver isso. Snaps não podem ser executados sem snapd, mas como são dois sistemas de pacotes separados, o apt não tem conhecimento de snaps - então eles não são expurgados quando você remove snapd.

    • 2
  2. Best Answer
    Olumide
    2025-01-19T01:09:53+08:002025-01-19T01:09:53+08:00

    O problema é que a desinstalação do snapd nunca é completamente bem-sucedida.

    $ sudo apt remove --purge snapd
    ...
    Removing snap evince and revision 1044
    Removing snap-evince-1044.mount
    Stopping snap-firefox-5561.mount
    Stopping unit snap-firefox-5561.mount
    Waiting until unit snap-firefox-5561.mount is stopped [attempt 1]
    snap-firefox-5561.mount is stopped.
    Removing snap firefox and revision 5561
    rm: cannot remove '/var/snap/firefox/common/host-hunspell/en_GB.aff': Read-only file system
    rm: cannot remove '/var/snap/firefox/common/host-hunspell/en_US.dic': Read-only file system
    rm: cannot remove '/var/snap/firefox/common/host-hunspell/en_GB.dic': Read-only file system
    rm: cannot remove '/var/snap/firefox/common/host-hunspell/en_US.aff': Read-only file system
    dpkg: error processing package snapd (--purge):
     installed snapd package post-removal script subprocess returned error exit status 1
    Purging configuration files for firefox (1:1snap1-0ubuntu2) ...
    Errors were encountered while processing:
     snapd
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    

    Então, depois de pesquisar no Google, encontrei esta sugestão para desmontar o hunspell

    sudo umount /var/snap/firefox/common/host-hunspell
    

    Depois disso eu finalmente consegui, agora posso reinstalar o snapd e o firefox

    sudo apt remove --purge snapd
    sudo apt install snapd
    sudo snap install firefox
    
    • 0

relate perguntas

Sidebar

Stats

  • Perguntas 205573
  • respostas 270741
  • best respostas 135370
  • utilizador 68524
  • Highest score
  • respostas
  • Marko Smith

    Existe um comando para listar todos os usuários? Também para adicionar, excluir, modificar usuários, no terminal?

    • 9 respostas
  • Marko Smith

    Como excluir um diretório não vazio no Terminal?

    • 4 respostas
  • Marko Smith

    Como descompactar um arquivo zip do Terminal?

    • 9 respostas
  • Marko Smith

    Como instalo um arquivo .deb por meio da linha de comando?

    • 11 respostas
  • Marko Smith

    Como instalo um arquivo .tar.gz (ou .tar.bz2)?

    • 14 respostas
  • Marko Smith

    Como listar todos os pacotes instalados

    • 24 respostas
  • Martin Hope
    Flimm Como posso usar o docker sem sudo? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    led-Zepp Como faço para salvar a saída do terminal em um arquivo? 2014-02-15 11:49:07 +0800 CST
  • Martin Hope
    ubuntu-nerd Como descompactar um arquivo zip do Terminal? 2011-12-11 20:37:54 +0800 CST
  • Martin Hope
    TheXed Como instalo um arquivo .deb por meio da linha de comando? 2011-05-07 09:40:28 +0800 CST
  • Martin Hope
    Ivan Como listar todos os pacotes instalados 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    David Barry Como determino o tamanho total de um diretório (pasta) na linha de comando? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher "Os seguintes pacotes foram retidos:" Por que e como resolvo isso? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford Como os PPAs podem ser removidos? 2010-07-30 01:09:42 +0800 CST

Hot tag

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • Início
  • Perguntas
    • Recentes
    • Highest score
  • tag
  • help

Footer

AskOverflow.Dev

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve