Package libc6 is not installed - linux

I have build LFS 8.0 and prepared a base linux system. I am installing package manager on that system. I have installed dpkg from a source package in it. After installing dpkg when i try to install any .deb package it throws an error along with the list of several dependencies. Among them also their are some dependencies related to gcc and glibc. Althought they are already installed in my LFS system. Have searched alot regarding this but could not find any helping material that why the package could not find its pre-req package even its already installed.
For example when i try to install zlib1g_1.2.8.dfsg-5_amd64.deb in lfs system, below mentioned error appears:
{
root [ /sources ]# dpkg -i zlib1g_1.2.8.dfsg-5_amd64.deb
Selecting previously unselected package zlib1g:amd64.
(Reading database ... 348 files and directories currently installed.)
Preparing to unpack zlib1g_1.2.8.dfsg-5_amd64.deb ...
Unpacking zlib1g:amd64 (1:1.2.8.dfsg-5) ...
dpkg: dependency problems prevent configuration of zlib1g:amd64:
zlib1g:amd64 depends on libc6 (>= 2.14); however:
Package libc6 is not installed.
dpkg: error processing package zlib1g:amd64 (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
zlib1g:amd64
}
Note: I have installed only dpkg. apt-get is not installed.
Any helping material regarding this is much appreciated.
Thanks

Though those libraries may be present on your system, they are not installed as deb packages and for dpkg they are missing. If you want to use dpkg, you will have to install all of those libraries as debs.

Related

DataStax C++ driver for Ubuntu 22.04?

I am following the instructions here to run the C++ connection code example on AstraDB. However, I could not install the Casandra driver package. I got an error message about "multiarch-support is not installed".
Platform details: Ubuntu 22.04 (latest update), Cansandra driver 2.16.0.
Here is the command and the detailed output:
sudo dpkg -i cassandra-cpp-driver_2.16.0-1_amd64.deb
dpkg: regarding cassandra-cpp-driver_2.16.0-1_amd64.deb containing cassandra-cpp-driver, pre-
dependency problem:
cassandra-cpp-driver pre-depends on multiarch-support multiarch-support is not installed.
So I tried to install binutils-multiarch for Ubuntu 22.04 but it did not work (same error).
Did I miss any steps?
I noticed that the Casandra download page only shows driver packages up to Ubuntu 18.04.
Do you have the latest build for Ubuntu 22.04?
Thanks very much for any help.
UPDATE:
I just noticed this post about the same issue and the reported resolution was to use Cassandra driver 2.16.2. When I tried that, I got a different error message about a required libssl is not installed.
I checked my system and it has libssl3. The error message points to libssl1.1 or above. So, why did it not work?
Here is the command output:
sudo dpkg -i cassandra-cpp-driver_2.16.2-1_amd64.deb
Selecting previously unselected package cassandra-cpp-driver.
(Reading database ... 354331 files and directories currently installed.)
Preparing to unpack cassandra-cpp-driver_2.16.2-1_amd64.deb ...
Unpacking cassandra-cpp-driver (2.16.2-1) ...
dpkg: dependency problems prevent configuration of cassandra-cpp-driver:
cassandra-cpp-driver depends on libssl1.1 (>= 1.1.0); however:
Package libssl1.1 is not installed.
And here is my libssl3 in the system:
apt search libssl
...(omitted)...
libssl3/jammy-updates,jammy-security,now 3.0.2-0ubuntu1.6 amd64 [installed]
Secure Sockets Layer toolkit - shared libraries
...(omitted)...

How to handle the errors during libwebkitgtk installation on Ubuntu 18.04 LTS?

Every time I tries to install something on Ubuntu using sudo apt-get install ..., it shows like that:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libwebkit2gtk-4.0-37 : Depends: libjavascriptcoregtk-4.0-18 (= 2.32.3-0ubuntu0.18.04.1) but 2.32.4-0ubuntu0.18.04.1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
First I tried to sudo apt-get install libwebkit2gtk-4.0-37, it shows like that:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libexiv2-14 libgee-0.8-2 libgexiv2-2 libraw16 linux-hwe-5.4-headers-5.4.0-66
linux-hwe-5.4-headers-5.4.0-67 linux-hwe-5.4-headers-5.4.0-73
linux-hwe-5.4-headers-5.4.0-74 shotwell-common
Use 'sudo apt autoremove' to remove them.
Suggested packages:
libwebkit2gtk-4.0-37-gtk2
The following packages will be upgraded:
libwebkit2gtk-4.0-37
1 upgraded, 0 newly installed, 0 to remove and 206 not upgraded.
43 not fully installed or removed.
Need to get 0 B/13.4 MB of archives.
After this operation, 81.9 kB of additional disk space will be used.
dpkg: warning: files list file for package 'fonts-sil-abyssinica' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libatk-adaptor:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libvorbisfile3:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libquadmath0:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libxkbfile1:amd64' missing; assuming package has no files currently installed
<ignoring for a long long list>
Preparing to unpack .../libwebkit2gtk-4.0-37_2.32.4-0ubuntu0.18.04.1_amd64.deb ...
Unpacking libwebkit2gtk-4.0-37:amd64 (2.32.4-0ubuntu0.18.04.1) over (2.32.3-0ubuntu0.18.04.1) ...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: <decompress> subprocess returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/libwebkit2gtk-4.0-37_2.32.4-0ubuntu0.18.04.1_amd64.deb (--unpack):
cannot copy extracted data for './usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37.53.5' to '/usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37.53.5.dpkg-new': unexpected end of file or stream
Errors were encountered while processing:
/var/cache/apt/archives/libwebkit2gtk-4.0-37_2.32.4-0ubuntu0.18.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Then I thought that since it says but 2.32.4-0ubuntu0.18.04.1 is to be installed, so I tries uninstalling it using sudo apt-get purge 2.32.4-0ubuntu0.18.04.1, and things goes like that: (I don't know what the 2.32.4-0ubuntu0.18.04.1 means)
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package 2.32.4-0ubuntu0.18.04.1
E: Couldn't find any package by glob '2.32.4-0ubuntu0.18.04.1'
E: Couldn't find any package by regex '2.32.4-0ubuntu0.18.04.1'
And I tried sudo apt --fix-broken install, but it still doesn't works. The error messages are the same as that when I run sudo apt-get install libwebkit2gtk-4.0-37.
Could someone help me out? Any reply is in fervent anticipation.
Platform: x64, Ubuntu 18.04 LTS

Upgrade .Net Core 1.0 to 2.0 Ubuntu 16.10

I'm trying to upgrade the .net core version from 1.0 to 2.0 but I'm getting some errors. I'm not good at Linux, so I don't understand well what's happening.
I run:
apt-get install dotnet-sdk-2.1.4
And I get this error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
dotnet-sdk-2.1.4 : Depends: dotnet-runtime-2.0.5 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
So, I try to install dotnet-runtime-2.0.5 and I get this
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
dotnet-runtime-2.0.5 : Depends: libicu55 but it is not installable
E: Unable to correct problems, you have held broken packages.
After this, I try to install libicu55 but I already have installed libicu57. I don't know what to do.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libicu55 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libicu55' has no installation candidate
betocastillo86#ubuntu-huellitas-prod:~$
Do you have any ideas?
So a clean install of Ubuntu 16.04 it was … there’s a catch though,
you can choose between LTS (Long Term Support) or not. I chose not to
since It’s a VM and I don’t mind newer updates, etc… Turns out that
was a bad idea with .NET Core installs! It would seem that once the
non LTS is installed you end up with 16.10 which has installed some
newer versions of required libraries, namely something called libicu
which is now on 57 instead of a required 55.
Source: https://shazwazza.com/post/installing-net-core-101-on-ubuntu-1610/
Try installing the libicu55 manually on your machine (it should run side by side with the newer version on your machine):
Download the file from here: http://packages.ubuntu.com/en/xenial/amd64/libicu55/download
Install it using: sudo dpkg –i libicu55_55.1-7_amd64.deb

Dependency problems in Linux

I try to install a software for a thermal camera, but it gives the error message:
pi#raspberrypi:~ $ sudo dpkg -i /media/pi/PETI/libirimager-1.1.7-i386.deb
Selecting previously unselected package libirimager.
(Reading database ... 112361 files and directories currently installed.)
Preparing to unpack .../libirimager-1.1.7-i386.deb ...
Unpacking libirimager (1.1.7) ...
dpkg: dependency problems prevent configuration of libirimager:
libirimager depends on libudev-dev (>= 1.0).
libirimager depends on gcc (>= 4.6).
libirimager depends on build-essential (>= 1.14.18).
libirimager depends on cmake (>= 2.6).
dpkg: error processing package libirimager (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libirimager
I tried the dpkg --configure -a , but did not solve the problem.
The linux is totaly new for me, so I am unfamiliar with these orders.
(Raspbian Jessie, i386)
try:
apt install -f
or install all dependencies and try again.
$ sudo dpkg -i /media/pi/PETI/libirimager-1.1.7-i386.deb
Not the best command ... No dependencies will be installed. Please do :
$ sudo gdebi /media/pi/PETI/libirimager-1.1.7-i386.deb
... Which will also install the available dependencies.

Build Gem Native Extension

Passing on knowledge I just learned in the hopes of reducing the
headache others may experience with native gem extensions like I've
had.
TL;DR - Had an issue with bundle install. Read mkmf.log as mentioned in the error. The log had another error that I googled. Installed
necessary library. Afterwards, bundle install was successful.
Trying to install gems using bundler and getting errors about building gem native extensions:
$ bundle install
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/..
Resolving dependencies...
Installing daemons 1.2.3
Installing eventmachine 1.0.8 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /usr/local/rvm/gems/ruby-2.3.0/gems/eventmachine-1.0.8/ext
/usr/local/rvm/rubies/ruby-2.3.0/bin/ruby -r ./siteconf20160309-8483-1so3k75.rb extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
<...>
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/usr/local/rvm/gems/ruby-2.3.0/extensions/x86_64-linux/2.3.0/eventmachine-1.0.8/mkmf.log
extconf failed, exit code 1
<...>
Installing mysql2 0.4.3 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /usr/local/rvm/gems/ruby-2.3.0/gems/mysql2-0.4.3/ext/mysql2
/usr/local/rvm/rubies/ruby-2.3.0/bin/ruby -r ./siteconf20160309-8483-1oxfnj5.rb extconf.rb
checking for ruby/thread.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
<...>
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/usr/local/rvm/gems/ruby-2.3.0/extensions/x86_64-linux/2.3.0/mysql2-0.4.3/mkmf.log
extconf failed, exit code 1
<...>
Installing rack 1.6.4
Installing tilt 2.0.1
Using bundler 1.11.2
An error occurred while installing eventmachine (1.0.8), and Bundler cannot continue.
Make sure that `gem install eventmachine -v '1.0.8'` succeeds before bundling.
Passing on knowledge I just learned in the hopes of reducing the
headache others may experience with native gem extensions like I've
had.
TL;DR - Had an issue with bundle install. Read mkmf.log as mentioned in the error. The log had another error that I googled. Installed
necessary library. Afterwards, bundle install was successful.
I see that the errors point me to mkmf.log and where it's located. I open it up and check the error. Among other things it mentions the following on lines 2 and 3.
/usr/bin/ld: cannot find -lgmp
collect2: error: ld returned 1 exit status
I know from the error while during bundle install that it could be missing a library. So I search for a package called gmp. I find 2 libraries, one called libgmp10 and the other libgmp10-dev.
$ apt-cache search -n gmp
libgmp-dev - Multiprecision arithmetic library developers tools
libgmp10 - Multiprecision arithmetic library
<...>
I search my installed packages to see if I need to get one.
$ dpkg --get-selections | grep gmp
libgmp10:amd64 install
Since libgmp10 is already there, I try installing libgmp-dev. Then I run retry installing my gems, and it works!
$ sudo apt-get install libgmp-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libgmpxx4ldbl
Suggested packages:
libgmp10-doc libmpfr-dev
The following NEW packages will be installed:
libgmp-dev libgmpxx4ldbl
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 300 kB of archives.
After this operation, 1,675 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty/main libgmpxx4ldbl amd64 2:5.1.3+dfsg-1ubuntu1 [8,736 B]
Get:2 http://us.archive.ubuntu.com/ubuntu/ trusty/main libgmp-dev amd64 2:5.1.3+dfsg-1ubuntu1 [292 kB]
Fetched 300 kB in 0s (411 kB/s)
Selecting previously unselected package libgmpxx4ldbl:amd64.
(Reading database ... 218685 files and directories currently installed.)
Preparing to unpack .../libgmpxx4ldbl_2%3a5.1.3+dfsg-1ubuntu1_amd64.deb ...
Unpacking libgmpxx4ldbl:amd64 (2:5.1.3+dfsg-1ubuntu1) ...
Selecting previously unselected package libgmp-dev:amd64.
Preparing to unpack .../libgmp-dev_2%3a5.1.3+dfsg-1ubuntu1_amd64.deb ...
Unpacking libgmp-dev:amd64 (2:5.1.3+dfsg-1ubuntu1) ...
Setting up libgmpxx4ldbl:amd64 (2:5.1.3+dfsg-1ubuntu1) ...
Setting up libgmp-dev:amd64 (2:5.1.3+dfsg-1ubuntu1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.7) ...
$ bundle install
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/..
Resolving dependencies...
Using daemons 1.2.3
Installing eventmachine 1.0.8 with native extensions
Installing mysql2 0.4.3 with native extensions
Using rack 1.6.4
Using tilt 2.0.1
Using bundler 1.11.2
Installing rack-protection 1.5.3
Installing thin 1.6.4 with native extensions
Installing sinatra 1.4.6
Bundle complete! 3 Gemfile dependencies, 9 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.

Resources