![]() The error reads: sudo apt-get install package_name Sometimes, you may encounter an error while trying to install application in this manner. Your Linux system cannot find the package that you are trying to install. Let’s see how to troubleshoot this issue one step at a time.įixing ‘Unable to locate package error’ on Ubuntu But why is it so? Why can it not find the package? Let’s see some of the actions you can take to fix this issue. Typos are one of the main reasons behind 'package not found error' Did you make a typo in the package name? I mean, if you are trying to install vlc and you typed vcl, it will surely fail. ![]() Typos are common, so make sure you have not made any mistakes in typing the package's name.Īlso, the commands in Linux are case-sensitive. So make sure that you are typing the correct package name. For example, the command name should be vlc, not Vlc or VLC. Remember that the installable package name could be different than the popular software name. In Ubuntu, Docker package is docker.io because docker was an existing package. With Snap, VS Code package is named code, not vscode.Ī practical example is installing zlib package on Ubuntu. If this is the first time you are using your system after installing, you should run the update command: sudo apt update And that's numeric 1, not the letter L in small cases. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |