"sudo apt-get upgrade" fail

agx orin && orin nx jp6.2 开发套件

“sudo apt-get upgrade” fail

dpkg: error processing package nvidia-l4t-kernel-dtbs (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 nvidia-l4t-kernel
 nvidia-l4t-kernel-headers
 nvidia-l4t-jetson-io
 nvidia-l4t-display-kernel
 nvidia-l4t-kernel-dtbs
E: Sub-process /usr/bin/dpkg returned an error code (1)

而且cat /etc/nv_tegra_release也会变,成R36.4.3变成R36.4.4。有没有办法解决此问题,否则无法同步软件

*** Please note that this reply is generated by LLM automatically ***

The issue you’re encountering with sudo apt-get upgrade failing on your Jetson AGX Orin, specifically referencing hashes and package versions, suggests a problem with the package manager’s ability to verify the integrity of the packages it’s trying to install or upgrade. This can be due to various reasons such as corrupted package indexes, issues with the package sources, or problems with the network connection during the upgrade process.

Given the context, here are some steps and considerations to help resolve the issue:

  1. Check Network Connection: Ensure your Jetson AGX Orin has a stable internet connection. Issues with the network can prevent apt from successfully downloading and verifying packages.

  2. Update Package Index: Sometimes, the package index can become outdated or corrupted. Try updating the package index before running the upgrade:

    sudo apt-get update
    

    If this fails, you might need to clean the package index and then update:

    sudo apt-get clean
    sudo apt-get update
    
  3. Fix Broken Packages: If there are broken packages, apt might fail to upgrade. You can try fixing these packages:

    sudo apt-get install -f
    

    Then, try the upgrade again.

  4. Check Sources: Ensure that your package sources are correctly configured. You can check the sources list:

    cat /etc/apt/sources.list
    

    Make sure the sources are correct and not referencing any non-existent or problematic repositories.

  5. Clean and Autoremove: Cleaning up unnecessary packages and removing unused dependencies can sometimes resolve issues:

    sudo apt-get autoremove
    sudo apt-get clean
    
  6. Reconfigure Package Manager: If the issue persists, you might need to reconfigure the package manager:

    sudo dpkg --configure -a
    
  7. Manual Package Repair: If a specific package is causing the issue (as indicated by the error message), you might need to manually repair or reinstall that package. However, this should be done with caution as it can potentially lead to further issues if not done correctly.

  8. Check for Corrupted Files: If none of the above steps work, it’s possible that there are corrupted files in the package manager’s cache or on the system. You might need to manually inspect and possibly remove these files.

  9. Revert to a Previous Version: If you’re upgrading from a specific version (like JP6.2) and encountering issues, you might consider reverting to a previous version known to work, if possible, and then try upgrading again.

  10. Seek Specific Solutions: Given the specific error messages you’re encountering (e.g., f6f069bad6e8994c51e881d33d25eee, 19201440, 360 KB, 410e8bf2f078921957d3621cd42544a, 19201440, 366 KB), you might find it helpful to search for these exact strings along with your Jetson model and the error you’re seeing. Sometimes, specific solutions are available for particular error messages.

  11. Consult Official Documentation and Forums: NVIDIA provides extensive documentation and community forums for Jetson devices. Consulting these resources for specific issues related to your device model and the software versions you’re using can be very helpful.

Remember, when working with package managers and system upgrades, it’s always a good idea to back up your data and ensure you have a recovery plan in case something goes wrong.

*** Please give the thumbs up if you get answers you like. Or provide feedback to help us improve the answer. ***

Hi,

我們建議直接 reflash.

若需要用 sudo apt upgade

請 comment 掉 /etc/apt/sources.list.d/nvidia-l4t-apt-source.list


# SPDX-FileCopyrightText: Copyright (c) 2019-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: LicenseRef-NvidiaProprietary
#
# NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
# property and proprietary rights in and to this material, related
# documentation and any modifications thereto. Any use, reproduction,
# disclosure or distribution of this material and related documentation
# without an express license agreement from NVIDIA CORPORATION or
# its affiliates is strictly prohibited.

+#deb https://repo.download.nvidia.com/jetson/common r36.4 main
+#deb https://repo.download.nvidia.com/jetson/t234 r36.4 main
+#deb https://repo.download.nvidia.com/jetson/ffmpeg r36.4 main

Thanks

修改nvidia-l4t-apt-source.list文件还是没有作用

但是只要执行upgrade之后,/etc/apt/sources.list.d/nvidia-l4t-apt-source.list内容就会变成r36.4.4 main

Hi,

請問有在 修改完文件之後 重跑

sudo apt update

來更改apt source 嗎?

謝謝

不是,修改修改nvidia-l4t-apt-source.list文件内容

#deb https://repo.download.nvidia.com/jetson/common r36.4 main
#deb https://repo.download.nvidia.com/jetson/t234 r36.4 main
#deb https://repo.download.nvidia.com/jetson/ffmpeg r36.4 main

但是只要执行upgrade之后,/etc/apt/sources.list.d/nvidia-l4t-apt-source.list内容就会变成r36.4.4 main。

Hi

我的意思是

  1. 確認現在的 bsp version
cat /etc/nv_tegra_release 
# R36 (release), REVISION: 4.0, GCID: 37537400, BOARD: generic, EABI: aarch64, DATE: Fri Sep 13 04:36:44 UTC 2024
# KERNEL_VARIANT: oot
TARGET_USERSPACE_LIB_DIR=nvidia
TARGET_USERSPACE_LIB_DIR_PATH=usr/lib/aarch64-linux-gnu/nvidia
  1. 修改 nvidia-l4t-apt-source.list
#deb https://repo.download.nvidia.com/jetson/common r36.4 main
#deb https://repo.download.nvidia.com/jetson/t234 r36.4 main
#deb https://repo.download.nvidia.com/jetson/ffmpeg r36.4 main
  1. 更改 apt src
sudo apt update
  1. 執行 upgrade
sudo apt upgrade
  1. 確認系統保持原樣
cat /etc/nv_tegra_release 
# R36 (release), REVISION: 4.0, GCID: 37537400, BOARD: generic, EABI: aarch64, DATE: Fri Sep 13 04:36:44 UTC 2024
# KERNEL_VARIANT: oot
TARGET_USERSPACE_LIB_DIR=nvidia
TARGET_USERSPACE_LIB_DIR_PATH=usr/lib/aarch64-linux-gnu/nvidia
  1. upgrade 36.4.4 改回 nvidia-l4t-apt-source.list
deb https://repo.download.nvidia.com/jetson/common r36.4 main
deb https://repo.download.nvidia.com/jetson/t234 r36.4 main
deb https://repo.download.nvidia.com/jetson/ffmpeg r36.4 main
  1. 更改 apt src
sudo apt update
  1. 執行 upgrade
sudo apt upgrade
  1. 確認系統 upgrade 到 36.4.4
cat /etc/nv_tegra_release 
# R36 (release), REVISION: 4.4, GCID: 41062509, BOARD: generic, EABI: aarch64, DATE: Mon Jun 16 16:07:13 UTC 2025
# KERNEL_VARIANT: oot
TARGET_USERSPACE_LIB_DIR=nvidia
TARGET_USERSPACE_LIB_DIR_PATH=usr/lib/aarch64-linux-gnu/nvidia

如果要保留原系統,請在修改文件之後,先跑sudo apt update 更新 apt

再跑 sudo apt upgrade

謝謝

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