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