0
1

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 3 years have passed since last update.

Ubuntuでupdateすると毎回Warningが出る

Posted at

起こったこと

いつものように apt updateなどしていると、以下の表示が毎回現れるようになりました。

update-initramfs: Generating /boot/initrd.img-5.4.0-71-generic
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8125a-3.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168fp-3.fw for module r8169
I: The initramfs will attempt to resume from /dev/sdb3
I: (UUID=*****(怖いので伏せ字))
I: Set the RESUME variable to override this.

initramfsのアップデートが毎回うまく行っていない?
でもapt update周りはできてるぽくて、上記Warningがでても"Already up to date"とか言われます。
とはいえなんだか気持ち悪いので解決しようと思い、ネットでぼちぼち調べました。

実行環境

$ cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04.5 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.5 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

解決方法

問題としては "missing firmware" 部分にあったっぽくて、とりあえず解決しました。
まず、無いものは以下から取ってくる。
普通にブラウザからダウンロードしましたが、wgetでも良い。それだと次の手順が飛ばせるため。
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/rtl_nic
私の場合はrtl8125a-3.fwとrtl8168fp-3.fwの2つ。

つぎに、メッセージに書かれている場所にコピー(移動でもいいと思う)。wgetで既に落とし込んでる場合はこれは飛ばす。

$ sudo cp rtl8168fp-3.fw /lib/firmware/rtl_nic/rtl8168fp-3.fw
$ sudo cp rtl8168fp-3.fw /lib/firmware/rtl_nic/rtl8168fp-3.fw

最後に、以下コマンドを実行して何もWarningが出なければ成功!

$ sudo update-initramfs -u

ずっとIssueの方で調べてたのですが、結果が出なかったのでWarningの方で調べ直しました、すぐ解決した...

参考にしたサイト

0
1
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?