Unable to locate package libxp6 on ubuntu 16.10 - linux

When I want to launch matlab, this error appears:
/usr/local/MATLAB/R2010b/bin/glnxa64/MATLAB: error while loading shared libraries: libXp.so.6: cannot open shared object file: No such file or directory
I already tried to install libxp6 by using this command:
sudo apt-get install libxp6
and I already searched for this
apt-cache search libxp
but there is no package with this name.
My operating system is Ubuntu 16.10.
What should I do?

UPDATE:
It seems they removed the libxp6 package from the stable list. However, you are still able to obtain the oldstable on this page:
https://packages.debian.org/search?keywords=libxp6
The installation of this package is still the same as described below!
I also just had this problem.
Try this, this worked for me:
Long answer:
Download libxp6 on this page manually: https://packages.debian.org/stable/libs/libxp6
(At the bottom of the page you will see "Download libxp6")
Make sure to checkout what architecture you have on your Linux system by using this command:
uname -a
After you find it out, click the link with your architecture on the page (for example: architecture: amd64, and below you will see some location, where you can download from it, for example:
North America:
ftp.us.debian.org/debian
This is just a link to this real download link:
ftp.us.debian.org/debian/pool/main/libx/libxp/libxp6_1.0.2-2_amd64.deb
On your linux command line you just can run this:
wget ftp.us.debian.org/debian/pool/main/libx/libxp/libxp6_1.0.2-2_amd64.deb
After the download is finished, you can install it with this command:
sudo dpkg -i libxp6_1.0.2-2_amd64.deb
libxp6 has been successfully installed!
Short answer:
Run this command on your linux command line:
Where yy is, replace your location. Where xx is, replace your
architecture.
wget ftp.yy.debian.org/debian/pool/main/libx/libxp/libxp6_1.0.2-2_xx.deb
Example:
wget ftp.us.debian.org/debian/pool/main/libx/libxp/libxp6_1.0.2-2_amd64.deb
After the download, run this command:
sudo dpkg -i libxp6_1.0.2-2_xx.deb
Example:
sudo dpkg -i libxp6_1.0.2-2_amd64.deb
libxp6 has been successfully installed!
I hope this works for you!

Related

when i open unity and make something project then the error is coming that " no usable version of libssl was found "

i am new to linux ubuntu . i am using ubuntu 22.04 . recently i downloaded unity and it is showing error " no usable version of libssl was found " How to fix this PLease help me !!
i tried to find solution for this problem and i found nothing .
( i am using linux and i am new to linux )
.
You need to download the missing libssl library and install it
$ wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5_amd64.deb
$ sudo dpkg -i libssl1.0.0_1.0.2n-1ubuntu5_amd64.deb
For Ubuntu
sudo add-apt-repository ppa:rael-gc/rvm
sudo apt-get update
sudo apt install libssl1.0-dev
The reason for this error lies in incompatible versions of Open ssl on your machine and needed from Unity. Ubuntu 22.04 installs Open ssl 3.0 per default but Unity for Linux currently uses .Net5 per default and therefore can only run with Open ssl 1.0 or 1.1.
To fix this, you need to downgrade your Open ssl on your machine to either 1.0 or 1.1. I tested 1.0.2 version from the link Jeff Chen commented below rainman's answer.
I also tested the wget method from this answer over on askubuntu just with the downloaded package and it worked like a charm for me.
Unity is aware of this problem as seen here.
Edit: I had to restart my computer for the error to disappear.
You need to install libssl1.1
# download package with wget
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb
# install package locally
sudo dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb
original gist post:
https://gist.github.com/joulgs/c8a85bb462f48ffc2044dd878ecaa786
You have to install the openssl 1.1
Download and Install it by the following steps:
wget https://www.openssl.org/source/openssl-1.1.1q.tar.gz
tar -xzvf openssl-1.1.1q.tar.gz
cd openssl-1.1.1q
sudo ./config
sudo make install
openssl version -v
I'm not sure but you can set ln too:
sudo ln -sf /usr/local/ssl/bin/openssl `which openssl`
and if you get this error:
openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
fix it with this command: ldconfig after install
The problem doenst exist with Unity 2022.2.2.
Works great on Ubuntu 22.04 with libssl3
Unity 2021 doesnt work on same system because of libssl3

wget command not found on linux server

I have a linux server (completely new, web hosting, nothing is installed into it), and want to use a "wget" command. Currently, it is not found. Kernel version 2.6.32-896.16.1.lve1.4.54.el6.x86_64
I am completely new to linux, tried to solve this issue by myself, but couldn't do it. I log in into this linux server via PuTTY via my Windows OS laptop.
wget https://www.python.org/ftp/python/3.6.6/Python-3.6.6.tgz
To get "wget" to work, I will need to install it. I guess I will need to install first "sudo" and/or "apt" and/or "apt-get". But couldn't do it. Please give me a short list of steps in which order to install them.
Given your kernel version, it looks like your Linux distribution is CentOS 6 or RHEL 6. Try installing wget with this command:
yum install wget
You must be root when you run this command.
Incase you using Debian version of Linux, use the following:
sudo apt-get install wget
From kernel version, it looks like you are using RHEL/Centos 6.
Please check -
https://centos.pkgs.org/6/centos-x86_64/wget-1.12-10.el6.x86_64.rpm.html
If the mentioned dependencies exist in your system, you can directly fire the rpm command
rpm command guide -
https://docs.fedoraproject.org/ro/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch02s03.html
If it doesn't work, you need to use yum command. (You need to configure yum command first, if not configured already)
yum install wget
To configure yum command in centos6 -
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/sec-configuring_yum_and_yum_repositories
Note - you need to be root user for above activities.

missing sys call_32.tbl for raspbian kernel 4.1.4-v7+

So I am attempting to install the header files for raspbian kernel 4.1.4-v7+
It looks like they are not available from apt-get so I did a google search and found this so I downloaded the corresponding package with wget and then installed it with sudo dpkg -i <package_name> the installation goes fine except for this:
grep: scripts/../arch/x86/syscalls/syscall_32.tbl: No such file or directory
I tried to see if I could find anything for it with apt-cache but it did not find anything...
Can anyone point me in the right direction?

Error installing W3C validator on Ubuntu

I'm installing W3C validator locally on Ubuntu 14.04 with Apache 2.4.7.
I do sudo apt-get install w3c-markup-validator and get this:
ln: failed to create symbolic link ‘/etc/apache2/conf.d/w3c-markup-validator.conf’: No such file or directory
Seems the script is using a different directory structure instead of linking to /etc/apache2/conf-available.
Where do I find this install script to make the change? I'm not familiar with apt-get.
Found it.
Edit /var/lib/dpkg/info/w3c-markup-validator.postinst and comment out lines 41-44.
Then:
sudo ln -s /etc/w3c/httpd.conf /etc/apache2/conf-available/w3c-markup-validator.conf

/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory

I am trying to install roccc 2.0. I have installed required packages. Now while installing it, it is giving me this error:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
I searched for gnu/stubs-32.h and came to know, for Linux 64-bit its in glibc-devel and for Linux 32-bit, its in libc6-dev-i386.
I am using Linux 32-bit: i386 GNU/Linux, but couldn't get the lib required to resolve this error.
Can somebody please help me out?
If your Linux distro is Redhat based (Fedora/CentOS/RHEL):
yum install glibc-devel.i686
References
Original post answer solved this problem RHEL x64
Header file gnu/stubs-32.h is under /usr/include/i386-linux-gnu/ but the install script tries to find it in /usr/include/, try this quick fix to complete the installation:
sudo ln -s /usr/include/i386-linux-gnu/gnu/stubs-32.h /usr/include/gnu/stubs-32.h
After installation is finished, you can delete the link.
The package name keeps on changing, just do a
yum list glibc-devel
to find out current package for 32 bit. In my case it only listed 2 packages one for 32 bit and one for 64 bit. I just installed the 32 bit using
yum install glibc-devel.i686
Install 'glibc-devel' package, or whatever it called in your distro. You may also need to install ia32-libs lib32z1-dev lib32bz2-dev (names could be different in your distro).
The script is trying to get stubs-32.h from /usr/include/ where it is not found. To solve this you have to add an "include" path (by default it is /usr/include) like this:
C_INCLUDE_PATH=/usr/include/i386-linux-gnu/
export C_INCLUDE_PATH
OR
export C_INCLUDE_PATH=/usr/include/$(gcc -print-multiarch)
You can visit Error "gnu/stubs-32.h: No such file or directory" while compiling Nachos source code for additional reference.
If on a Red Hat distro such as Fedora/CentOS/RHEL you can do the following to find out what package provides a given file:
$ repoquery -qf */stubs-32.h
glibc-devel-0:2.17-260.el7.i686
And then install it:
$ sudo yum install -y glibc-devel-0:2.17-260.el7.i686

Resources