DataStax C++ driver for Ubuntu 22.04? - cassandra

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)...

Related

How do I Solve this problem in scyllaDB installation?

I am following this steps for installation
https://www.scylladb.com/download/?platform=ubuntu-20.04&version=scylla-4.3#open-source
Version :- Ubuntu 20.04
Scylla 4.3
Once I reach on below step I get this error,
$ sudo apt-get install -y scylla
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:
scylla-tools-core : Depends: python-yaml but it is not installable
E: Unable to correct problems, you have held broken packages.
It would appear there is something broken or strange on your system setup, because the error indicates that the python-yaml can't be installed, but that's a valid package on Ubuntu 20.04 - see https://launchpad.net/ubuntu/focal/amd64/python-yaml
Perhaps when you added Scylla's package source you accidentally broke the system's default package sources? Try to install the python-yaml package manually, and see what happens.
Finally, please note that Scylla 4.3 is already old - Scylla 4.4 is already out for months, and 4.5 is in the last release-candidate stages, and when it's officially released, support for 4.3 will stop (Scylla only supports two major open-source releases at a time). So you should consider whether you really want Scylla 4.3 or try a newer version.

install Tizen studio 3.7 on Ubuntu 19.10 or 20.04?

I am stuck on this warning while installing Tizen studio via package manager as it requires a preriquisite:
sudo apt-get install libwebkitgtk-1.0-0
running this command finds nothing. Following askubuntu forum I downloaded bunch of webkitgtk packages from here. Finally I got this error that demonstrates it requires more dependencies.
sudo dpkg -i '/home/rif/Downloads/w/libwebkitgtk-1.0-0_2.4.11-0ubuntu0.1_amd64.deb'
error:
Selecting previously unselected package libwebkitgtk-1.0-0:amd64.
(Reading database ... 156927 files and directories currently installed.)
Preparing to unpack .../libwebkitgtk-1.0-0_2.4.11-0ubuntu0.1_amd64.deb ...
Unpacking libwebkitgtk-1.0-0:amd64 (2.4.11-0ubuntu0.1) ...
dpkg: dependency problems prevent configuration of libwebkitgtk-1.0-0:amd64:
libwebkitgtk-1.0-0:amd64 depends on libjavascriptcoregtk-1.0-0 (= 2.4.11-0ubuntu0.1); however:
Package libjavascriptcoregtk-1.0-0 is not installed.
libwebkitgtk-1.0-0:amd64 depends on libegl1-mesa (>= 7.8.1) | libegl1-x11; however:
...and more stuff not installed, message...
Package libwebkitgtk-1.0-common is not installed.
dpkg: error processing package libwebkitgtk-1.0-0:amd64 (--install):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.31-0ubuntu9) ...
Errors were encountered while processing:
libwebkitgtk-1.0-0:amd64
I have no idea what I should do to install this on Linux. How can I install it Tizen studio on Linux 20.04?
The easiest way to install libwebkitgtk-1.0-0 on Ubuntu 19/20 for now is listed below
echo -e "# For Tizen studio\ndeb http://cz.archive.ubuntu.com/ubuntu bionic main universe" | sudo tee /etc/apt/sources.list.d/tizen-bionic-libwebkitgtk.list
sudo apt update
sudo apt-get install libwebkitgtk-1.0-0
And once the libwebkitgtk-1.0-0 is installed the user might face difficulty in installing libpng12 as well when trying to install any emulators.
Steps to install libpng12 are below
sudo add-apt-repository ppa:linuxuprising/libpng12
sudo apt-get update
sudo apt-get install libpng12-0
After installing the libpng12 & libwebkitgtk-1.0-0 packages, user will be able to install any profile in Ubuntu 19 or Ubuntu 20.
Tizen Studio does not officially support Ubuntu 19 & Ubuntu 20 as of now.
Official support for Ubuntu 20 LTS is expected soon
There is no libwebkitgtk-1.0 for Ubuntu 19.10 or 20.04: https://packages.ubuntu.com/search?keywords=libwebkitgtk-1.0-0
If you want libwebkitgtk-1.0 in Ubuntu 19.10/20.04, you will need to download its source code and try to build (probably with debuild) or install Ubuntu 18.04 in a docker.
Other Tizen tools are not yet officially supported in 19.10 or 20.04.
Or you may contact admins and ask them to add another Ubuntu version support at https://launchpad.net/~tizen.org/+archive/ubuntu/pdk

Package libc6 is not installed

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.

How to install 32-bit libraries of android studio properly to a 64-bit machine?

I have been trying to install Android Studio properly to my Ubuntu 16.04 64-bit machine, but I can not solve this very problem. Android studio requires us to install some 32 bit files to 64 bit computers. But when I try to install, I cannot solve the problem.
I have given so many inputs to the terminal and couldn't trace them all. However, I'm sure that I wrote lots of commands on installing lib32stdc++6 and other packages that has been suggested on the internet but every time I got the error message:
[ E: Unable to correct problems, you have held broken packages. The following packages have unmet dependencies: X depends Y but it won't be installed ]
Edit: input & output example:
***#***:~$ sudo apt-get install lib32stdc++6
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:
lib32stdc++6 : Depends: gcc-5-base (= 5.3.1-13ubuntu6) but 5.3.1-14ubuntu2 is to be installed
Depends: lib32gcc1 (>= 1:4.2) but it is not going to be installed
Depends: libc6-i386 (>= 2.18) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
(Posted on behalf of the OP):
I solved the problem. I'll write a brief info about the solution process in case anyone else faces with a similar situation. First of all I realised that this problem was all about the incompatibility of 32 bit libraries with 16.04. So that, I changed the "download from" section from the System Settings - Software&Updates.
Select Netherlands instead of your country's repo, that'll be convenient (mine was Turkey before). Then simply update your repos by typing sudo apt-get update to terminal. Lastly, install the required libraries for 16.04 by typing sudo apt-get install lib32stdc++6. After all, install Android Studio from the very beginning. I did all those and now Android Studio runs properly.

Install jitsi with oracle jdk

recently I UNinstalled OpenJDK and installed Oracle JDK 1.6 on my Linux Mint 16 Device, using this description:_
http://community.linuxmint.com/tutorial/view/1372
But today I've recognized that my messenger jitsi disappeared. It seems it's depending on the OpenJDK but I don't believe that it is imposible to run it with the original Oracle JDK which is the one and only JDK for me.
Trying to install jitsi with
dpkg -i jitsi_2.5.5065-1_amd64.deb
results into this error:
(Reading database ... 171948 files and directories currently installed.)
Preparing to replace jitsi 2.5.5065-1 (using jitsi_2.5.5065-1_amd64.deb) ...
Unpacking replacement jitsi ...
dpkg: dependency problems prevent configuration of jitsi:
jitsi depends on default-jre | java6-runtime; however:
Package default-jre is not installed.
Package java6-runtime is not installed.
dpkg: error processing jitsi (--install):
dependency problems - leaving unconfigured
Processing triggers for man-db ...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for mime-support ...
Processing triggers for menu ...
Errors were encountered while processing:
jitsi
If i try to install it with
sudo apt-get install -f
Then my system wants to reinstall OpenJDK-7. But I don't want to have this sh** OpenJDK on my device.
I tried to tell the system now to use only Oracle JDK 1.6, regarding the hints on this page:
https://askubuntu.com/questions/56104/how-can-i-install-sun-oracles-proprietary-java-jdk-6-7-8-or-jre
But it didn't help me. So how can I use jitsi withouth reinstalling OpenJDK?
Thanks+Regards
You can use Jitsi Generic Installer, which just needs Java, and doesn't check for any dependencies.
Here is the link: https://download.jitsi.org/jitsi/generic/

Resources