Unable to Get the Version List for the Document. Please Try Again.
This beginner tutorial shows how to go about fixing the E: Unable to locate package error on Ubuntu Linux.
One of the many ways of installing software in Ubuntu is to employ the apt-get or the apt command. Y'all open a final and employ the programme name to install it similar 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 country information... Washed E: Unable to locate package package_name
The error is self explanatory. Your Linux organization cannot observe the package that you lot are trying to install. But why is it so? Why can information technology non discover the package? Allow'south see some of the actions y'all can take to ready this issue.
Fixing 'Unable to locate bundle error' on Ubuntu
Let'southward see how to troubleshoot this issue one step at a fourth dimension.
i. Check the package name (no, seriously)
This should be the start matter to check. Did you make a typo in the package name? I mean, if you are trying to install vlc and you lot typed vcl, it will surely neglect. Typos are common and so brand sure that y'all have not made whatever mistakes in typing the name of the package.
Also, the commands in Linux are example-sensitive. So make certain that y'all are typing the correct package name. For instance, the command proper name should be vlc, not Vlc or VLC.
2. Update the repository cache
If this is the get-go time you lot are using your arrangement later installing, you should run the update command:
sudo apt update
This command 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 you lot use the install command, apt bundle manager searches the cache to go the package and version data and and then download information technology from its repositories over the network. If the package is not in this cache, your system won't be able to install it.
When you accept a freshly installed Ubuntu system, the cache is empty. This is why you should run the apt update command right after installing Ubuntu or any other distributions based on Ubuntu (like Linux Mint).
Fifty-fifty if its not a fresh install, your apt cache might exist outdated. It's always a good idea to update information technology.
3. Check if package is available for your Ubuntu version
Alright! Y'all checked the proper name of the package and information technology is right. Y'all run the update command to rebuild the cache and yet you come across the unable to locate parcel mistake.
It is possible that the parcel is actually non available. But you lot are post-obit 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 here. Either the package bachelor in Universe repository and your system hasn't enabled it or the package is not available on your Ubuntu version altogether. Don't go confused. I'll explain information technology for you.
First step, bank check the Ubuntu version you are running. Open a concluding and use the following command:
lsb_release -a
Y'all'll get the Ubuntu version number and the codename in the output. The codename is what important here:
[electronic mail protected]:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.3 LTS Release: 18.04 Codename: bionic
As you tin can see here, I am using Ubuntu 18.04 and its codename is bionic. Yous may accept something else but y'all go the gist of what you demand to note hither.
Once you take the version number and the codename, head over to the Ubuntu packages website:
Scroll down a bit on this page and get to the Search function. Y'all'll see a keyword field. Enter the package name (which cannot be found by your system) and and then prepare the correct distribution codename. The section should be 'any'. When you accept set up these 3 details, hit the search push.
This volition testify if the bundle is available for your Ubuntu version and if yes, which repository it belongs to. In my case, I searched for Shutter screenshot tool and this is what it showed me for Ubuntu xviii.04 Bionic version:
In my case, the package name is an exact match. This means the parcel shutter is available for Ubuntu eighteen.04 Bionic simply in the 'Universe repository'. If you are wondering what the heck is Universe repository, please refer to the Ubuntu repository article I had mentioned earlier.
If the intended package is available for your Ubuntu version but it a repository like universe or multiverse, you should enable these additional repositories:
sudo add together-apt-repository universe multiverse
You must likewise update the cache so that your system is aware of the new packages bachelor through these repositories:
sudo apt update
Now if you lot try to install the parcel, things should be fine.
4. Check if you are using an active Ubuntu release
Ubuntu has two major kinds of releases. The regular release is supported for ix months while the long term back up releases are supported for five years.
In either case, if you are using an Ubuntu release that has reached its end of life, you won't be able to install whatever new packages and see this unable to locate package error.
How do you know if yous Ubuntu version is supported or not? Use this simple command to notice it out:
hwe-support-status --verbose
For my supported version, it shows this output:
You are not running a system with a Hardware Enablement Stack. Your system is supported until Apr 2025.
Y'all may forget about Hardware Enablement Stack for the moment. The important data is whether the organization is actively supported. In the higher up example, my system is supported till Apr 2025.
Nothing works, what now?
If Ubuntu Packages website also shows that the bundle is not bachelor for your specific version, then you'll have to find some other ways to install the bundle.
Accept Shutter for example. It's an first-class screenshot tool for Linux only information technology hasn't been updated in years and thus Ubuntu has dropped it from Ubuntu 18.10 and newer versions. How to install it now? Thankfully, some third political party developer created a personal repository (PPA) and y'all can install it using that. [Please read this detailed guide to understand PPA in Ubuntu.] Y'all tin can search for packages and their PPA on Ubuntu'due south Launchpad website.
Do keep in heed that you lot shouldn't add together random (unofficial) PPAs to your repositories listing. I propose sticking with what your distribution provides.
If there are no PPAs, check the official website of the project and see if they provide some culling ways of installing the application. Some projects provide .DEB files or AppImage files. Some projects take switched to Snap packages.
In other words, check the official website of the projection and check if they have changed their installation method.
If cypher works, possibly the project itself is discontinued and if that's the case, you should look for its alternative application.
In the end…
If yous are new to Ubuntu or Linux, things could exist overwhelming. This is why I am roofing some basic topics similar this so that you lot become a improve understanding of how things piece of work in your organisation.
I hope this tutorial helps y'all handling the package mistake in Ubuntu. If you have questions or suggestions, please experience free to ask in the comment department.
harristheablen1986.blogspot.com
Source: https://itsfoss.com/unable-to-locate-package-error-ubuntu/
0 Response to "Unable to Get the Version List for the Document. Please Try Again."
Post a Comment