---
slug: "ubuntu-do-release-upgrade-libnih1-stack"
title: "What to Do If Your Update to Ubuntu 18.04 Gets Stuck"
description: "When `do-release-upgrade` to Ubuntu 18.04 hangs on libnih1 or upstart packages, here is how to unstick and complete the release upgrade."
url: "https://www.ytyng.com/en/blog/ubuntu-do-release-upgrade-libnih1-stack"
publish_date: "2018-09-03T08:36:54Z"
created: "2018-09-03T08:36:54Z"
updated: "2026-05-11T13:06:04.157Z"
categories: []
keywords: ""
featured_image_url: "https://media.ytyng.com/resize/20240629/40bff7561e194b15b72560f1936b6774.png.webp?width=768"
has_video: false
has_music: false
video_urls: []
music_urls: []
lang: "en"
---

# What to Do If Your Update to Ubuntu 18.04 Gets Stuck

```bash
sudo do-release-upgrade
```
...

```bash
Setting up libnih1:amd64 (1.0.3-6ubuntu2) ...
```
If it freezes here

Open another terminal or something and restart the system.

(Just in case, check `top` to see if there are any running processes)

```bash
$ sudo reboot
```

After rebooting,

```bash
$ sudo apt update
```
When you try this

```bash
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.
```

Since such an error appeared

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

If errors occur, error handling commands are often displayed, so read them carefully and

```bash
sudo apt update -y; sudo apt upgrade -y;
```

Make sure no errors are displayed, and once the errors are gone

```bash
sudo reboot
```

Pitfall

If you are using `venv` linked to Python 3.5 -> Python 3.6, it will break. Since it's an opportunity, you should recreate the `venv` with Python 3.6.

```bash
python3.6 -m venv venv
```

When installing MySQL 5.7, there might be a conflict, and `mysql-server` may not be installed.

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

After cancelling, remove it temporarily

```bash
sudo apt remove mysql-server
```

It might be easier to reinstall after the upgrade is complete. Be sure to back up the DB just in case.

```bash
sudo apt install mysql-server
```
