HTK: E: Unable to locate package libx11-dev:i386 - htk

apt-get install libx11-dev:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libx11-dev:i386

maybe you haven't enable i386 architecture,you can try execute these commands
dpkg --add-architecture i386
apt-get update

Related

E: The package ttf-mscorefonts-installer needs to be reinstalled, but I can't find an archive for it

tit#HP-EliteBook-840-G3:~/Downloads$ sudo apt-get install code_1.70.2-1660629410_amd64.deb
[sudo] password for tit:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: The package ttf-mscorefonts-installer needs to be reinstalled, but I can't find an archive for it
tit#HP-EliteBook-840-G3:~$ sudo apt-get --purge --reinstall install ttf-mscorefonts-installer
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: The package ttf-mscorefonts-installer needs to be reinstalled, but I can't find an archive for it.
go to this path: /var/lib/dpkg
there would be a text file named status.
open status file by an editor with superuser privileges and search for the "ttf-mscorefonts-installer" in the status file, then delete the related lines, save the file and exit.
I had the same problem as you and this worked for me.

Problem to install package RMySQL / Ubuntu 18.04

R version 3.6.3 (2020-02-29)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.4 LTS
When I try install the package RMySQL using the following command:
install.packages('RMySQL')
I got the following error message:
/usr/bin/ld: cannot find -lssl
/usr/bin/ld: cannot find -lcrypto
collect2: error: ld returned 1 exit status
/usr/share/R/share/make/shlib.mk:6: recipe for target 'RMySQL.so' failed
make: *** [RMySQL.so] Error 1
ERROR: compilation failed for package ‘RMySQL’
* removing ‘/home/lepina/R/x86_64-pc-linux-gnu-library/3.6/RMySQL’
Warning in install.packages :
installation of package ‘RMySQL’ had non-zero exit status
I ask help because I don't know what else I might to do. I have already performed a R downgrade from 4.0.0 to 3.6.3 without success.
Following the recommendation from Dirk Eddelbuettel, and I run the following command line:
sudo apt-get install r-cran-rmysql
But I get another error message:
:~$ sudo apt-get install r-cran-rmysql
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:
r-cran-rmysql : Depends: r-api-3.4
Depends: r-cran-dbi (>= 0.4) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
So I decided to fix the broken packages, using the couple of commands:
sudo apt update --fix-missing
sudo apt install -f
And forcing the manual installation of missing package r-api-3.4, using the command:
sudo apt-get install -y r-api-3.4
But I got another error message that I don't have ideia about how to solve it:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package r-api-3.4 is a virtual package provided by:
r-base-core 3.4.4-1ubuntu1 [Not candidate version]
E: Package 'r-api-3.4' has no installation candidate
To make it visible for everybody else: Dirk's solution via terminal worked for me (Ubuntu 22.04): sudo apt-get install r-cran-rmysql

Removing R completely

It would be nice if someone could help.
(base) shazia#shazia-Lin:~$ sudo apt-get remove r-base
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:
nvidia-cuda-toolkit : Depends: nvidia-cuda-dev (= 9.1.85-3ubuntu1) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

cannot install qtbase-abi-5-5-1 on ubuntu 17.10

When I install a fcitx related package an error show that qtbase-abi-5-5-1 is needed but not installed.
wsx#wsx:~/Downloads$ sudo apt install ./fcitx-frontend-qt5-rstudio_1.0.5-1ubuntu1~qt542_amd64.deb ./libfcitx-qt5-1-rstudio_1.0.5-1ubuntu1~qt542_amd64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'fcitx-frontend-qt5-rstudio' instead of './fcitx-frontend-qt5-rstudio_1.0.5-1ubuntu1~qt542_amd64.deb'
Note, selecting 'libfcitx-qt5-1-rstudio' instead of './libfcitx-qt5-1-rstudio_1.0.5-1ubuntu1~qt542_amd64.deb'
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:
fcitx-frontend-qt5-rstudio : Depends: qtbase-abi-5-5-1 but it is not installable
E: Unable to correct problems, you have held broken packages.
I tried using command sodu apt install qtbase-abi-5 to find the package but failed. I then download the .deb package from https://ubuntu.pkgs.org/16.04/ubuntu-updates-main-amd64/libqt5core5a_5.5.1+dfsg-16ubuntu7.5_amd64.deb.html but it was not work, the page show that this .deb package provide the qtbase-abi-5 package. Interestingly, I can find few information about this error by google. Some info from Ask ubuntu forum say that it seems the qtbase-abi-5 is not included in libqt5core5a.
I don't know how to fix it. Can you give me some suggestion or some link which do can download qtbase-abi-5 ?
Thanks #GAD3R for your answer, I am sorry that it fails.
wsx#wsx:~$ sudo apt-cache search qtbase-abi
libqt5core5a - Qt 5 core module
wsx#wsx:~$ sudo apt install libqt5core5a
Reading package lists... Done
Building dependency tree
Reading state information... Done
libqt5core5a is already the newest version (5.9.1+dfsg-10ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.
wsx#wsx:~$ sudo apt install ./Downloads/fcitx-frontend-qt5-rstudio_1.0.5-1ubuntu1~qt542_amd64.deb ./Downloads/libfcitx-qt5-1-rstudio_1.0.5-1ubuntu1~qt542_amd64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'fcitx-frontend-qt5-rstudio' instead of './Downloads/fcitx-frontend-qt5-rstudio_1.0.5-1ubuntu1~qt542_amd64.deb'
Note, selecting 'libfcitx-qt5-1-rstudio' instead of './Downloads/libfcitx-qt5-1-rstudio_1.0.5-1ubuntu1~qt542_amd64.deb'
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:
fcitx-frontend-qt5-rstudio : Depends: qtbase-abi-5-5-1 but it is not installable
E: Unable to correct problems, you have held broken packages.
Can anyone run following commands successfully?
$ wget http://ikuya.info/tmp/fcitx-qt5-rstudio-qt542.tar.gz
$ tar xf fcitx-qt5-rstudio-qt542.tar.gz
$ sudo apt install ./fcitx-frontend-qt5-rstudio_1.0.5-1ubuntu1~qt542_amd64.deb ./libfcitx-qt5-1-rstudio_1.0.5-1ubuntu1~qt542_amd64.deb
The package libqt5core5a provide qtbase-abi-5-5-1.
apt-cache search qtbase-abi
libqt5core5a - Qt 5 core module
To install the qtbase-abi-5-5-1 , run the following command :
sudo apt update
sudo apt upgrade
sudo apt dist-upgrade
sudo apt install libqt5core5a

how to install R packages "RNetCDF" and "ncdf" on Ubuntu?

I would like to use the R packages RNetCDF and ncdf in Ubuntu.
When I try install.packages('RNetCDF') or install.packages('ncdf'), I get similar errors:
...
ncdf.c:3:20: fatal error: netcdf.h: No such file or directory
compilation terminated.
make: *** [ncdf.o] Error 1
ERROR: compilation failed for package ‘ncdf’
...
Warning message:
In install.packages("ncdf") :
installation of package ‘ncdf’ had non-zero exit status
The packages libnetcdf6 and netcdf-bin from the Ubuntu repository are installed. Do I need to do something else?
You need to install the -dev of those packages to get the headers that are required to compile the package. In this case, you need libnetcdf-dev, udunits-bin and libudunits2-dev
In my case, libudunits2-dev package was needed.
sudo apt-get install libudunits2-dev
Since I installed NetCDF from source, I had to manually specify the locations of lib and include folders
install.packages("/home/user/Downloads/RNetCDF_1.6.1-2.tar.gz",
repos = NULL,
type="source",
dependencies=FALSE,
configure.args="--with-netcdf-include=/usr/local/netcdf-4.2.1-build/include --with-netcdf-lib=/usr/local/netcdf-4.2.1-build/lib")
Just to clarify, since your initial issue is in R, and the fix is applied outside of R. I initially was trying to do
install.packages("libnetcdf-dev"), which didn't work.
instead, from outside of R: sudo apt-get install libnetcdf-dev
That fixed it for me.
In Ubuntu 20.04 LTS one can install the ncdf4 package (which supersedes ncdf), including all dependencies, with the bash command sudo apt install r-cran-ncdf4. Similarly for RNetCDF you can use sudo apt install r-cran-rnetcdf.

Resources