[Share Experiences] How to solve system update failure or dependency errors?
Experiences and Insight 1367 views · 2 replies ·
deepin小助手
Super Moderator
OM
2023-11-17 02:09
Author
Problem Description
The system update fails or reports a dependency error.
Steps to Follow
1. Use the command "df -h" to check if there is sufficient disk space. If there is not enough space, please clean it up (you can use the Security Center to clean up or manually delete some files and uninstall unnecessary software).
2. If there are third-party repositories in the system, you need to remove them first and switch back to the original system repositories (changing repositories can cause irreversible system issues, so it is not recommended). Then, in the terminal, run "sudo apt update" to check if there are any error logs in the output.
- If "Failed" appears, please check if the network connection is normal.
3. Repair dependencies by running "sudo apt install -f" in the terminal.
4. Try updating the system again (if the network environment is fine, this step should resolve the issue).
Problem Description
The system update fails or reports a dependency error.
Steps to Follow
1. Use the command "df -h" to check if there is sufficient disk space. If there is not enough space, please clean it up (you can use the Security Center to clean up or manually delete some files and uninstall unnecessary software).
2. If there are third-party repositories in the system, you need to remove them first and switch back to the original system repositories (changing repositories can cause irreversible system issues, so it is not recommended). Then, in the terminal, run "sudo apt update" to check if there are any error logs in the output.
- If "Failed" appears, please check if the network connection is normal.
3. Repair dependencies by running "sudo apt install -f" in the terminal.
4. Try updating the system again (if the network environment is fine, this step should resolve the issue).