Dist-upgrade parece ter criado um problema

1

Se bem me lembro, usei sudo apt-get dist-upgrade , mas cancelei o processo entre eles. Recebi um aviso de (Y/N) para atualizar no final e digitei N

Depois disso, tenho tido alguns problemas como este ao executar apt-get update

O interessante é que eu estou realmente rodando 16.04.

Distributor ID: Ubuntu
Description:    Ubuntu 16.04.4 LTS
Release:    16.04
Codename:   xenial

Mas de alguma forma o apt-get procura por artful packages em vez daqueles por xenial .

Get:25 http://archive.ubuntu.com/ubuntu artful-updates/multiverse amd64 DEP-11 Metadata [2,468 B]
Get:26 http://archive.ubuntu.com/ubuntu artful-backports/universe amd64 DEP-11 Metadata [5,088 B]
Fetched 1,592 kB in 5s (283 kB/s)              

(appstreamcli:8437): GLib-CRITICAL **: g_strchug: assertion 'string != NULL' failed

(appstreamcli:8437): GLib-CRITICAL **: g_strchomp: assertion 'string != NULL' failed

Editar: é assim que meu /etc/apt/sources.list parece

Eu substitui o artful por xenial em todos os lugares e o problema parece ter sido resolvido.

    
por rattle99 04.05.2018 / 10:11

1 resposta

1

Eu tive o mesmo problema depois de executar sudo do-release-upgrade -d em uma partição clonada do Ubuntu 16.04. A intenção era testar os bugs no upgrade para 18.04.1 , mas o sistema parou com a mensagem:

To continue please press [ENTER]
Inhibiting until Ctrl+C is pressed...

Então pressionei Ctrl + C e ele retornou ao prompt de comando.

A seguir corri:

$ sudo apt update
Hit:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:2 http://ca.archive.ubuntu.com/ubuntu bionic InRelease
Hit:3 http://ca.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:4 http://ca.archive.ubuntu.com/ubuntu bionic-backports InRelease

(appstreamcli:15814): GLib-CRITICAL **: g_strchug: assertion 'string != NULL' failed

(appstreamcli:15814): GLib-CRITICAL **: g_strchomp: assertion 'string != NULL' failed

(appstreamcli:15814): GLib-CRITICAL **: g_strchug: assertion 'string != NULL' failed

(appstreamcli:15814): GLib-CRITICAL **: g_strchomp: assertion 'string != NULL' failed
AppStream cache update completed, but some metadata was ignored due to errors.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
1675 packages can be upgraded. Run 'apt list --upgradable' to see them.

Baseado nos comentários acima, mais esta resposta: Hit Ctrl + c durante a liberação do lançamento. Eu quebrei? Eu usei:

sudo sed -i -e 's/bionic/xenial/g' /etc/apt/sources.list

Agora, sudo apt update é concluído normalmente.

Problemas com upgrade

Agora, quando executo do-release-upgrade -d e presto muita atenção, observo essas linhas no meio:

Get:57 http://ca.archive.ubuntu.com/ubuntu bionic-backports/universe DEP-11 64x64 Icons [1,789 B]
Fetched 44.8 MB in 6s (4,884 kB/s)                                                         

(appstreamcli:30117): GLib-CRITICAL **: g_strchug: assertion 'string != NULL' failed

(appstreamcli:30117): GLib-CRITICAL **: g_strchomp: assertion 'string != NULL' failed

(appstreamcli:30117): GLib-CRITICAL **: g_strchug: assertion 'string != NULL' failed

(appstreamcli:30117): GLib-CRITICAL **: g_strchomp: assertion 'string != NULL' failed
AppStream cache update completed, but some metadata was ignored due to errors.

Checking package manager
Reading package lists... Done    

Eu aborto a atualização respondendo N para o prompt.

Uma pesquisa rápida leva a esta pergunta & Resposta: E: Problema na execução de scripts APT Erro Update :: Post-Invoke-Success durante a atualização do apt-get

Eu posso verificar a mesma situação usando:

$ sudo apt update
Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:2 http://ca.archive.ubuntu.com/ubuntu xenial InRelease                                 
Hit:3 http://ca.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:4 http://ca.archive.ubuntu.com/ubuntu xenial-backports InRelease
AppStream cache update completed, but some metadata was ignored due to errors.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.

A solução recomendada no link é usar:

sudo apt-get purge libappstream3

Em execução, o erro meta desapareceu:

$ sudo apt update
Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:2 http://ca.archive.ubuntu.com/ubuntu xenial InRelease
Hit:3 http://ca.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:4 http://ca.archive.ubuntu.com/ubuntu xenial-backports InRelease
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.

O próximo passo será executar sudo do-release-upgrade -d pela terceira vez e cruzar meus dedos.

Mensagem enganosa durante a atualização

Outro usuário teve um problema semelhante: Atualização do Ubuntu de 16.04 para 18.04 está demorando muito

Acontece que a mensagem de duas linhas sai ao mesmo tempo:

To continue please press [ENTER]
Inhibiting until Ctrl+C is pressed...

Você acha que a atualização é inibida até que você pressione Ctrl + C , mas o que realmente significa é que a atualização não inicia até que você pressione Enter .

suspiro

    
por WinEunuuchs2Unix 11.08.2018 / 22:27