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 / 1014862
Accepted
k0pernikus
k0pernikus
Asked: 2018-03-15 04:08:13 +0800 CST2018-03-15 04:08:13 +0800 CST 2018-03-15 04:08:13 +0800 CST

Tenho que corrigir manualmente um dist-upgrade interrompido?

  • 772

Durante uma execução do apt-get dist-upgrade, cancelei-o acidentalmente via Ctrl + C quando estava configurando pacotes.

Esses pacotes estavam prestes a ser atualizados:

aptdaemon aptdaemon-data google-chrome-unstable libsmbclient libwbclient0 python3-aptdaemon python3-aptdaemon.gtk3widgets samba-libs

Esta é a saída de execução até o cancelamento:

Preparing to unpack .../0-google-chrome-unstable_66.0.3359.26-1_amd64.deb ...
Unpacking google-chrome-unstable (66.0.3359.26-1) over (66.0.3359.22-1) ...
Preparing to unpack .../1-libsmbclient_2%3a4.6.7+dfsg-1ubuntu3.2_amd64.deb ...
Unpacking libsmbclient:amd64 (2:4.6.7+dfsg-1ubuntu3.2) over (2:4.6.7+dfsg-1ubuntu3.1) ...
Preparing to unpack .../2-samba-libs_2%3a4.6.7+dfsg-1ubuntu3.2_amd64.deb ...
Unpacking samba-libs:amd64 (2:4.6.7+dfsg-1ubuntu3.2) over (2:4.6.7+dfsg-1ubuntu3.1) ...
Preparing to unpack .../3-libwbclient0_2%3a4.6.7+dfsg-1ubuntu3.2_amd64.deb ...
Unpacking libwbclient0:amd64 (2:4.6.7+dfsg-1ubuntu3.2) over (2:4.6.7+dfsg-1ubuntu3.1) ...
Preparing to unpack .../4-aptdaemon-data_1.1.1+bzr982-0ubuntu17.1_all.deb ...
Unpacking aptdaemon-data (1.1.1+bzr982-0ubuntu17.1) over (1.1.1+bzr982-0ubuntu17) ...
Preparing to unpack .../5-python3-aptdaemon.gtk3widgets_1.1.1+bzr982-0ubuntu17.1_all.deb ...
Unpacking python3-aptdaemon.gtk3widgets (1.1.1+bzr982-0ubuntu17.1) over (1.1.1+bzr982-0ubuntu17) ...
Preparing to unpack .../6-aptdaemon_1.1.1+bzr982-0ubuntu17.1_all.deb ...
Unpacking aptdaemon (1.1.1+bzr982-0ubuntu17.1) over (1.1.1+bzr982-0ubuntu17) ...
Preparing to unpack .../7-python3-aptdaemon_1.1.1+bzr982-0ubuntu17.1_all.deb ...
Unpacking python3-aptdaemon (1.1.1+bzr982-0ubuntu17.1) over (1.1.1+bzr982-0ubuntu17) ...
Setting up aptdaemon-data (1.1.1+bzr982-0ubuntu17.1) ...
Setting up libwbclient0:amd64 (2:4.6.7+dfsg-1ubuntu3.2) ...
Setting up samba-libs:amd64 (2:4.6.7+dfsg-1ubuntu3.2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3) ...
Setting up libsmbclient:amd64 (2:4.6.7+dfsg-1ubuntu3.2) ...
Setting up google-chrome-unstable (66.0.3359.26-1) ...
Processing triggers for libc-bin (2.26-0ubuntu2.1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu5) ...
Processing triggers for dbus (1.10.22-1ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-1) ...
Setting up aptdaemon (1.1.1+bzr982-0ubuntu17.1) ...
Setting up python3-aptdaemon (1.1.1+bzr982-0ubuntu17.1) ...
Setting up python3-aptdaemon.gtk3widgets (1.1.1+bzr982-0ubuntu17.1) ...
W: Operation was interrupted before it could finish

Agora eu me pergunto se há algo em um estado quebrado no meu sistema. Eu tentei executar:

sudo dpkg --configure -a

No entanto, nada é relatado.

Se eu correr:

sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

anotando mudanças. Eu me pergunto: há algo quebrado no meu sistema? Como posso saber? E se algo estivesse quebrado, como eu consertaria?

package-management upgrade dpkg apt 17.10
  • 1 1 respostas
  • 4631 Views

1 respostas

  • Voted
  1. Best Answer
    Michal Przybylowicz
    2018-03-15T13:46:26+08:002018-03-15T13:46:26+08:00

    Você pode forçar a reinstalação de pacotes (baixando e reinstalando novamente) emitindo este comando:

    sudo apt install --reinstall aptdaemon aptdaemon-data google-chrome-unstable libsmbclient libwbclient0 python3-aptdaemon python3-aptdaemon.gtk3widgets samba-libs
    

    Observe o --reinstallparâmetro adicional ao lado do apt installcomando padrão.

    Este parâmetro adicional não está documentado em man apt, mas está em man apt-get:

    --reinstall
    Re-install packages that are already installed and at the newest version.
    
    • 6

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