Listen to this Post
Linux can be a bit tricky at times, but knowing how to troubleshoot common errors is a game-changer. Here’s a list of 100 Linux errors and solutions to keep in your toolkit. From permission issues to package management errors, this guide has it all.
You Should Know:
1. Permission Denied
Error:
bash: ./script.sh: Permission denied
Solution:
chmod +x script.sh
Verify:
ls -l script.sh
2. Package Installation Failures
Error:
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
Solution:
sudo apt update sudo apt install -f
Force Remove Lock:
sudo rm /var/lib/dpkg/lock sudo dpkg --configure -a
3. Disk Space Full
Check Disk Usage:
df -h
Find Large Files:
sudo du -sh /var/* | sort -rh
Clean Apt Cache:
sudo apt clean
4. Service Not Starting
Error:
Failed to start nginx.service: Unit not found.
Solution:
sudo systemctl start nginx sudo systemctl enable nginx
Check Logs:
journalctl -xe
5. Network Connectivity Issues
Check IP:
ip a
Restart Network:
sudo systemctl restart networking
Test Connection:
ping google.com
6. Broken Dependencies
Fix:
sudo apt --fix-broken install
7. “Command Not Found” Error
Solution:
sudo apt install [missing-package]
8. “Read-Only Filesystem” Error
Remount as Read-Write:
mount -o remount,rw /
9. “No Space Left on Device” (Inodes Full)
Check Inodes:
df -i
Delete Unnecessary Files:
find / -type f -name "*.log" -delete
10. “Too Many Open Files” Error
Increase Limit:
ulimit -n 65536
What Undercode Say
Linux errors can be frustrating, but mastering these troubleshooting steps ensures smooth system operations. Always check logs (journalctl, /var/log/), verify permissions (chmod, chown), and keep your system updated (apt update && apt upgrade). Automation with bash scripts (#!/bin/bash) can help prevent recurring issues.
Key Commands Recap:
- System Info:
uname -a, `lsb_release -a` - Process Management:
ps aux, `kill -9 [PID]` - Networking:
netstat -tuln, `ss -tuln` - File Operations:
grep -r "text" /path/, `find / -name “file”` - Security:
chmod 600 file, `sudo visudo`
Expected Output:
A fully functional Linux system with resolved errors, optimized performance, and secure configurations.
Reference:
References:
Reported By: Akshay Kashyap – Hackers Feeds
Extra Hub: Undercode MoN
Basic Verification: Pass ✅



