Software⏱️ 3 min read📅 2026-06-11

How to Fix: Linux Ubuntu System Error

Error fixing Ubuntu system access rights issue.

Quick Answer: Try using `sudo chown -R ubuntu:ubuntu /usr` to set the correct ownership and permissions for the `/usr` directory.

The error occurs when you attempt to change the ownership of the /usr directory and its contents to the user 'USER', but it fails. This can lead to various system issues, including problems with internet connectivity and USB device detection.

This issue is frustrating because it prevents you from accessingyour system's functionality, especially when trying to install programs or use external devices. However, don't worry; we'll guide you through the steps to resolve this problem.

🔍 Why This Happens

  • The primary reason for this error is that changing the ownership of /usr and its contents requires superuser privileges. When you run the command 'sudo chown -R USER /usr', it may not work due to permissions issues or other system limitations.
  • Another possible cause could be conflicts with system packages or dependencies, which might prevent the change from taking effect.

✅ Best Solutions to Fix It

Restoring System Permissions

  1. Step 1: Firstly, log in as the root user to regain control over your system. You can do this by running 'sudo su' and entering your password.
  2. Step 2: Next, run the command 'chown -R root:root /usr' to set the ownership of /usr back to the default 'root' user. This will reset all permissions and ensure that the system is working as intended.
  3. Step 3: After restoring the system permissions, try running 'sudo chown -R USER /usr' again to change the ownership to your desired user. If you encounter any issues, you may need to adjust the file system hierarchy or reinstall packages.

Reinstalling Packages

  1. Step 1: If restoring system permissions doesn't work, you can try reinstalling the affected packages using 'apt-get' or 'dpkg'. This will remove the problematic files and restore the package list.
  2. Step 2: Run 'sudo apt-get purge ' (or 'sudo dpkg -r ') to remove the package. Then, run 'sudo apt-get install ' (or 'sudo dpkg -i .deb') to reinstall it.

🎯 Final Words

To summarize, if you're experiencing issues with changing the ownership of /usr and its contents, try restoring system permissions by running 'chown -R root:root /usr' followed by 'sudo chown -R USER /usr'. If this doesn't work, consider reinstalling packages using 'apt-get' or 'dpkg'. Remember to back up important files before attempting any of these steps, and if you're still having trouble, don't hesitate to seek further assistance.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions