Ubuntu 18.04 falha na atualização de 16.04 LTS

1

Estou usando o Ubuntu 16.04 LTS e executei do-release-upgrade -d , mas a atualização falhou com uma mensagem de erro dizendo que os pacotes têm dependências não atendidas.

sudo apt-get -f install também não conseguiu corrigir os erros.

Aqui está a mensagem de erro completa:

Correcting dependencies... failed.

The following packages have unmet dependencies:

 checkbox-converged : Depends: qtdeclarative5-ubuntu-ui-toolkit-plugin but it is not installable
 gnome-calendar : Depends: gsettings-desktop-schemas (>= 3.21.2) but 3.18.1-1ubuntu1 is installed

 gnome-session : Depends: gnome-shell (>= 3.25.91-0ubuntu4~) but it is not installed

                 Depends: gnome-session-bin (>= 3.28.1-0ubuntu2) but 3.18.1.2-1ubuntu1.16.04.2 is installed

                 Depends: gnome-session-common (= 3.28.1-0ubuntu2) but 3.18.1.2-1ubuntu1.16.04.2 is installed

                 Depends: xwayland but it is not installed

                 Recommends: fonts-cantarell but it is not installed

                 Recommends: adwaita-icon-theme-full

                 Recommends: gnome-themes-extra but it is not installed
 gnome-settings-daemon : Depends: libgnome-desktop-3-17 (>= 3.17.92) but it is not installed
                         Depends: gsettings-desktop-schemas (>= 3.20) but 3.18.1-1ubuntu1 is installed

 libc-dev-bin : Depends: libc6 (< 2.24) but 2.27-3ubuntu1 is installed

 libc6-dbg : Depends: libc6 (= 2.23-0ubuntu10) but 2.27-3ubuntu1 is installed

 libc6-dev : Depends: libc6 (= 2.23-0ubuntu10) but 2.27-3ubuntu1 is installed

 libqt5quick5 : Depends: libqt5core5a (>= 5.9.0~beta) but 5.5.1+dfsg-16ubuntu7.5 is installed

                Depends: libqt5gui5 (>= 5.9.0~beta) but 5.5.1+dfsg-16ubuntu7.5 is installed

                Depends: libqt5qml5 (>= 5.9.5) but 5.5.1-2ubuntu6 is installed

                Depends: qtbase-abi-5-9-5

                Depends: qtdeclarative-abi-5-9-5

 libunity-webapps0 : Depends: unity-webapps-service but it is not installable
 libwayland-egl1-mesa : Depends: libegl1 but it is not installed

 qml-module-qtquick-controls : Depends: libqt5qml5 (>= 5.9.5) but 5.5.1-2ubuntu6 is installed

                               Depends: libqt5core5a (>= 5.9.0~beta) but 5.5.1+dfsg-16ubuntu7.5 is installed

                               Depends: libqt5gui5 (>= 5.9.0~beta) but 5.5.1+dfsg-16ubuntu7.5 is installed

                               Depends: qtbase-abi-5-9-5

                               Depends: qtdeclarative-abi-5-9-5

 qml-module-qtquick-dialogs : Depends: libqt5qml5 (>= 5.9.5) but 5.5.1-2ubuntu6 is installed

                              Depends: libqt5core5a (>= 5.9.0~beta) but 5.5.1+dfsg-16ubuntu7.5 is installed

                              Depends: libqt5gui5 (>= 5.9.0~beta) but 5.5.1+dfsg-16ubuntu7.5 is installed

                              Depends: qtbase-abi-5-9-5

                              Depends: qtdeclarative-abi-5-9-5

 qml-module-qtquick-window2 : Depends: libqt5core5a (>= 5.9.0~beta) but 5.5.1+dfsg-16ubuntu7.5 is installed

                              Depends: qtdeclarative-abi-5-9-5

 qml-module-qtwebkit : Depends: libqt5core5a (>= 5.9.0~beta) but 5.5.1+dfsg-16ubuntu7.5 is installed

                       Depends: qtdeclarative-abi-5-9-5
 qml-module-ubuntu-test : Depends: qml-module-ubuntu-components but it is not installable

                          Depends: libubuntugestures5 but it is not installable

 qml-module-ubuntu-ui-extras-browser : Depends: qtdeclarative5-ubuntu-ui-toolkit-plugin (>= 1.3) but it is not installable or

                                                qtdeclarative5-ubuntu-ui-toolkit-plugin-gles (>= 1.3) but it is not installable

 qml-module-ubuntu-web : Depends: qtdeclarative5-ubuntu-ui-toolkit-plugin (>= 1.3) but it is not installable or

                                  qtdeclarative5-ubuntu-ui-toolkit-plugin-gles (>= 1.3) but it is not installable

 unity-control-center : Depends: libgnome-desktop-3-17 (>= 3.27.90) but it is not installed

                        Recommends: system-config-printer but it is not installed

                        Recommends: gnome-control-center-faces but it is not installed

 unity-webapps-qml : Depends: qtdeclarative5-ubuntu-ui-toolkit-plugin but it is not installable or

                              qtdeclarative5-ubuntu-ui-toolkit-plugin-gles but it is not installable

E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

E: Unable to correct dependencies

Além disso, a GUI ficou um pouco estranha.

O que aconteceu?

    
por Oualid 14.05.2018 / 23:38

3 respostas

1

Abra um terminal usando CTRL-ALT-T e digite:

update-manager -cd

A partir daqui, tente atualizar. Se houver um erro com uma opção que diz upgrade parcial, clique nele. Isso irá restaurar a GUI. Reinicialize e execute o comando novamente. Não deve haver erro, e você pode prosseguir com a atualização via GUI.

    
por HolyCow 15.05.2018 / 00:17
1

Isso funcionou para mim:

Abra um terminal com: CTRL ALT F1 (digite seu usuário e senha) então

sudo apt install aptitude

próximo passo

sudo aptitude install ubuntu-desktop gdm3

você terá opções como consertar as incompatibilidades, acertar algumas vezes N e ENTER até que seja sugerido com alguma remoção de pacotes antigos e instalação de um atualizado .

então dê Y e ENTER para uma solução que remova pacotes incompatíveis antigos e instale os novos.

último

sudo reboot

O acima funcionou para mim.

    
por Eduard Florinescu 26.07.2018 / 23:38
0

Você parece ter vários pacotes quebrados, de acordo com a mensagem de erro E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. . Para resolver, veja o arquivo /var/log/dist-upgrade/apt.log . Localize os pacotes que estão quebrados e remova-os com sudo apt-get remove broken-package . Se houver erros de dependência, tente reinstalar o pacote: sudo apt-get install --reinstall broken-package .

Agora tente corrigir os erros de dependência:

sudo apt-get -f install

Reinicialize e tente atualizar novamente.

    
por ubashu 15.05.2018 / 08:35