How to install libpng12-0 on Debian 10 buster i386? - linux

I added repository "deb http://ftp.de.debian.org/debian jessie main" (i used this).
I started the installation:
sudo apt install libpng12-0
But the error comes out:
dpkg: error processing archive /var/cache/apt/archives/libpng12-0_1.2.50-2+deb8u3_i386.deb (--unpack):
Failed to install new version “/usr/lib/i386-linux-gnu/libpng12.so.0”: No such file or directory
Errors occurred while processing the following packages:
/var/cache/apt/archives/libpng12-0_1.2.50-2+deb8u3_i386.deb
E: Sub-process / usr / bin / dpkg returned an error code (1)
I extracted file libpng12.so.0 from this package and placed it in directory /usr/lib/i386-linux-gnu/.
But at installation start:
sudo apt install libpng12-0
the same error comes out.
In this case, file libpng12.so.0 in directory /usr/lib/i386-linux-gnu/ disappears.
If I install the package via gdebi, the error is as follows:
/usr/bin/gdebi:113: FutureWarning: Possible nested set at position 1
c = findall("[[(](\S+)/\S+[])]", msg)[0].lower()

I am our answer here.
Deliver this package from repositories Debian 7 wheezy.

Related

Gazebo 11 does not run

I have installed Gazebo 11 on Ubuntu 20.04 through binary packages. When I launch Gazebo it raises the following error:
gzserver: error while loading shared libraries: libdart-collision-bullet.so.6: cannot open shared object file: No such file or directory
Does anyone know what is the problem? I tried to solve the problem installing libdart-collision-bullet-dev, but the following problem raises:
The following packages have unmet dependencies:
libdart-collision-bullet-dev : Depends: libdart-dev but it is not going to be installed
Depends: libdart6-collision-bullet (= 6.9.2-2build4) but 6.9.5-1885~202012292349~ubuntu20.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.
I tried to solve the broken packages, but then Gazebo 11 is automatically uninstalled.
Thanks in advance.
I had the same problem, and this is what worked for me.
First remove and purge all the libdart packages.
sudo apt remove --purge libdart*
If you have added dartsim/ppa ppa from this link, remove it from Software & Updates -> Other Software
Update
sudo apt update
Check if libdart-dev installs with:
sudo apt install libdart-dev
If it installs, then install all the packages required for Gazebo
sudo apt install libdart-all-dev
If there is an error related to unable to fetch some archives, try:
sudo apt update --fix-missing
sudo apt install libdart-all-dev
Install Gazebo again with:
curl -sSL http://get.gazebosim.org | sh
Check if Gazebo is now working
gazebo

Ubuntu install PHP couchbase extension

I run composer install for new project and I got eror:
the requested PHP extension couchbase is missing from your system. To enable extensions, verify that they are enabled in your .ini files:
So I was trying to intall couchbase SDK from official website:
# Only needed during first-time setup:
wget http://packages.couchbase.com/releases/couchbase-release/couchbase-release-1.0-4-amd64.deb
sudo dpkg -i couchbase-release-1.0-4-amd64.deb
# Will install or upgrade packages
sudo apt-get update
sudo apt-get install libcouchbase-dev libcouchbase2-bin build-essential
after sudo dpkg -i couchbase-release-1.0-4-amd64.deb i got error:
(Reading database ... 155822 files and directories currently installed.)
Preparing to unpack couchbase-release-1.0-4-amd64.deb ...
Supported platforms are: Debian/wheezy,jessie and Ubuntu/lucid,precise,trusty,xenial
dpkg: error processing archive couchbase-release-1.0-4-amd64.deb (--install):
new couchbase-release package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
couchbase-release-1.0-4-amd64.deb
I use Ubuntu 18.04 LTS and PHP 7.1

Linux - Qmake Compiling Error - 'vorbisfile not found' although installed

I try to compile Goldendict on Debian. I have installed all the necessary dependencies, including libvorbis-dev, as listed in the 'README.md' file. However, I'm immediately running into the following error message when executing qmake or qmake-qt4.
JohnDoe#debian:~/goldendict$ qmake
Project MESSAGE: Install Prefix is: /usr/local
sh: 1: pkg-config: not found
Project ERROR: Package vorbisfile not found
JohnDoe#debian:~/goldendict$
I have tried to install it without the audio player support, but it's not working either.
JohnDoe#debian:~/goldendict$ sudo qmake "DISABLE_INTERNAL_PLAYER=1"
Project MESSAGE: Install Prefix is: /usr/local
sh: 1: pkg-config: not found
Project ERROR: Package vorbisfile not found
JohnDoe#debian:~/goldendict$
I have Qt version 4.8.6 installed.
Here are the instructions on 'how-to install Goldendict', which I have followed: https://github.com/goldendict/goldendict/blob/master/README.md
How can I get this work? Any help is welcome.
PS: Here's the proof that the vorbis package is installed.
PROOF from dpkg:
JohnDoe#debian:~$ dpkg -s libvorbis-dev
Package: libvorbis-dev
Status: install ok installed
Priority: optional
Section: libdevel
Installed-Size: 1715
Maintainer: Debian Xiph.org Maintainers <pkg-xiph-maint#lists.alioth.debian.org>
Architecture: amd64
Multi-Arch: same
Source: libvorbis
Version: 1.3.4-2
Depends: libogg-dev, libvorbis0a (= 1.3.4-2), libvorbisenc2 (= 1.3.4-2), libvorbisfile3 (= 1.3.4-2)
PROOF from apt-get:
JohnDoe#debian:~/goldendict$ sudo apt-get install libvorbis-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libvorbis-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
JohnDoe#debian:~/goldendict$
Not on Debian, but on Mac it was a problem. The workaround is, you can change your .pro file for Qt projects, so that it does not look for pkg-config, by adding the following line:
QT_CONFIG -= no-pkg-config
Another guess would be that your path is not set properly. I would try adding the pkg-config path to the environment variable:
$ export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/<path_to_pkg-config>/pkgconfig

install.packages("devtools") on R 3.0.2 fails in Ubuntu 14.04

I am trying to install the R 3.0.2 devtools package on Ubuntu 14.04 as follows:
install.packages("devtools")
I get the following results:
Installing package into ‘/home/jim/R/x86_64-pc-linux-gnu-library/3.0’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
Warning: dependency ‘xml2’ is not available
also installing the dependency ‘rversions’
trying URL 'http://cran.rstudio.com/src/contrib/rversions_1.0.1.tar.gz'
Content type 'application/x-gzip' length 4624 bytes
opened URL
==================================================
downloaded 4624 bytes
trying URL 'http://cran.rstudio.com/src/contrib/devtools_1.8.0.tar.gz'
Content type 'application/x-gzip' length 141487 bytes (138 Kb)
opened URL
==================================================
downloaded 138 Kb
ERROR: dependency ‘xml2’ is not available for package ‘rversions’
* removing ‘/home/jim/R/x86_64-pc-linux-gnu-library/3.0/rversions’
ERROR: dependency ‘rversions’ is not available for package ‘devtools’
* removing ‘/home/jim/R/x86_64-pc-linux-gnu-library/3.0/devtools’
The downloaded source packages are in
‘/tmp/RtmpmDzsRJ/downloaded_packages’
Warning messages:
1: In install.packages("devtools") :
installation of package ‘rversions’ had non-zero exit status
2: In install.packages("devtools") :
installation of package ‘devtools’ had non-zero exit status
It appears there is a dependency on a package named xml2. Does anyone know where I can find this package and how I can install it.
I have already installed the following:
sudo apt-get install libxml2-dev
sudo apt-get install libcurl4-openssl-dev
sudo apt-get install libcurl4-gnutls-dev
sudo apt-get install curl
If R is installed in Ubuntu using the software center, the stable version at the time of the Ubuntu build is built is included. Hence R 3.0.2 is installed.
Adding the following to /etc/apt/sources.list:
deb http://cran.rstudio.com/bin/linux/ubuntu trusty/
resulted in the current version (R 3.2.0) being loaded.
I had to install the following OpenSSL library
sudo apt-get install libssl-dev
and then I was able to start R and successfully install 'devtools'
Many thanks to Dirk and Pascal for their advice.
Another solution (on version R 3.2.2) is to installing lxml:
$ apt-get install libxml2-dev libxslt-dev
which successfully removed the R error:
Error: configuration failed for package ‘xml2’
appearing in R when running
install.packages("devtools")

Installing sublime text 3 on AWS Ubuntu 14.04.1 LTS

Sublime-text is a fast editor for Windows and Linux. I failed to install sublime text 3 on AWS Ubuntu 14.04.1 LTS using the following commands:
sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer
Results in following error message:
p: cannot create regular file "/usr/share/icons/hicolor/16x16/apps/":
No such file or directory dpkg: error processing package sublime-text-installer (--configure):
subprocess installed post-installation script returned error exit status 1
I see following directories under /usr/share/icons/hicolor/
32
48
64
So, I created 16x16 subdirectory, but then it gives an error for 32x32 directory doesnot exist. Did anyone experience this problem before? I will appreciate any help.
sublime-text is a GUI application that needs a GTK installation. Your server is missing that dependency. (In a perfect world, it should be a dependency of the package of course.)
Install libgtk2 (as root):
apt-get install libgtk2.0-common
and then reinstall sublime-text, probably using:
apt-get purge sublime-text-installer ; apt-get install sublime-text-installer

Resources