I am trying to use phantomjs on a VPS, but it requires fontconfig as a dependency. So I ran apt-get install fontconfig.
(The SSH session is in french, so used google translate)
Root # vps27533: ~ / grab / phantomjs-2.1.1-linux-i686 / bin # sudo apt-get install fontconfig
Reading Package Lists ... Done
Building the dependency tree
Reading status information ... Done
You can run "apt-get -f install" to correct these problems:
The following packages contain unsatisfied dependencies:
Libc6-i686: i386: Predependent: libc6: i386 (= 2.13-38 + deb7u8) but 2.13-38 + deb7u11 should be installed
E: Dependencies not satisfied. Try apt-get -f install without package
(Or indicate a solution).
So I then ran sudo apt-get -f install
Root # vps27533: ~ / grab / phantomjs-2.1.1-linux-i686 / bin # sudo apt-get -f install
Reading Package Lists ... Done
Building the dependency tree
Reading status information ... Done
Fixed dependencies ... Done
The following additional packages will be installed:
Libc6 libc6-i686: i386
Suggested Packages:
Glibc-doc
The following packages will be updated:
Libc6 libc6-i686: i386
2 updated, 0 newly installed, 0 to remove and 184 not updated.
4 partially installed or removed.
It is necessary to take 0 o / 5 616 kb in the archives.
After this operation, an additional 22.5 KB of disk space will be used.
Would you like to continue [Y / n]? O
Reading change files ("changelog") ... Completed
Preconfiguration of packages ...
(Read the database ... 51662 files and directories already installed.)
Preparing to replace libc6: amd64 2.13-38 + deb7u8 (using ... / libc6_2.13-38 + deb7u11_amd64.deb) ...
Unpacking the libc6 update: amd64 ...
/ Bin / sh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14 'not found (required by / bin / sh)
/ Bin / sh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15 'not found (required by / bin / sh)
/ Bin / sh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14 'not found (required by /lib/x86_64-linux-gnu/libncurses.so.5)
/ Bin / sh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15 'not found (required by /lib/x86_64-linux-gnu/libncurses.so.5)
/ Bin / sh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14 'not found (required by /lib/x86_64-linux-gnu/libtinfo.so.5)
/ Bin / sh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15 'not found (required by /lib/x86_64-linux-gnu/libtinfo.so.5)
Dpkg: warning: the old post-removal script subprocess returned a status output error 1
Dpkg: Attempting to run the script of the new package instead ...
/ Bin / sh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14 'not found (required by / bin / sh)
/ Bin / sh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15 'not found (required by / bin / sh)
/ Bin / sh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14 'not found (required by /lib/x86_64-linux-gnu/libncurses.so.5)
/ Bin / sh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15 'not found (required by /lib/x86_64-linux-gnu/libncurses.so.5)
/ Bin / sh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14 'not found (required by /lib/x86_64-linux-gnu/libtinfo.so.5)
/ Bin / sh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15 'not found (required by /lib/x86_64-linux-gnu/libtinfo.so.5)
Dpkg: processing error of /var/cache/apt/archives/libc6_2.13-38+deb7u11_amd64.deb (--unpack):
The new post-removal script subprocess returned a status output error 1
/ Bin / sh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14 'not found (required by / bin / sh)
/ Bin / sh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15 'not found (required by / bin / sh)
/ Bin / sh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14 'not found (required by /lib/x86_64-linux-gnu/libncurses.so.5)
/ Bin / sh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15 'not found (required by /lib/x86_64-linux-gnu/libncurses.so.5)
/ Bin / sh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14 'not found (required by /lib/x86_64-linux-gnu/libtinfo.so.5)
/ Bin / sh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15 'not found (required by /lib/x86_64-linux-gnu/libtinfo.so.5)
Dpkg: error when cleaning:
The pre-installed script subprocess installed has returned a status output error 1
Errors were encountered during execution:
/var/cache/apt/archives/libc6_2.13-38+deb7u11_amd64.deb
E: Subprocess / usr / bin / dpkg returned an error code (1)
I am extremely confused about how to get the new version of libc6, which is what I think it requires. So I even ran sudo apt-get install libc6
Root # vps27533: ~ / grab / phantomjs-2.1.1-linux-i686 / bin # sudo apt-get install libc6
Reading Package Lists ... Done
Building the dependency tree
Reading status information ... Done
You can run "apt-get -f install" to correct these problems:
The following packages contain unsatisfied dependencies:
Libc6-i686: i386: Predependent: libc6: i386 (= 2.13-38 + deb7u8) but 2.13-38 + deb7u11 should be installed
E: Dependencies not satisfied. Try apt-get -f install without package
(Or indicate a solution).
How can I get this to work? What should I do? any help is greatly appreciated
This sounds like you might not have a repository list that includes the packages you need. I would suggest first to make sure you have an encompassing repository list /etc/apt/sources.list, such as the following (this one is for Debian 8 Jessie):
deb http://ftp.us.debian.org/debian/ jessie main contrib non-free
deb-src http://ftp.us.debian.org/debian/ jessie main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free
deb http://ftp.us.debian.org/debian/ jessie-updates main contrib non-free
deb-src http://ftp.us.debian.org/debian/ jessie-updates main contrib non-free
deb http://ftp.debian.org/debian jessie-backports main contrib non-free
deb-src http://ftp.debian.org/debian jessie-backports main contrib non-free
Then I would run this as root to try to fix and upgrade packages:
apt-get -y update
sleep 1
dpkg --configure -a
sleep 1
apt-get -y install -f
sleep 1
dpkg --configure -a
sleep 1
apt-get -y update
sleep 1
apt-get -y dist-upgrade
After that, I suggest to reboot and try to (re)install the packages you want. If you still have problems, try to remove (purge) the offending packages (ex: apt-get -y --purge remove package), reboot, reinstall the packages and test again.
Try running:
sudo apt-get install libc6=2.13-38+deb7u8 fontconfig
This is issue of apt which cannot install non-candidate dependencies and the older libc6 is a non-cadidate dependency which it fails to install (see apt-get install specific version with non-cadidate dependencies).
If you explicitly asks apt-get install to install specific version, it will do so (unless it needs another non-candidate package, in which case you need to explicitly list this on on command line...)
Related
I am trying to upgrade my GitLab docker container from version 13.8.0 to 13.8.8 with ce edition.
I tried by download the Debian package for the ubuntu focal version from the below link:
https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/focal/gitlab-ce_13.8.8-ce.0_amd64.deb
but while installing the package I am getting the following errors...
root#2d66229ecf41:/tmp#dpkg -i gitlab-ce_13.8.8-ce.0_amd64.deb
(Reading database ... 86705 files and directories currently installed.)
Preparing to unpack gitlab-ce_13.8.8-ce.0_amd64.deb ...
/opt/gitlab/embedded/bin/ruby: /lib/x86_64-linux-gnu/libcrypt.so.1: version `XCRYPT_2.0' not found (required by /opt/gitlab/embedded/lib/libruby.so.2.7)
/opt/gitlab/embedded/bin/ruby: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /opt/gitlab/embedded/lib/libruby.so.2.7)
/opt/gitlab/embedded/bin/ruby: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /opt/gitlab/embedded/lib/libruby.so.2.7)
/opt/gitlab/embedded/bin/ruby: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /opt/gitlab/embedded/lib/libruby.so.2.7)
/opt/gitlab/embedded/bin/ruby: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.27' not found (required by /opt/gitlab/embedded/lib/libruby.so.2.7)
dpkg: error processing archive gitlab-ce_13.8.8-ce.0_amd64.deb (--install):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
gitlab-ce_13.8.8-ce.0_amd64.deb
what I should I do?
My disc space is also free...
what is the problem?
can anyone help me to fix this?
Based on the error message, ruby needs xcrypt v2.0, glibc_2.xx and they are not installed or unable to be found.
This is the first step I would try, after performing a backup:
sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade
sudo apt-get install -f
https://ubuntuforums.org/showthread.php?t=2438576
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.
This is in reference to running the WRF model in my system. I am trying to run the file plotgrids.ncl to ensure that the domain is in the right location before running geogrid.exe . Running the following command in my terminal(ubuntu)
ncl util/plotgrids.ncl
gives me the following error:
ncl: /lib/x86_64-linux-gnu/libssl.so.10: version 'libssl.so.10' not found (required by ncl)
ncl: /lib/x86_64-linux-gnu/libcrypto.so.10: version 'libcrypto.so.10' not found (required by ncl)
at one NCL 6.4.0 installation at Ubuntu 10.10 the solution was
searching a compat-openssl10 package, as
compat-openssl10-1.0.2j-9.fc26.x86_64.rpm
turn it into a .deb package by doing this steps:
apt-get install libdpkg-perl
alien compat-openssl10-1.0.2j-9.fc26.x86_64.rpm
dpkg -i compat-openssl10_1.0.2j-10_amd64.deb
find / -name libssl.so.*
will now show it at /usr/lib/ libssl.so.10
NCL will still complain about GLIBC version
at this case that was solved by editing
vi /etc/apt/sources.list
:%s/maverick/wily/g
apt-get update
apt-get install libc6
this still shows as 2.15 with
ldd --version
however now the test works with
ng4ex xy01n -clean
for Ubuntu 16 please check help given by NCL forum at
mailman.ucar.edu/pipermail/ncl-install/2017-November/thread.html
as resumed here:
http://conda.pydata.org/miniconda.html
used Python 3.6 Linux 64-bit (bash installer)
cd /home/user/Downloads/
chmod +x Miniconda2-latest-Linux-x86_64.sh
./Miniconda2-latest-Linux-x86_64.sh
conda -V
conda 4.3.30
http://ncl.ucar.edu/Download/conda.shtml
conda create -n ncl_stable -c conda-forge ncl=6.4.0 gsl
root#hostname:~# source activate ncl_stable
(ncl_stable) root#hostname:~# ncl -V
6.4.0
ng4ex xy05n -clean -W png
it works!
outside conda (ncl_stable)
ng4ex
The program 'ng4ex' is currently not installed. You can install it by:
sudo su
vi /etc/apt/sources.list
add at the end
deb http://http.us.debian.org/debian/ testing non-free contrib main
exit editor
apt-get update
apt install libncarg-bin
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
Please point out the point that I am missing:
openSUSE 11.3
xx#linux-y3pi:~/Desktop/R> sudo R CMD INSTALL rgdal_0.7-12.tar.gz
root's password:
* installing to library ‘/usr/lib64/R/library’
* installing *source* package ‘rgdal’ ...
** package ‘rgdal’ successfully unpacked and MD5 sums checked
configure: gdal-config: gdal-config
checking gdal-config usability... ./configure: line 1353: gdal-config: command not found
no
Error: gdal-config not found
The gdal-config script distributed with GDAL could not be found.
If you have not installed the GDAL libraries, you can
download the source from http://www.gdal.org/
If you have installed the GDAL libraries, then make sure that
gdal-config is in your path. Try typing gdal-config at a
shell prompt and see if it runs. If not, use:
--configure-args='--with-gdal-config=/usr/local/bin/gdal-config'
with appropriate values for your installation.
ERROR: configuration failed for package ‘rgdal’
* removing ‘/usr/lib64/R/library/rgdal’
xx#linux-y3pi:~/Desktop/R> whereis gdal-config
gdal-config: /usr/local/bin/gdal-config
xx#linux-y3pi:~/Desktop/R> gdal-config
Usage: gdal-config [OPTIONS]
Options:
[--prefix[=DIR]]
[--libs]
[--dep-libs]
[--cflags]
[--datadir]
[--version]
[--ogr-enabled]
[--formats]
xx#linux-y3pi:~/Desktop/R>
> sessionInfo()
R version 2.15.1 (2012-06-22)
Platform: x86_64-unknown-linux-gnu (64-bit)
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=C LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
>
xx#linux-y3pi:~/Desktop/R> gdal-config --version
1.9.0
xx#linux-y3pi:~/Desktop/R> proj
Rel. 4.8.0, 6 March 2012
usage: proj [ -beEfiIlormsStTvVwW [args] ] [ +opts[=arg] ] [ files ]
linux-y3pi:~ # $PATH
bash: /home/xx/qtsdk-2010.05/qt/bin/:/home/xx/qtsdk-2010.05/bin:/home/xx/qtsdk-2010.05/qt/bin:/home/xx/qtsdk-2010.05/qt/bin/:/home/xx/qtsdk-2010.05/bin:/usr/lib64/mpi/gcc/openmpi/bin:/home/xx/bin:/usr/local/bin:/usr/bin:/sbin:/usr/sbin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games: No such file or directory
In Ubuntu 18.04
I fixed this by sudo apt install libgdal-dev
Hope someone find this helpful. Some above answers seems to be outdated and lengthy.
In earlier versions (which had apt-get)
sudo apt-get install libgdal-dev
You need the -dev package with headers and shared library links for development besides the normal package for deployment. Two different use cases as far as the distro is concerned.
On my distribution:
edd#max:/tmp$ dpkg -l | grep gdal | cut -c-72
ii libgdal1-1.7.0 1.7.3-6ubuntu3
ii libgdal1-dev 1.7.3-6ubuntu3
edd#max:/tmp$
and R CMD INSTALL rgdal_0.7-8.tar.gz works just fine as you would expect from a CRAN package given all the build-time checks at CRAN.
Update late 2016: As #JoshO'Brien points out in the comment
Minor update: Here in 2016, running Ubuntu 14.04.2, libgdal1h seems to
have replaced libgdal1(though libgdal1-dev is still needed). At least
I get an error to that effect when I attempted to apt-get install libgdal1
For Ubuntu 16.04 the corresponding line would be
sudo apt-get install libgdal1i
Such renaming of upstream libraries is common; something such as apt-cache search libgdal can help locate the current package names. The important key though is that the "abstract" development package libgdal-dev is all that is needed to build as it pulls the "concrete" current run-time package (here: libgdal1i) in via a dependency.
You can use apt-file package, to find which package contains the missing file you are looking for.
First install the apt-file using the command apt-get install apt-file Update apt-file using the command apt-file update Now you can use apt-file to find the missing file. apt-file search gdal-config
For my case, I got the same error when configuring grass-7.1 from svn. As shown below:
$ ./configure
...more...
checking whether to use GDAL... yes
checking for gdal-config... /usr/bin/gdal-config
...more....
./configure: 1: ./configure: /usr/bin/gdal-config: not found
./configure: 6093: test: =: unexpected operator
configure: error: *** Unable to locate GDAL library.
But, after looking for gdal-config file with apt-file as shown below, I was able to resolve the error, after installing the package libgdal1-dev
$ apt-file search gdal-config
Results
libgdal1-dev: /usr/bin/gdal-config
So I installed libgdal1-dev, as shown below:
$ sudo apt-get install libgdal1-dev
This happens because the configuration failed for package ‘rgdal’
so we have to install necessary dependencies.
The packages libgdal-dev and libproj-dev are required:
sudo apt-get install gdal-bin proj-bin libgdal-dev libproj-dev
Then install rgdal by
install.packages("rgdal")
Load rgdal by
library(rgdal)
On macOS
brew install gdal
removed the error
gdal-config not found
Try this on CentOS 6
sudo yum install gdal gdal-python gdal-devel mapserver mapserver-python libxml2 libxml2-python python-lxml python-pip python-devel gcc
Read the reference manual.
SystemRequirements for building from source: GDAL >= 1.6.0 library
from http://trac.osgeo.org/gdal/wiki/DownloadSource and PROJ.4 (proj
>= 4.4.9) from http://trac.osgeo.org/proj/;
The same problem occurred today to me on a Linux CentOS 6.10 on which I do not have administration rights.
What I did:
a) Create a conda environment dedicated to my R version
conda create --name MYR
b) Activate the environment
source activate MYR
c) Install R
conda install -c conda-forge r-base
d) Install libgdal
conda install -c conda-forge libgdal
This solved the problem for me. My R version was 4.1.3. I guess other versions should work.
For manjora or archlinux, just try:
yay -S gdal