1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Ubuntu 20.04 LTS から Ubuntu 22.04 LTS のアップグレードを試みたらUnofficial software packages not provided by Ubuntuがあるといわれて詰まった

Posted at

ゴールデンウィークで時間に余裕がある(?)ため、WSL2で動かしているUbuntu 20.04.4 LTSをUbuntu 22.04 LTSへアップグレードしようと思った。
まずは次の記事を参考にした:

いつもどおりパッケージのアップデートと依存解決を行う。

$ sudo apt update && sudo apt upgrade

ディストリビューションアップグレードの依存解決を行う。

$ sudo apt dist-upgrade && sudo apt install update-manager-core

異常なし。

relese-upgradeの設定ファイルをvimで覗いて編集。

$ sudo vim /etc/update-manager/release-upgrades

Prompt の値を ltsにするためだが、もともとなっていたので変更の必要はなかった。

Prompt = lts

アップデートを実行する。

$ sudo do-release-upgrade -d

なんか詰まった。

Get:38 http://ftp.jaist.ac.jp/pub/Linux/ubuntu jammy-security/universe Translation-en [6004 B]
Get:39 http://ftp.jaist.ac.jp/pub/Linux/ubuntu jammy-security/universe amd64 c-n-f Metadata [412 B]
Get:40 http://ftp.jaist.ac.jp/pub/Linux/ubuntu jammy-security/multiverse amd64 c-n-f Metadata [116 B]
Fetched 23.3 MB in 6s (3272 kB/s)

Checking package manager
Reading package lists... Done
Building dependency tree
Reading state information... Done

Calculating the changes

Calculating the changes

Could not calculate the upgrade

An unresolvable problem occurred while calculating the upgrade.

This was likely caused by:
* Unofficial software packages not provided by Ubuntu
Please use the tool 'ppa-purge' from the ppa-purge
package to remove software from a Launchpad PPA and
try the upgrade again.

If none of this applies, then please report this bug using the
command 'ubuntu-bug ubuntu-release-upgrader-core' in a terminal. If
you want to investigate this yourself the log files in
'/var/log/dist-upgrade' will contain details about the upgrade.
Specifically, look at 'main.log' and 'apt.log'.


Restoring original system state

Aborting
Reading package lists... Done
Building dependency tree
Reading state information... Done
=== Command detached from window (Fri Apr 29 22:53:41 2022) ===
=== Command terminated with exit status 1 (Fri Apr 29 22:53:52 2022) ===

を参考にしたが、だめだった。次に

を参考に

$ grep Foreign /var/log/dist-upgrade/main.log
2022-04-29 23:13:55,012 DEBUG Foreign: nodejs

となったので、nodejsが邪魔だと発覚した。いらないので消した。

$ sudo apt-get remove nodejs

もういちどアップデートを実行すると、できた。めでたし。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?