执行sudo ./apply.sh报异常

执行步骤如下:
sudo tar -vxf Jetson_Linux_R35.5.0_aarch64.tbz2
cd Linux_for_Tegra/
cd rootfs/
sudo tar -jxpf …/…/sample_fs.tbz2
cd …/…/
sudo tar -vxf public_sources.tbz2
cd Linux_for_Tegra/
sudo ./apply_binaries.sh
报异常信息如下:

etting up nvidia-l4t-cuda (35.5.0-20240219203809) ...
Setting up nvidia-l4t-firmware (35.5.0-20240219203809) ...
Setting up nvidia-l4t-init (35.5.0-20240219203809) ...
dpkg: dependency problems prevent configuration of nvidia-l4t-jetsonpower-gui-tools:
 nvidia-l4t-jetsonpower-gui-tools depends on python3-tk; however:
  Package python3-tk is not installed.
 nvidia-l4t-jetsonpower-gui-tools depends on python3-matplotlib; however:
  Package python3-matplotlib is not installed.

dpkg: error processing package nvidia-l4t-jetsonpower-gui-tools (--install):
 dependency problems - leaving unconfigured
Setting up nvidia-l4t-libvulkan (35.5.0-20240219203809) ...
Setting up nvidia-l4t-multimedia-utils (35.5.0-20240219203809) ...
Setting up nvidia-l4t-nvfancontrol (35.5.0-20240219203809) ...
Setting up nvidia-l4t-nvpmodel (35.5.0-20240219203809) ...
dpkg: dependency problems prevent configuration of nvidia-l4t-nvpmodel-gui-tools:
 nvidia-l4t-nvpmodel-gui-tools depends on gir1.2-appindicator3-0.1; however:
  Package gir1.2-appindicator3-0.1 is not installed.

dpkg: error processing package nvidia-l4t-nvpmodel-gui-tools (--install):
 dependency problems - leaving unconfigured
Setting up nvidia-l4t-nvsci (35.5.0-20240219203809) ...
Setting up nvidia-l4t-oem-config (35.5.0-20240219203809) ...
Setting up nvidia-l4t-openwfd (35.5.0-20240219203809) ...
Setting up nvidia-l4t-optee (35.5.0-20240219203809) ...
Setting up nvidia-l4t-pva (35.5.0-20240219203809) ...
Setting up nvidia-l4t-tools (35.5.0-20240219203809) ...
Setting up nvidia-l4t-vulkan-sc (35.5.0-20240219203809) ...
Setting up nvidia-l4t-vulkan-sc-dev (35.5.0-20240219203809) ...
Setting up nvidia-l4t-vulkan-sc-sdk (35.5.0-20240219203809) ...
Setting up nvidia-l4t-wayland (35.5.0-20240219203809) ...
Setting up nvidia-l4t-x11 (35.5.0-20240219203809) ...
Setting up nvidia-l4t-xusb-firmware (35.5.0-20240219203809) ...
Setting up nvidia-l4t-kernel (5.10.192-tegra-35.5.0-20240219203809) ...
Using the existing boot entry 'primary'
Pre-installing kernel package, skip flashing
Setting up nvidia-l4t-kernel-dtbs (5.10.192-tegra-35.5.0-20240219203809) ...
Pre-installing kernel-dtbs package, skip flashing
Setting up nvidia-l4t-kernel-headers (5.10.192-tegra-35.5.0-20240219203809) ...
Setting up nvidia-l4t-bootloader (35.5.0-20240219203809) ...
Pre-installing bootloader package, skip flashing
Setting up nvidia-l4t-3d-core (35.5.0-20240219203809) ...
Setting up nvidia-l4t-gbm (35.5.0-20240219203809) ...
Setting up nvidia-l4t-initrd (35.5.0-20240219203809) ...
Pre-installing initrd package, skip flashing
Setting up nvidia-l4t-jetson-io (35.5.0-20240219203809) ...
Setting up nvidia-l4t-multimedia (35.5.0-20240219203809) ...
Setting up nvidia-l4t-vulkan-sc-samples (35.5.0-20240219203809) ...
Setting up nvidia-l4t-weston (35.5.0-20240219203809) ...
Setting up nvidia-l4t-display-kernel (5.10.192-tegra-35.5.0-20240219203809) ...
Setting up nvidia-l4t-camera (35.5.0-20240219203809) ...
Setting up nvidia-l4t-graphics-demos (35.5.0-20240219203809) ...
Setting up nvidia-l4t-gstreamer (35.5.0-20240219203809) ...
Processing triggers for nvidia-l4t-kernel (5.10.192-tegra-35.5.0-20240219203809) ...
Processing triggers for libc-bin (2.31-0ubuntu9.15) ...
Errors were encountered while processing:
 nvidia-l4t-jetsonpower-gui-tools
 nvidia-l4t-nvpmodel-gui-tools

python3-tk已经安装

test@test:~/3550/Linux_for_Tegra$ sudo apt install python3-tk
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3-tk is already the newest version (3.8.10-0ubuntu1~20.04).
python3-tk set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 44 not upgraded.

gir1.2-appindicator3-0.1也已经安装

test@test:~/3550/Linux_for_Tegra$ sudo apt install gir1.2-appindicator3-0.1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
gir1.2-appindicator3-0.1 is already the newest version (12.10.1+20.04.20200408.1-0ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 44 not upgraded.

python3-matplotlib已安装

test@test:~/3550/Linux_for_Tegra$ sudo apt install python3-matplotlib
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3-matplotlib is already the newest version (3.1.2-1ubuntu4).
0 upgraded, 0 newly installed, 0 to remove and 44 not upgraded.

仍然报一样的错误,请问这是什么问题?

你在host上檢查有沒有裝有什麼用…
你自己build rootfs 沒有GUI套件的話這兩個套件報錯是正常的
不想裝的套件把它從Linux_for_Tegra/nv_tegra/l4t_deb_packages/刪掉就好

下载sample_fs.tbz2系统之前修改文件Linux_for_Tegra/tools/sample/nvubuntu-focal-minimal-aarch64-packages
增加三行
python3-tk
python3-matplotlib
gir1.2-appindicator3-0.1
执行sudo ./apply_binaries.sh不再报错误