10 Common Linux Problems and How to Fix Them (Beginner-Friendly Guide)
Linux is amazing—fast, powerful, stable—but let's be honest:
sometimes it throws errors that look like they came straight from The Matrix.
If you’re new to Linux (or feel like a “dummy”), this guide is perfect for you.
We’ll go through real problems, explain why they happen, and show exact steps to fix them in a friendly and relaxed way.
Let’s get into it.
1. “Command Not Found”
Why This Happens
Linux simply can’t find the command you typed. Usually because:
-
The program isn’t installed
-
You misspelled the command
-
The file isn’t in your PATH
How to Fix It (Step-by-Step)
Step 1: Check if you typed it correctly
A single typo causes this 90% of the time.
Step 2: Install the command if it doesn’t exist
Ubuntu / Debian:
CentOS / Fedora:
Step 3: If the program exists but cannot run, add it to PATH
Make it permanent:
2. “Permission Denied”
Why This Happens
Linux protects files and directories with strict permissions.
You’re trying to:
-
Run a script without “execute” permission
-
Open a file that belongs to another user
-
Access something that requires admin rights
Fix It Step-by-Step
Step 1: Allow the script to run
Step 2: Use sudo when the command needs root access
Step 3: Fix file ownership if needed
3. Package Manager Errors (APT, DNF, etc.)
Common Errors
-
Unable to locate package
-
Repository not found
-
Dpkg interrupted
-
Failed to lock dpkg
Fix It Step-by-Step
Step 1: Update package lists
Step 2: Fix broken installs
Step 3: If dpkg is locked
4. “Disk Full” Even Though It Looks Empty
Why It Happens
Logs, caches, temporary files, or old kernels can quietly fill your storage.
Fix It Step-by-Step
Step 1: Check your disk
Step 2: Clean the APT cache
Step 3: Remove old kernels
Step 4: Find the biggest folders
5. Internet Not Working (DNS Failures)
Why It Happens
Your DNS resolver isn’t working, or the network service crashed.
Fix It Step-by-Step
Step 1: Check if your network interface is up
Step 2: Restart the network service
Step 3: Test DNS
If IP works but domain doesn’t:
Step 4: Fix /etc/resolv.conf
Add:
6. “Port Already in Use”
Why It Happens
Another program is already using the port you want.
Fix It Step-by-Step
Step 1: Find which process uses the port
Step 2: Stop or kill it
Step 3: Or restart the service
7. Filesystem Becomes Read-Only
Why It Happens
Linux detects a disk error and protects your data by switching to read-only mode.
Fix It Step-by-Step
Step 1: Remount the system
Step 2: Force a filesystem check on next boot
8. SSH Errors (“Permission Denied” or “Timed Out”)
Why It Happens
Permissions wrong, service down, or firewall blocking the port.
Fix It Step-by-Step
Step 1: Restart SSH
Step 2: Fix SSH key permissions
Step 3: Allow SSH in firewall
9. “No Space Left on Device” (Inodes Full)
Why It Happens
Too many tiny files fill up inode space.
Fix It Step-by-Step
Step 1: Check inode usage
Step 2: Find directory with too many files
Step 3: Delete unnecessary files (logs, temp, cache)
10. Frozen Linux System
Why It Happens
Heavy apps, GPU issues, or memory leaks.
Fix It Step-by-Step
Step 1: Open TTY
Press:
Step 2: Kill heavy process
Step 3: Reboot if needed
sudo reboot