Cannot upgrade kernel and modules

Hi, i have trouble during dist upgrade process. Can you advice me, what to do, to be able to fix this issue ?

vendhost@term2:~$ sudo apt dist-upgrade
Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… Done
The following packages were automatically installed and are no longer required:
linux-headers-4.15.0-144 linux-headers-4.15.0-144-generic
Use ‘sudo apt autoremove’ to remove them.
The following NEW packages will be installed:
linux-headers-4.15.0-147 linux-headers-4.15.0-147-generic
The following packages will be upgraded:
apt libapt-inst2.0 libapt-pkg5.0 libopenexr22 librados2 librbd1 linux-base linux-headers-generic linux-libc-dev nfs-common nodejs thunderbird
thunderbird-gnome-support
13 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 86.6 MB of archives.
After this operation, 86.2 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 Index of /ubuntu-ports bionic-updates/main arm64 libapt-pkg5.0 arm64 1.6.14 [769 kB]
Get:2 Index of /node_14.x/ bionic/main arm64 nodejs arm64 14.17.2-1nodesource1 [24.4 MB]
Get:3 Index of /ubuntu-ports bionic-updates/main arm64 apt arm64 1.6.14 [1,171 kB]
Get:4 Index of /ubuntu-ports bionic-updates/main arm64 libapt-inst2.0 arm64 1.6.14 [56.7 kB]
Get:5 Index of /ubuntu-ports bionic-updates/main arm64 linux-base all 4.5ubuntu1.6 [17.9 kB]
Get:6 Index of /ubuntu-ports bionic-updates/main arm64 libopenexr22 arm64 2.2.0-11.1ubuntu1.7 [521 kB]
Get:7 Index of /ubuntu-ports bionic-updates/main arm64 librbd1 arm64 12.2.13-0ubuntu0.18.04.8 [852 kB]
Get:8 Index of /ubuntu-ports bionic-updates/main arm64 librados2 arm64 12.2.13-0ubuntu0.18.04.8 [2,553 kB]
Get:9 Index of /ubuntu-ports bionic-updates/main arm64 linux-headers-4.15.0-147 all 4.15.0-147.151 [10.9 MB]
Get:10 Index of /ubuntu-ports bionic-updates/main arm64 linux-headers-4.15.0-147-generic arm64 4.15.0-147.151 [889 kB]
Get:11 Index of /ubuntu-ports bionic-updates/main arm64 linux-headers-generic arm64 4.15.0.147.134 [2,504 B]
Get:12 Index of /ubuntu-ports bionic-updates/main arm64 linux-libc-dev arm64 4.15.0-147.151 [968 kB]
Get:13 Index of /ubuntu-ports bionic-updates/main arm64 nfs-common arm64 1:1.3.4-2.1ubuntu5.5 [186 kB]
Get:14 Index of /ubuntu-ports bionic-updates/main arm64 thunderbird arm64 1:78.11.0+build1-0ubuntu0.18.04.2 [43.3 MB]
Get:15 Index of /ubuntu-ports bionic-updates/main arm64 thunderbird-gnome-support arm64 1:78.11.0+build1-0ubuntu0.18.04.2 [8,640 B]
Fetched 86.6 MB in 30s (2,848 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database … 209463 files and directories currently installed.)
Preparing to unpack …/libapt-pkg5.0_1.6.14_arm64.deb …
Unpacking libapt-pkg5.0:arm64 (1.6.14) over (1.6.13) …
Setting up libapt-pkg5.0:arm64 (1.6.14) …
(Reading database … 209463 files and directories currently installed.)
Preparing to unpack …/archives/apt_1.6.14_arm64.deb …
Unpacking apt (1.6.14) over (1.6.13) …
Setting up apt (1.6.14) …
(Reading database … 209463 files and directories currently installed.)
Preparing to unpack …/00-libapt-inst2.0_1.6.14_arm64.deb …
Unpacking libapt-inst2.0:arm64 (1.6.14) over (1.6.13) …
Preparing to unpack …/01-linux-base_4.5ubuntu1.6_all.deb …
Unpacking linux-base (4.5ubuntu1.6) over (4.5ubuntu1.2) …
Preparing to unpack …/02-libopenexr22_2.2.0-11.1ubuntu1.7_arm64.deb …
Unpacking libopenexr22:arm64 (2.2.0-11.1ubuntu1.7) over (2.2.0-11.1ubuntu1.6) …
Preparing to unpack …/03-librbd1_12.2.13-0ubuntu0.18.04.8_arm64.deb …
Unpacking librbd1 (12.2.13-0ubuntu0.18.04.8) over (12.2.13-0ubuntu0.18.04.7) …
Preparing to unpack …/04-librados2_12.2.13-0ubuntu0.18.04.8_arm64.deb …
Unpacking librados2 (12.2.13-0ubuntu0.18.04.8) over (12.2.13-0ubuntu0.18.04.7) …
Selecting previously unselected package linux-headers-4.15.0-147.
Preparing to unpack …/05-linux-headers-4.15.0-147_4.15.0-147.151_all.deb …
Unpacking linux-headers-4.15.0-147 (4.15.0-147.151) …
Selecting previously unselected package linux-headers-4.15.0-147-generic.
Preparing to unpack …/06-linux-headers-4.15.0-147-generic_4.15.0-147.151_arm64.deb …
Unpacking linux-headers-4.15.0-147-generic (4.15.0-147.151) …
Preparing to unpack …/07-linux-headers-generic_4.15.0.147.134_arm64.deb …
Unpacking linux-headers-generic (4.15.0.147.134) over (4.15.0.144.131) …
Preparing to unpack …/08-linux-libc-dev_4.15.0-147.151_arm64.deb …
Unpacking linux-libc-dev:arm64 (4.15.0-147.151) over (4.15.0-144.148) …
Preparing to unpack …/09-nfs-common_1%3a1.3.4-2.1ubuntu5.5_arm64.deb …
Unpacking nfs-common (1:1.3.4-2.1ubuntu5.5) over (1:1.3.4-2.1ubuntu5.3) …
Preparing to unpack …/10-nodejs_14.17.2-1nodesource1_arm64.deb …
Detected old npm client, removing…
Unpacking nodejs (14.17.2-1nodesource1) over (14.17.1-1nodesource1) …
Preparing to unpack …/11-thunderbird_1%3a78.11.0+build1-0ubuntu0.18.04.2_arm64.deb …
Unpacking thunderbird (1:78.11.0+build1-0ubuntu0.18.04.2) over (1:78.8.1+build1-0ubuntu0.18.04.1) …
Preparing to unpack …/12-thunderbird-gnome-support_1%3a78.11.0+build1-0ubuntu0.18.04.2_arm64.deb …
Unpacking thunderbird-gnome-support (1:78.11.0+build1-0ubuntu0.18.04.2) over (1:78.8.1+build1-0ubuntu0.18.04.1) …
Setting up nvidia-l4t-bootloader (32.5.1-20210614115125) …
3448-300-0000–1–jetson-nano-devkit-sda1
Starting bootloader post-install procedure.
ERROR. Procedure for bootloader update FAILED.
Cannot install package. Exiting…
dpkg: error processing package nvidia-l4t-bootloader (–configure):
installed nvidia-l4t-bootloader package post-installation script subprocess returned error exit status 1
Setting up libapt-inst2.0:arm64 (1.6.14) …
Setting up nvidia-l4t-xusb-firmware (32.5.1-20210614115125) …
3448-300-0000–1–jetson-nano-devkit-sda1
Starting xusb firmware post-install procedure.
ERROR. Procedure for xusb firmware update FAILED.
Cannot install package. Exiting…
dpkg: error processing package nvidia-l4t-xusb-firmware (–configure):
installed nvidia-l4t-xusb-firmware package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of nvidia-l4t-initrd:
nvidia-l4t-initrd depends on nvidia-l4t-xusb-firmware (= 32.5.1-20210614115125); however:
Package nvidia-l4t-xusb-firmware is not configured yet.

dpkg: error processing package nvidia-l4t-initrd (–configure):
dependency problems - leaving unconfigured
Setting up nodejs (14.17.2-1nodesource1) …
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up linux-headers-4.15.0-147 (4.15.0-147.151) …
Setting up nfs-common (1:1.3.4-2.1ubuntu5.5) …
Setting up linux-base (4.5ubuntu1.6) …
Setting up linux-libc-dev:arm64 (4.15.0-147.151) …
Setting up libopenexr22:arm64 (2.2.0-11.1ubuntu1.7) …
Setting up thunderbird (1:78.11.0+build1-0ubuntu0.18.04.2) …
Setting up librados2 (12.2.13-0ubuntu0.18.04.8) …
Setting up thunderbird-gnome-support (1:78.11.0+build1-0ubuntu0.18.04.2) …
Setting up linux-headers-4.15.0-147-generic (4.15.0-147.151) …
/etc/kernel/header_postinst.d/dkms:

  • dkms: running auto installation service for kernel 4.15.0-147-generic

Kernel preparation unnecessary for this kernel. Skipping…

Building module:
cleaning build area…
make -j4 KERNELRELEASE=4.15.0-147-generic KERNEL_DIR=/lib/modules/4.15.0-147-generic/build all…
cleaning build area…

DKMS: build completed.

v4l2loopback.ko:
Running module version sanity check.

  • Original module
    • No original module exists within this kernel
  • Installation
    • Installing to /lib/modules/4.15.0-147-generic/updates/dkms/

depmod…

DKMS: install completed.
…done.
Setting up linux-headers-generic (4.15.0.147.134) …
Setting up librbd1 (12.2.13-0ubuntu0.18.04.8) …
Processing triggers for libc-bin (2.27-3ubuntu1.4) …
Processing triggers for systemd (237-3ubuntu10.48) …
Processing triggers for man-db (2.8.3-2ubuntu0.1) …
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) …
Processing triggers for hicolor-icon-theme (0.17-2) …
Processing triggers for mime-support (3.60ubuntu1) …
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) …
Processing triggers for bamfdaemon (0.5.3+18.04.20180207.2-0ubuntu1) …
Rebuilding /usr/share/applications/bamf-2.index…
Errors were encountered while processing:
nvidia-l4t-bootloader
nvidia-l4t-xusb-firmware
nvidia-l4t-initrd
E: Sub-process /usr/bin/dpkg returned an error code (1)
vendhost@term2:~$

hello mernov,

may I know which JetPack release you’re using,
had you tried with apt update and fetch the package again?
thanks

Hi, if i understand you right, you mean this: # R32 (release), REVISION: 5.1, GCID: 27362550, BOARD: t210ref, EABI: aarch64, DATE: Wed May 19 18:07:59 UTC 2021
And yes, i did a recent update, and tried to dist-upgrade again. Still the same errors.

hello mernov,

my meant… $ sudo apt update and $ sudo apt dist-upgrade

FYI,
I’ve based-on r32.5.1 to execute $ apt list --upgradable, and installing bootloader package for confirmation since you’re having error on this.
I’ve upgrade to 32.5.1-20210614115125, and it’s complete.
for example,

$ sudo apt-get install nvidia-l4t-bootloader
...

Preparing to unpack .../nvidia-l4t-bootloader_32.5.1-20210614115125_arm64.deb ...
Unpacking nvidia-l4t-bootloader (32.5.1-20210614115125) over (32.5.1-20210219084526) ...
...
Setting up nvidia-l4t-bootloader (32.5.1-20210614115125) ...
3448-300-0002--1--jetson-nano-devkit-emmc-mmcblk0p1
Starting bootloader post-install procedure.
Update bootloader completed.
Reboot the target system for changes to take effect.

could you please try again,
thanks

Ok, i did as you told me, but still have this issue

vendhost@term2:~$ sudo apt update && $ sudo apt dist-upgrade
Hit:1 Index of /ubuntu-ports bionic InRelease
Get:2 Index of /ubuntu-ports bionic-updates InRelease [88.7 kB]
Hit:3 Index of /node_14.x/ bionic InRelease
Hit:4 https://repo.download.nvidia.com/jetson/common r32.5 InRelease
Hit:5 https://repo.download.nvidia.com/jetson/t210 r32.5 InRelease
Get:6 Index of /ubuntu-ports bionic-backports InRelease [74.6 kB]
Get:7 Index of /ubuntu-ports bionic-security InRelease [88.7 kB]
Get:8 Index of /ubuntu-ports bionic-updates/main arm64 Packages [1,297 kB]
Get:9 Index of /ubuntu-ports bionic-updates/main arm64 DEP-11 Metadata [288 kB]
Get:10 Index of /ubuntu-ports bionic-updates/universe arm64 DEP-11 Metadata [284 kB]
Get:11 Index of /ubuntu-ports bionic-backports/universe arm64 DEP-11 Metadata [9,272 B]
Get:12 Index of /ubuntu-ports bionic-security/main arm64 DEP-11 Metadata [42.3 kB]
Get:13 Index of /ubuntu-ports bionic-security/universe arm64 DEP-11 Metadata [55.5 kB]
Fetched 2,228 kB in 4s (634 kB/s)
Reading package lists… Done
Building dependency tree
Reading state information… Done
All packages are up to date.
-bash: $: command not found
vendhost@term2:~$ sudo apt dist-upgrade
Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up nvidia-l4t-bootloader (32.5.1-20210614115125) …
3448-300-0000–1–jetson-nano-devkit-sda1
Starting bootloader post-install procedure.
ERROR. Procedure for bootloader update FAILED.
Cannot install package. Exiting…
dpkg: error processing package nvidia-l4t-bootloader (–configure):
installed nvidia-l4t-bootloader package post-installation script subprocess returned error exit status 1
Setting up nvidia-l4t-xusb-firmware (32.5.1-20210614115125) …
3448-300-0000–1–jetson-nano-devkit-sda1
Starting xusb firmware post-install procedure.
ERROR. Procedure for xusb firmware update FAILED.
Cannot install package. Exiting…
dpkg: error processing package nvidia-l4t-xusb-firmware (–configure):
installed nvidia-l4t-xusb-firmware package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of nvidia-l4t-initrd:
nvidia-l4t-initrd depends on nvidia-l4t-xusb-firmware (= 32.5.1-20210614115125); however:
Package nvidia-l4t-xusb-firmware is not configured yet.

dpkg: error processing package nvidia-l4t-initrd (–configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
nvidia-l4t-bootloader
nvidia-l4t-xusb-firmware
nvidia-l4t-initrd
E: Sub-process /usr/bin/dpkg returned an error code (1)
vendhost@term2:~$

Is your kernel version still the same one as the original jetpack?

Are you booting from a external usb drive?

Do you want to let dist-upgrade to upgrade your system to new jetpack release? Or you just want to let other 3rdparty tools to get upgraded?

  1. My current kernel version is 4.9.201-tegra .
  2. Yes, i’m booting from USB 3.0 external SSD drive.
  3. I see no problem upgrading the system to the latest jetpack and it’s packages.

The above confuses me. In theory it finished the “apt update” command, and then could not find apt dist-upgrade, or else could not find a command triggered from “apt update”. Do you get a different result if you manually run these two commands?

  1. sudo apt update
  2. sudo apt dist-upgrade

…versus a single line command:
sudo apt update and $ sudo apt dist-upgrade
?

I am not sure what do you mean “I see no problem upgrading the system to the latest jetpack and it’s packages.”

The error you are hitting now is the upgrade error.

By default, dist-upgrade and apt upgrade both will upgrade the jetpack version on your device to latest release.

However, such upgrade does not allow the customization. For example, booting from usb ssd is one kind of customization. And now it causes the bootloader related deb file update fails.

That is why you see these logs.

Setting up nvidia-l4t-bootloader (32.5.1-20210614115125) …
3448-300-0000–1–jetson-nano-devkit-sda1
Starting bootloader post-install procedure.
ERROR. Procedure for bootloader update FAILED.
Cannot install package. Exiting…
dpkg: error processing package nvidia-l4t-bootloader (–configure):
installed nvidia-l4t-bootloader package post-installation script subprocess returned error exit status 1
Setting up nvidia-l4t-xusb-firmware (32.5.1-20210614115125) …
3448-300-0000–1–jetson-nano-devkit-sda1
Starting xusb firmware post-install procedure.
ERROR. Procedure for xusb firmware update FAILED.
Cannot install package. Exiting…

Thus, back to your original question. What is your goal exactly? Your jetpack version is already on rel-32.5.1, the kernel and modules that NVIDIA provided are already up-to-date. What “update” do you need here?

Em… Yes, it boots from the SSD disk ok. But i can’t do the upgrade of those packages:
nvidia-l4t-bootloader
nvidia-l4t-xusb-firmware
nvidia-l4t-initrd

It was ok before. But now it gives me an error. That’s why i came here for help. There’s an official manual how to boot from SSD disk drive, so i see no problem with. I need only to fix these errors on the bootloader packages, why it doesn’t want to install correctly

I don’t know where to start. But the fact is even you follow the official document to boot from ssd. The OTA upgrade may still get ruined or ruin the boot process. OTA upgrade does not support to boot from ssd. The debian package just has fixed content inside. It will bring your setting back to default jetpack. Since default jetpack does not “boot from ssd”, after you upgrade this, your setting for “booting from ssd” may be gone.

These packages don’t want to install because our bootloader update tool detects some customization on your board.
Currently, if you want to debug the bootloader update, please dump below node

cat /etc/nv_boot_control.conf

But if you don’t want to let your setting be gone. Then you don’t need to do debug this issue at all. Just remove NVIDIA related update from the source list.
That was why I kept asking you what do you want to achieve here.

I’d like to still be able to get the updates, and want to fix the issue with failed packages.

That’s a debug info from the system:

vendhost@term2:~$ cat /etc/nv_boot_control.conf
TNSPEC 3448-400-0000-F.0-1-0-jetson-nano-devkit-sda1
COMPATIBLE_SPEC 3448-300-0000–1–jetson-nano-devkit-sda1
TEGRA_CHIPID 0x21
TEGRA_OTA_BOOT_DEVICE /dev/mtdblock0
TEGRA_OTA_GPT_DEVICE /dev/mtdblock0

vendhost@term2:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 16M 1 loop
sda 8:0 0 111.8G 0 disk
└─sda1 8:1 0 111.8G 0 part /
mtdblock0 31:0 0 4M 0 disk
zram0 252:0 0 495.5M 0 disk [SWAP]
zram1 252:1 0 495.5M 0 disk [SWAP]
zram2 252:2 0 495.5M 0 disk [SWAP]
zram3 252:3 0 495.5M 0 disk [SWAP]
vendhost@term2:~$

Hello,

Confirmed there is no fix for this. It is just not supported. If you boot the file system from the external drive, then the bootloader update debian package will not work.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.