error on installing nginx and apache2 on Raspberry Pi - nginx

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.

Related

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.

R package install fail on Ubuntu 21.04

After following this successfully and getting Kick Things in, I get this on my Ubuntu 21.04
> sudo apt install --no-install-recommends r-cran-rstan
Reading package lists... Done
Building dependency tree... Done
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-v8 : Depends: libnode64 but it is not installable
E: Unable to correct problems, you have held broken packages.
> sudo apt install --no-install-recommends r-cran-tidyverse
Reading package lists... Done
Building dependency tree... Done
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-stringi : Depends: libicu66 (>= 66.1-1~) but it is not installable
E: Unable to correct problems, you have held broken packages.
BTW, I did the change to focal trick suggested for c2d4u.

Errors in installing MariaDB in WSL2

I am trying to install MariaDB in WSL2, but it's showing me the following errors -
sachinpandeyatd#DESKTOP-Q3O2EQE:/mnt/c/Users/Hp/documents/server$ sudo apt-get install mariadb-server
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:
mariadb-server : Depends: mariadb-server-10.3 (>= 1:10.3.29-0ubuntu0.20.04.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I'd be very grateful if anyone can resolve my error!!

Installing Phusion Passenger for Nginx, can't find package libnginx-mod-http-passenger

I am using the tutorial at
https://www.phusionpassenger.com/docs/tutorials/deploy_to_production/installations/oss/ownserver/ruby/nginx/
to install Passenger (6.0.4) for use with Nginx. I get to the point where I'm installing the 'libnginx-mod-http-passenger' package, and get the following...
deploy#rpi-tick1:~ $ sudo apt-get install -y libnginx-mod-http-passenger
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libnginx-mod-http-passenger
I am installing for Raspbian-stretch (Debian), and have set up /etc/apt/sources.list.d/passsenger.list as shown below (as instructed in the tutorial)
deploy#rpi-tick1:~ $ cat /etc/apt/sources.list.d/passenger.list
deb https://oss-binaries.phusionpassenger.com/apt/passenger stretch main
It appears that repository contains only 'passenger-doc' packages. Any help would be appreciated.
I just ran into this issue myself while testing out whether my passenger setup will work on an ARM based Ubuntu instance. I believe the cause is that package is available for amd64 but not ARM. I see that you are using Raspbian and Raspberry Pi's are ARM based systems.

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

Resources