“Impossível corrigir problemas, você segurou pacotes quebrados”

2

depois de instalar os pacotes de idiomas do 'unity-tweak-tool' e alguns programas simples (CopyQ e similares). muitos problemas ocorreram.

depois que eu fechei a ferramenta de ajuste de unidade. Eu vi a 'ferramenta de ajuste de unidade' não mostrada na lista de aplicativos. Eu tentei reinstalar o 'unity-tweak-tool'. mas não instala. e obtenha o erro E: Unable to correct problems, you have held broken packages.

O que eu tentei

  • Eu tentei removê-lo

    sudo apt-get remove unity-tweak-tool 
    sudo apt purge unity-tweak-tool  
    sudo apt autoremove   
    sudo apt update 
    sudo apt -f install
    

tente instalá-lo pelo aptitude

    sudo aptitude install unity-tweak-tool

-

    sudo apt-get install --fix-broken
    sudo apt-get autoclean
    sudo apt-get autoremove
    sudo apt-get -f install
  • elimine a última instalação. (Aprendi com: link )

    sudo apt purge libqgsttools-p1  qml-module-qtquick-privatewidgets  khelpcenter libkf5attica5  libqt5clucene5  libqt5svg5  qml-module-qtquick-window2 libqt5test5  qml-module-qtwebkit  libkf5i18n-data  qml-module-qtquick2 libqt5help5  qml-module-qtquick-controls  libqt5multimedia5  libkf5declarative5 qtwayland5  libqt5dbus5  python3-pyqt5  libqt5sql5-sqlite  qml-module-qtquick-xmllistmodel  qml-module-qtquick-layouts  libqt5widgets5  qml-module-qttest libqt5waylandclient5  qml-module-qtquick-dialogs  kde-style-qtcurve-qt5 qmlscene  libqt5xml5  libqt5quicktest5  libqt5printsupport5  libqt5qml5 libqt5designercomponents5  frameworkintegration  libqt5gui5  libqt5multimedia5-plugins  libqt5quickwidgets5  libqt5x11extras5  libkf5declarative-data libqt5webkit5  libqt5script5  libqt5core5a  libkf5iconthemes-data  libqt5opengl5 libqt5xmlpatterns5  libkf5iconthemes5  qttools5-dev-tools  libqt5network5 libqt5designer5  libqt5positioning5  qtdeclarative5-dev-tools  libkf5kiocore5 libqt5quick5  libqt5sql5  libkf5i18n5  libqt5sql5-mysql  
    
  • depois disso, alguns aplicativos foram danificados. (VLC, CopyQ, Glipper, ...)

  • Eu tentei reinstalá-los. mas notando o trabalho. o mesmo erro ocorreu. por exemplo, para o VLC

    sudo apt install vlc
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:
    The following packages have unmet dependencies:
    vlc : Depends: vlc-nox (= 2.2.2-5) but 2.2.2-5ubuntu0.16.04.4 is to be installed
     Depends: libgles1-mesa (>= 7.8.1) but it is not going to be installed or
                libgles1
       Recommends: vlc-plugin-notify (= 2.2.2-5) but it is not going to be installed
       Recommends: vlc-plugin-samba (= 2.2.2-5) but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.
    
  • Depois de reinicializar o sistema. "Glipper" foi auto-estratificado. mas isso não aparece na lista de aplicativos.

  • também tentei "synaptic" (o resulte para o VLC é:)

Erro de instalação do VLC synaptic

Instalação do Synaptic VLC

  • também tentou grep held programs. mas nada apareceu.

    dpkg --get-selections | grep hold
    

existe alguma solução?

    
por mostafa a 19.01.2018 / 14:05

2 respostas

3

Meu problema foi corrigido. Pelo menos para os programas "VLC" e "unit-tweak-tool".

Mas não pode ser corrigido para alguns programas como o "Foxit Reader PDF". desde que sua instalação é manual. ("Leitor de Foxit" caiu e fechou quando destacando texto ou fazendo qualquer comentário).

O problema foi "Eu não usei o comando aptitude corretamente".

o detalhe é:

primeiro execute este terminal in (aviso: você pode precisar instalar o pacote "aptitude" sudo apt-get install aptitude )

sudo aptitude install vlc

depois de um tempo, perguntou:

Keep the following packages at their current version:
    1)     libgles1-mesa [Not Installed]                      
    2)     vlc [Not Installed]                                
    3)     vlc-plugin-notify [Not Installed]                  
    4)     vlc-plugin-samba [Not Installed]                   

    Accept this solution? [Y/n/q/?] n

respondido por n (Não)

então perguntou:

Remove the following packages:                                            
    1)      libgl1-mesa-glx:i386                                                    
    2)      libglu1-mesa:i386                                                       
    3)      wine-devel                                                              
    4)      wine-devel-i386:i386                                                    
    5)      wine1.4                                                                 
    6)      wine1.4-amd64                                                           
    7)      winehq-devel                                                            

 Downgrade the following packages:                                         
    8)      libgl1-mesa-glx [17.0.7-0ubuntu0.16.04.2 (now) -> 11.2.0-1ubuntu2 (xenia
    9)      libglapi-mesa [17.0.7-0ubuntu0.16.04.2 (now) -> 11.2.0-1ubuntu2 (xenial)
    10)     libglapi-mesa:i386 [17.0.7-0ubuntu0.16.04.2 (now) -> 11.2.0-1ubuntu2 (xe
    11)     libgles2-mesa [17.0.7-0ubuntu0.16.04.2 (now) -> 11.2.0-1ubuntu2 (xenial)
    12)     libosmesa6 [17.0.7-0ubuntu0.16.04.2 (now) -> 11.2.0-1ubuntu2 (xenial)]  
    13)     libosmesa6:i386 [17.0.7-0ubuntu0.16.04.2 (now) -> 11.2.0-1ubuntu2 (xenia
    14)     libvlccore8 [2.2.2-5ubuntu0.16.04.4 (now) -> 2.2.2-5 (xenial)]          
    15)     vlc-data [2.2.2-5ubuntu0.16.04.4 (now) -> 2.2.2-5 (xenial)]             


    Accept this solution? [Y/n/q/?] y

responda por y (yes)

então perguntou:

The following packages will be DOWNGRADED:
  libgl1-mesa-glx libglapi-mesa libglapi-mesa:i386 libgles2-mesa libosmesa6 
  libosmesa6:i386 libvlccore8 vlc-data 
The following NEW packages will be installed:
  libgles1-mesa{a} libqt5x11extras5{a} vlc vlc-nox{a} vlc-plugin-notify{a} 
  vlc-plugin-samba{a} 
The following packages will be REMOVED:
  libgl1-mesa-glx:i386{a} libglu1-mesa:i386{a} wine-devel{a} 
  wine-devel-i386:i386{a} wine1.4{a} wine1.4-amd64{a} winehq-devel{a} 
0 packages upgraded, 6 newly installed, 8 downgraded, 7 to remove and 42     not upgraded.
Need to get 6,395 kB/12.8 MB of archives. After unpacking 168 MB will be freed.
Do you want to continue? [Y/n/?] y

responda y novamente.

depois disso, o problema foi corrigido e o VLC foi instalado corretamente.

Espero que isso seja útil para os outros também.

Obrigado pela sua atenção

    
por mostafa a 19.01.2018 / 15:33
-1

Eu tive um caso semelhante. Eu resolvi da seguinte maneira.

Eu observei todos os pacotes "Depends" e digitei o apt-get install para instalá-los. Isso me causou mais erros com outros pacotes "Depende". Eu também os anotei e digitei o apt-get install para instalá-los, e assim por diante, até chegar ao pacote final. Então eu digitei apt-get remove para remover todos os pacotes "Depends" que eu anotei antes. Depois disso eu corro o apt-get autoremove. Então eu consegui instalar o pacote que eu precisava sem o erro.

    
por Maxim Masiutin 05.05.2018 / 19:41