ItsmeITItsmeIT
  • Linux
    • Debian
    • Ubuntu
  • PC/Windows
Reading: How to Fix the “Package ‘xxx’ Is Not Installed” Error on Ubuntu
Share
Notification Show More
Font ResizerAa
ItsmeITItsmeIT
Font ResizerAa
  • Categories
    • Linux
    • Debian
    • Ubuntu
    • PC/Windows
Have an existing account? Sign In
Follow US
© 2025 ItsmeIT. All rights reserved.

Home » Linux » Ubuntu » How to Fix the “Package ‘xxx’ Is Not Installed” Error on Ubuntu

How to Fix the “Package ‘xxx’ Is Not Installed” Error on Ubuntu

avatar
By
Loibv
avatar
ByLoibv
The ItsmeIT team – delivering cutting-edge updates, tech trends, and insider knowledge from the world of technology.
Follow:
Last updated: March 21, 2025

The “package ‘xxx’ is not installed” error on Ubuntu occurs when you try to install an application or tool, but it has required dependencies that the system cannot automatically install when you run the command. This article will guide you on how to fix this error in the simplest and easiest way.

Fix Package “xxx” Is Not Installed Ubuntu

Causes of the Error

This error occurs because the Ubuntu system maintains a list of available software packages. If these packages have a version lower than the required version for the installation package, or if they have been replaced with a different package name, the system will throw an error, and you will need to install or upgrade those dependencies.

Steps to Fix the Error

Note: It’s important to correctly distinguish this error. This article specifically addresses the “package ‘xxx’ is not installed” error and does not deal with other errors.

Step 1: Update the System

First, ensure your system is up-to-date with the latest software packages and clean up any unnecessary packages by running the following command:

sudo apt update; sudo apt upgrade;

Step 2: Clean Up Software Packages

Run the following commands to clean up your system before installing new packages:

sudo apt-get clean
sudo apt-get autoremove

Step 3: Install Missing Dependencies

Typically, the “package ‘xxx’ is not installed” error occurs due to missing required dependencies.

Here’s a real-world example when installing Java on Ubuntu 22.04, where the error “package libc6-i386 is not installed” appears.

package is not installed ubuntu
package is not installed

The screenshot below shows that Java 20 requires the libc6-i386 and libc6-x32 packages, but they have not been installed. Therefore, we need to install these two packages using the command:

sudo apt install libc6-i386 libc6-x32 -y
Install depend package for Java Ubuntu
Install depend package for Java Ubuntu

Once these dependencies are successfully installed, I will continue running the Java installation command, which previously encountered the error:

sudo dpkg -i jdk-20 linux-x64.deb

And the result is that Java has been successfully installed on my Ubuntu system.

This is an example of how to install Java software on Ubuntu. If you encounter a similar situation with another software, the solution is the same: When the terminal reports a missing package or a package that needs to be upgraded, simply install that package.

Basically,

“When the terminal reports that something is missing, just copy the exact package name and install it.”

By following these steps, you can easily fix the “package ‘xxx’ is not installed” error on Ubuntu. Remember to check the package name, regularly update your system, and ensure you install all necessary dependencies.

Share This Article
Facebook Reddit Telegram Threads
avatar
ByLoibv
Follow:
The ItsmeIT team – delivering cutting-edge updates, tech trends, and insider knowledge from the world of technology.
Leave a Comment

Leave a Reply Cancel reply

You must be logged in to post a comment.

Most Popular

install wordpress nginx
How to Install WordPress on Ubuntu 22.04/24.04 with Nginx, MariaDB, PHP8.2 (LEMP)
Scan Virus Ubuntu
3 Best Ways to Detect and Remove Malware on Ubuntu/Linux
boot virtualbox from usb
How to Boot from USB in VirtualBox on Ubuntu/Linux
Install SSL Localhost Ubuntu
How to Install SSL on Localhost in Ubuntu / Linux?
fix login error Gnome Online Accounts Ubuntu 22.04
How to Fix GNOME Online Accounts Login Issues on Ubuntu 22.04
Previous Next
ItsmeITItsmeIT
Follow US
© 2025 ItsmeIT. All Rights Reserved.
  • Privacy Policy
  • Terms of Service
Logo ItsmeIT logo
Welcome Back!

Sign in to your account

Continue with Google
Register   |Lost your password?