“Unable to locate package” while trying to install packages by apt

1

In the case where tried to install a file:

sudo apt-get install libstdc++.so.6

instead of a package. You get the error message:

E: Unable to locate package libstdc++.so.6 E: Couldn't find any package by regex 'libstdc++.so.6'

because you tried to install a file libstdc++.so.6 that you can't install, because it is located in a debian package.

You can use apt-file to search for the package that contains that file. To install it, type:

sudo apt-get install apt-file

Then you have to update the index.

sudo apt-file update

After that, you can search for the package which contains the file libstdc++.so.6:

sudo apt-file find libstdc++.so.6

Then you find a lot packages that contains the searched file. For this example I paste only one search result:

libstdc++6: /usr/lib/x86_64-linux-gnu/libstdc++.so.6

Then you can install the needed package libstdc++6:

sudo apt-get install...
0 0
2
Hello, I've been searching the internet now for a while and I couldn't really find a clear answer.

Normally this should display when NOT having an internet connection, but I DO have one. So that's where the problem is..

It's pretty simple, trying to install the dhcp-server using " apt-get install dhcp-server " but I get the error " Unable to locate package dhcp-server ".

I do run the command in root, so this could not be the problem. I checked my internet connection by pinging to 8.8.8.8 (google dns servers) with result.

Did I perhaps misspelled something? This should be a pretty basic command, I'm just looking over something.. :/

Looking forward to hear from this forum, I just made an account to get this problem fixed.

Thanks in...

0 0
3

Unable to locate package – while trying to install

There are many questions about this topic. Here I provide a basic/general answer. When apt-get install is unable to locate a package, the package you want
Continue

Eclipse executable launcher error: Unable to locate

you don’t say which OS you’re using, so I’ll suggest that you search for "The Eclipse executable launcher was unable to locate its companion shared library
Continue

How to fix the Eclipse executable launcher was unable …

I am getting the following error, while launching Eclipse: The eclipse executable launcher was unable to locate its companion shared library.
Continue

IBM WebSphere Application Server Update Installer fails …

The Update Installer utility might report a failure while installing or uninstalling a maintenance pack on a WebSphere Application Server product. The
Continue

(Solved) Unable to install printer Operation could not...

0 0
4

In CodeEnvy terminal of the docker container, I try to install tesseract libraries via apt-get, but the package name cannot be located. It works fine in my local Ubuntu (14 / Trusty) docker container, but not on Codenvy (Ubuntu 16 / Xenial).

user@6408be1317f2:~/tomcat8$ sudo apt-get install tesseract-ocr Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package tesseract-ocr

I also tried to install nano, but that package could also not be found.

user@6408be1317f2:~/tomcat8$ sudo apt-get install nano Reading package lists... Done ...
0 0
5

After Upgrading my Current operating System Kali to Kali Version to 2017.2 .unable to install any software with sudo apt-get install

what i a have done

i used the

sudo apt-get update sudo apt-get dist-upgrade reboot

and after Upgrading

i am getting error as

E:Unable to Locate package

tried to upgrade again but it is doing the same

i changed the repo(Resaved the content from the repo of kali linux rolling) details also doing the same but it is continuing the same thing

after that i have done
as the following

apt update ; apt full-upgrade -y ; apt autoremove -y

It's telling me to fix broken by apt --fix-broken install

when i tried to install the broken links it is giving error as

root@Pavan:~# apt --fix-broken install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no...
0 0
6

I have installed devstack for openstack on ubuntu system. I am trying to install quantum-lbaas-agent. I get the error Unable to locate package. I tried changing the the sources list in the /etc/apt/sources.list file. I was unable to edit it and hence I changed permissions to 777 for sources.list. I ran sudo apt-get update after changing the permission. I still get the unable to locate package error. I tried running sudo apt-get upgrade as well. Still there was no progress.

Here is the output of sudo apt-get install quantum-lbaas-agent:

Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package quantum-lbaas-agent

here is my sources.list in the /etc/apt folder:

# deb cdrom:[Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release i386 (20130213)]/ precise main restricted # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb...
0 0
7

I'm running Debian 6.0.6 and trying to install libeigen3-dev using:

sudo apt-get install libeigen3-dev

But I get the following output:

Reading package lists... Done Building dependency tree Reading state information... Done E:Unable to locate package libeigen3-dev

So I looked up libeigen3-dev and I got the following page: http://packages.debian.org/search?keywords=libeigen3-dev

It appears libeigen3 is available, but I need to get it in apt-get for installation on multiple systems using a shell script.

Here's the content of sources.list:

# # deb cdrom:[Debian GNU/Linux 6.0.6 _Squeeze_ - Official i386 CD Binary-1 20120929-15:56]/ squeeze main # deb cdrom:[Debian GNU/Linux 6.0.6 _Squeeze_ - Official i386 CD Binary-1 20120929-15:56]/ squeeze main deb http://ftp.us.debian.org/debian/ squeeze main deb-src http://ftp.us.debian.org/debian/ squeeze main deb http://security.debian.org/ squeeze/updates main deb-src http://security.debian.org/ squeeze/updates...
0 0
8
Horus wrote:

Hello,

Trying to install Vesta on my VPS I get the following error

Code: Select all

E: Malformed line 1 in source list /etc/apt/sources.list.d/nginx.list (dist parse) E: The list of sources could not be read. Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package libapache2-mod-ruid2 E: Unable to locate package roundcube-plugins E: Unable to locate package apparmor-utils E: Unable to locate package vesta E: Unable to locate package vesta-nginx E: Unable to locate package vesta-php Error: apt-get install failed

,

following viewtopic.php?f=10&t=4076 installing manually

I get the following error

Code: Select all

Preparing to replace vsftpd 2.3.5-3 (using .../vsftpd_3.0.2-3_i386.deb) ... invoke-rc.d: policy-rc.d denied execution of stop. Unpacking replacement vsftpd ... Processing triggers for man-db ... Errors were encountered while processing:...
0 0
9

If you install Debian 9 system using a netinstall CD image, your system probably will not have all the necessary repositories (from which you can install common packages), included in the apt sources list file. This can result into error like “E: unable to locate package package-name”.

In this article, I will explain how to fix the “E: unable to locate package package-name” error in Debian 9 distribution.

Useful Articles to read:

25 Useful Basic Commands of APT-GET and APT-CACHE for Package Management 15 Examples of How to Use New Advanced Package Tool (APT) in Ubuntu/Debian

I encountered this error while trying to install openssh-server package on Debian 9 server as shown in the screen shot below.

Package Installation Error on Debian 9

When you look into the /etc/apt/sources.list file, the default repositories included are shown in the screen shot below.

Debian 9 Repositories

To fix this error, you need to add the necessary Debian...

0 0
10
...
0 0