ubuntu18.04 へのアップデート中に止まったら

投稿者: ytyng 5年, 7ヶ月 前
sudo do-release-upgrade

...

Setting up libnih1:amd64 (1.0.3-6ubuntu2) ...

ここで固まったら

別ターミナルを起動するとかして、再起動をかける

(念の為 top を見て稼働しているプロセスが無いか見ておくといいかも)

$ sudo reboot

再起動後、

$ sudo apt update

してみたら

Err:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
Temporary failure resolving 'security.ubuntu.com'
Err:2 http://ap-northeast-1.ec2.archive.ubuntu.com/ubuntu bionic InRelease
Temporary failure resolving 'ap-northeast-1.ec2.archive.ubuntu.com'
Err:3 http://ap-northeast-1.ec2.archive.ubuntu.com/ubuntu bionic-updates InRelease
Temporary failure resolving 'ap-northeast-1.ec2.archive.ubuntu.com'
Err:4 http://ap-northeast-1.ec2.archive.ubuntu.com/ubuntu bionic-backports InRelease
Temporary failure resolving 'ap-northeast-1.ec2.archive.ubuntu.com'
Reading package lists... Done
Building dependency tree
Reading state information... Done
257 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Failed to fetch http://ap-northeast-1.ec2.archive.ubuntu.com/ubuntu/dists/bionic/InRelease Temporary failure resolving 'ap-northeast-1.ec2.archive.ubuntu.com'
W: Failed to fetch http://ap-northeast-1.ec2.archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease Temporary failure resolving 'ap-northeast-1.ec2.archive.ubuntu.com'
W: Failed to fetch http://ap-northeast-1.ec2.archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease Temporary failure resolving 'ap-northeast-1.ec2.archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease Temporary failure resolving 'security.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.

こんなエラーが出たので

sudo dpkg --configure -a
sudo apt --fix-broken install
sudo apt upgrade -y

エラーが出る場合、対処コマンドが表示されることが多いのでよく読んで、

sudo apt update -y; sudo apt upgrade -y;

でエラーが表示されない状態にして、エラーが出なくなったら

sudo reboot

はまった所

python3.5->python3.6 になっているので、3.5 にリンクする形で venv 作っていると壊れる。

どうせなので python3.6で venv を作り直すといい

python3.6 -m venv venv

MySQL 5.7 のインストールで競合が起きて mysql-server がインストールされないことがある。

Errors were encountered while processing:
 mysql-server-5.7
 mysql-server
Error in function:


*** Send problem report to the developers?

After the problem report has been sent, please fill out the form in the
automatically opened web browser.

What would you like to do? Your options are:
  S: Send report (389.0 KB)
  V: View report
  K: Keep report file for sending later or copying to somewhere else
  I: Cancel and ignore future crashes of this program version
  C: Cancel

キャンセル後、一旦消して

sudo apt remove mysql-server

アップグレード完了後再インストールすると楽かも。念の為DBはバックアップとっておいてください。

sudo apt install mysql-server

現在未評価

コメント

アーカイブ

2024
2023
2022
2021
2020
2019
2018
2017
2016
2015
2014
2013
2012
2011