Reading State Information... Done E: Unable to Locate Package Webmin

This beginner tutorial shows how to get about fixing the Due east: Unable to locate package error on Ubuntu Linux.

One of the many ways of installing software in Ubuntu is to use the apt-get or the apt control. Yous open a final and use the program name to install information technology like this:

            sudo apt install package_name          

Sometimes, you may encounter an error while trying to install application in this manner. The error reads:

            sudo apt-get install package_name Reading package lists... Done Edifice dependency tree        Reading state information... Done E: Unable to locate package package_name          

The error is cocky explanatory. Your Linux system cannot observe the package that you are trying to install. But why is it so? Why can information technology not observe the package? Let's see some of the actions you can take to fix this issue.

Fixing 'Unable to locate package error' on Ubuntu

Unable To Locate Package Error Ubuntu

Permit'due south see how to troubleshoot this issue i footstep at a time.

one. Cheque the package name (no, seriously)

This should exist the first affair to check. Did y'all brand a typo in the packet name? I hateful, if you are trying to install vlc and you lot typed vcl, it will surely fail. Typos are common so brand sure that you take not made whatever mistakes in typing the name of the package.

Also, the commands in Linux are case-sensitive. So make sure that y'all are typing the correct package name. For example, the command name should exist vlc, not Vlc or VLC.

ii. Update the repository cache

If this is the offset time y'all are using your system afterwards installing, you lot should run the update command:

            sudo apt update          

This control won't update Ubuntu straightaway. I recommend to get through the concept of Ubuntu repositories. Basically, the 'apt update' command builds a local cache of available packages.

When yous use the install control, apt package managing director searches the cache to get the package and version information and then download it from its repositories over the network. If the packet is not in this cache, your system won't be able to install it.

When you have a freshly installed Ubuntu organization, the cache is empty. This is why you lot should run the apt update command right after installing Ubuntu or any other distributions based on Ubuntu (like Linux Mint).

Even if its not a fresh install, your apt cache might be outdated. Information technology'southward always a skillful idea to update it.

3. Cheque if packet is available for your Ubuntu version

Alright! You checked the name of the package and it is right. You lot run the update command to rebuild the cache and yet you lot run across the unable to locate parcel error.

It is possible that the parcel is really not available. But you are following the instructions mentioned on some website and everyone else seems to exist able to install it like that. What could be the issue?

I can see two things hither. Either the packet available in Universe repository and your system hasn't enabled it or the packet is not available on your Ubuntu version altogether. Don't go dislocated. I'll explicate information technology for you.

Outset step, check the Ubuntu version you are running. Open a terminal and use the post-obit control:

            lsb_release -a          

You'll get the Ubuntu version number and the codename in the output. The codename is what important here:

            [e-mail protected]:~$ lsb_release -a No LSB modules are available. Benefactor ID:	Ubuntu Description:	Ubuntu 18.04.3 LTS Release:	xviii.04 Codename:	bionic          
Ubuntu Version Check
Ubuntu Version Check

Every bit you can see here, I am using Ubuntu 18.04 and its codename is bionic. You may have something else but you get the gist of what you need to note here.

Once y'all have the version number and the codename, caput over to the Ubuntu packages website:

Roll down a bit on this page and get to the Search role. You'll see a keyword field. Enter the package proper noun (which cannot be found by your system) and so set the correct distribution codename. The section should exist 'any'. When you have set these three details, hitting the search button.

Ubuntu Package Search
Ubuntu Package Search

This will show if the package is available for your Ubuntu version and if yep, which repository information technology belongs to. In my case, I searched for Shutter screenshot tool and this is what it showed me for Ubuntu eighteen.04 Bionic version:

Package Search Result
Package Search Result

In my case, the package name is an exact friction match. This ways the package shutter is available for Ubuntu 18.04 Bionic just in the 'Universe repository'. If y'all are wondering what the heck is Universe repository, please refer to the Ubuntu repository commodity I had mentioned earlier.

If the intended bundle is available for your Ubuntu version but information technology a repository like universe or multiverse, you should enable these additional repositories:

            sudo add-apt-repository universe multiverse          

You must likewise update the cache so that your system is aware of the new packages available through these repositories:

            sudo apt update          

At present if you try to install the package, things should be fine.

iv. Check if you are using an active Ubuntu release

Ubuntu has two major kinds of releases. The regular release is supported for nine months while the long term support releases are supported for 5 years.

In either case, if you are using an Ubuntu release that has reached its terminate of life, you won't exist able to install whatever new packages and meet this unable to locate package error.

How exercise you know if you Ubuntu version is supported or non? Use this uncomplicated command to notice information technology out:

            hwe-back up-status --verbose          

For my supported version, it shows this output:

            You are not running a system with a Hardware Enablement Stack. Your organisation is supported until April 2025.          

Yous may forget about Hardware Enablement Stack for the moment. The important information is whether the system is actively supported. In the higher up instance, my system is supported till Apr 2025.

Nothing works, what now?

If Ubuntu Packages website also shows that the package is non available for your specific version, then y'all'll have to detect some other ways to install the packet.

Take Shutter for example. It'southward an excellent screenshot tool for Linux but it hasn't been updated in years and thus Ubuntu has dropped it from Ubuntu 18.10 and newer versions. How to install it at present? Thankfully, some third party programmer created a personal repository (PPA) and you can install it using that. [Please read this detailed guide to understand PPA in Ubuntu.] You can search for packages and their PPA on Ubuntu's Launchpad website.

Practise keep in mind that yous shouldn't add random (unofficial) PPAs to your repositories list. I suggest sticking with what your distribution provides.

If at that place are no PPAs, bank check the official website of the projection and see if they provide some culling ways of installing the application. Some projects provide .DEB files or AppImage files. Some projects have switched to Snap packages.

In other words, cheque the official website of the project and check if they have changed their installation method.

If nada works, perchance the project itself is discontinued and if that's the instance, y'all should look for its alternative awarding.

In the cease…

If you are new to Ubuntu or Linux, things could be overwhelming. This is why I am covering some basic topics like this and then that you become a better understanding of how things work in your system.

I hope this tutorial helps you handling the package mistake in Ubuntu. If yous have questions or suggestions, delight feel gratis to ask in the annotate section.

Donate Itsfoss

jamessyrs1970.blogspot.com

Source: https://itsfoss.com/unable-to-locate-package-error-ubuntu/

0 Response to "Reading State Information... Done E: Unable to Locate Package Webmin"

Postar um comentário

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel