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

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.

Related

error on installing nginx and apache2 on Raspberry Pi

The errors are:
pi#raspberrypi:~ $ sudo apt install apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package apache2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'apache2' has no installation candidate
pi#raspberrypi:~ $ sudo apt install nginx
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package nginx
I just started with Pi so i am completely new to this.
I need this for my school projects.
I tried everything on the internet nothing works.
sudo apt get update and upgrade doesnt find anything.

CanĀ“t install Rstudio in Ubuntu "Dependency is not satisfiable: libssl1.0.0|libssl1.0.2|libssl1.1"

Does have someone the same issue?
i'm trying to install Rstudio, so downloaded the current version and i got the following:
It is worth mentioning that I had several previous versions of Rstudio downloaded so I renamed it as rstudio-new
kevin#kevin:~/Descargas$ sudo gdebi rstudio-new.deb
Reading package lists... Done
Building dependency tree... Done
Reading status information... Done
Reading status information... Done
Cannot install this package
The dependency is unsuccessful: libssl1.0.0|libssl1.0.2|libssl1.1
I already tried sudo apt-get update and sudo apt get-install (libssl version) as well as trying to install previous versions and I have not been successful in any :( the info of my pc is:
I have tried other things as well, such as downloading several versions of libssl, but I have not been successful either:
sudo gdebi libssl1.0.0-dbg_1.0.1f-1ubuntu2.27_amd64.deb
Reading package lists... Done
Building dependency tree... Done
Reading status information... Done
Reading status information... Done
Cannot install this package
Dependency is unsuccessful: libssl1.0.0 (= 1.0.1f-1ubuntu2.27)
sudo apt-get install libssl-dev
Reading package list... Done
Creating dependency tree... Done
Reading status information... Done
libssl-dev is already in its most recent version (3.0.2-0ubuntu1.7).
0 updated, 0 new to install, 0 to remove and 0 not updated.
Does anyone by chance know what is causing this? It should be mentioned that I already had (a long time ago) R and Rstudio but I had to uninstall them because I didn't use them, but now I do need them
Same problem here. I have solved it installing a daily release of the next version.

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

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

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

passenger-nginx-module Cannot find the `curl-config` command

Can anyone please help me with this:
rvmsudo passenger-install-nginx-module
Now it shows this:
Checking for required software...
* Checking for Curl development headers with SSL support...
Found: no
Error: Cannot find the `curl-config` command.
Installation instructions for required software
* To install Curl development headers with SSL support:
Please run apt-get install libcurl4-openssl-dev or libcurl4-gnutls-dev, whichever you prefer.
Now when i am trying to install
sudo apt-get install libcurl4-openssl-dev
The main issue:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libcurl4-openssl-dev
Maybe you need to run 'apt-get update' first in order to update your package database.

Resources