User: ubuntu系统安装报错，怎么解决？
root@ubuntu-privileged-pod:/tmp/tmp.juiabsDHQK# ./Ascend-hdk-310p-npu-driver_23.0.1_linux-aarch64.run --full
Verifying archive integrity...  100%   SHA256 checksums are OK. All good.
Uncompressing ASCEND DRIVER RUN PACKAGE  100%  
[Driver] [2024-11-01 09:44:46] [INFO]Start time: 2024-11-01 09:44:46
[Driver] [2024-11-01 09:44:46] [INFO]LogFile: /var/log/ascend_seclog/ascend_install.log
[Driver] [2024-11-01 09:44:46] [INFO]OperationLogFile: /var/log/ascend_seclog/operation.log
[Driver] [2024-11-01 09:44:46] [WARNING]Do not power off or restart the system during the installation/upgrade
[Driver] [2024-11-01 09:44:47] [INFO]set username and usergroup, HwHiAiUser:HwHiAiUser
[Driver] [2024-11-01 09:44:47] [ERROR]The list of missing tools: udevadm,
[Driver] [2024-11-01 09:44:47] [INFO]End time: 2024-11-01 09:44:47
Assistant: It looks like you're encountering an error during the installation of the Ascend driver on your Ubuntu system. The log indicates that the installation process is failing due to a missing tool: `udevadm`. 

To resolve this issue, you can install the missing tool by running the following command in your terminal:

```bash
sudo apt-get install udev
```

After installing `udev`, try running the installation command for the Ascend driver again. If you encounter any further issues, feel free to share the error messages, and I'll be happy to help you troubleshoot!
User: root@ubuntu-privileged-pod:/tmp/tmp.juiabsDHQK# ./Ascend-hdk-310p-npu-driver_23.0.1_linux-aarch64.run --full
Verifying archive integrity...  100%   SHA256 checksums are OK. All good.
Uncompressing ASCEND DRIVER RUN PACKAGE  100%  
[Driver] [2024-11-01 09:45:38] [INFO]Start time: 2024-11-01 09:45:38
[Driver] [2024-11-01 09:45:38] [INFO]LogFile: /var/log/ascend_seclog/ascend_install.log
[Driver] [2024-11-01 09:45:38] [INFO]OperationLogFile: /var/log/ascend_seclog/operation.log
[Driver] [2024-11-01 09:45:38] [WARNING]Do not power off or restart the system during the installation/upgrade
[Driver] [2024-11-01 09:45:38] [INFO]set username and usergroup, HwHiAiUser:HwHiAiUser
[Driver] [2024-11-01 09:45:40] [INFO]driver install type: Rebuild
[Driver] [2024-11-01 09:45:40] [INFO]Rebuilding by kernel path(/lib/modules//build), detail in /var/log/ascend_seclog/ascend_rebuild.log
[Driver] [2024-11-01 09:45:41] [WARNING]Rebuild ko has something wrong, detail in /var/log/ascend_seclog/ascend_rebuild.log
[Driver] [2024-11-01 09:45:41] [INFO]Do you want to try build driver after input kernel absolute path? [y/n]:
n
[Driver] [2024-11-01 09:46:01] [ERROR]Drv_dkms_env_check failed, details in : /var/log/ascend_seclog/ascend_install.log 
[Driver] [2024-11-01 09:46:01] [INFO]Failed to install driver package, please retry after uninstall and reboot!
[Driver] [2024-11-01 09:46:01] [INFO]End time: 2024-11-01 09:46:01
root@ubuntu-privileged-pod:/tmp/tmp.juiabsDHQK# 
Assistant: It looks like the Ascend driver installation is failing due to an issue with rebuilding the kernel module (`ko`). The error suggests that the environment check for DKMS (Dynamic Kernel Module Support) might have failed. Here are some steps you can take to resolve this issue:

1. **Install DKMS and Build-Essential**: Make sure DKMS and other necessary build tools are installed. You can install them using the following command:

   ```bash
   sudo apt-get update
   sudo apt-get install dkms build-essential
   ```

2. **Check Kernel Headers**: Ensure that the appropriate kernel headers for your current kernel version are installed. You can find your current kernel version with:

   ```bash
   uname -r
   ```

   Then, install the headers for your kernel version:

   ```bash
   sudo apt-get install linux-headers-$(uname -r)
   ```

3. **Check Log Files**: Review the log files mentioned in the error messages for more details about the failure. Specifically, check:

   - `/var/log/ascend_seclog/ascend_rebuild.log`
   - `/var/log/ascend_seclog/ascend_install.log`

   These logs might provide more specific information about what went wrong during the rebuild process.

4. **Retry Installation**: After addressing any issues found in the logs and ensuring that all necessary tools are installed, try rerunning the driver installation.

5. **Clean Unsuccessful Installations**: If the installation still fails, you might want to clean any partially installed drivers and retry:

   ```bash
   sudo ./Ascend-hdk-310p-npu-driver_23.0.1_linux-aarch64.run --uninstall
   sudo reboot
   ```

   Then, try the installation again.

Following these steps should help you resolve the kernel module rebuild issues. If you continue to face challenges, please provide more details from the log files to further assist in troubleshooting.
User: root@ubuntu-privileged-pod:/tmp/tmp.juiabsDHQK# apt install net-tools  dkms build-essential linux-headers-$(uname -r) udev -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-headers-5.10.0-136.77.0.157.u121.fos23.aarch64
E: Couldn't find any package by glob 'linux-headers-5.10.0-136.77.0.157.u121.fos23.aarch64'
E: Couldn't find any package by regex 'linux-headers-5.10.0-136.77.0.157.u121.fos23.aarch64'
root@ubuntu-privileged-pod:/tmp/tmp.juiabsDHQK# 
Assistant: