Can you tell me how can i uninstall nagios and NRPE.
I have tried this command to uninstall NRPE:
sudo apt-get remove nagios-nrpe-server
but when I execute this command it's display to me the version of Nrpe installed
./check_nrpe -H localhost
Thank you in advance
Follow these steps in given order.
1. sudo apt-get remove nagios-nrpe-server
2. sudo apt-get remove --auto-remove nagios-nrpe-server
3. sudo apt-get purge nagios-nrpe-server
4. sudo apt-get purge --auto-remove nagios-nrpe-server
Reboot your machine ,hope this solves your issue.
Simply remove all the nagios packages by:
sudo apt-get remove nagios*
Related
Actually, with the new release of Xdebug 3, I have to investigate more why its not working. I don't have much time for that.
The problem was I had this command for vagrant box creation but it does not have any version number.
sudo apt-get install -y php-xdebug
Is there a way to specify the version number to install version 2.9.3
this worked for me. Thank you #LazyOne for help. :-)
sudo apt-get install -y php-pear php7.3-dev
sudo apt install -y php7.3-xdebug
sudo pecl install xdebug-2.9.3
I am trying to install R version 4.0.2 on ubuntu 18.04 but it shows this message:
The following packages have unmet dependencies:
r-base : Depends: r-base-core (>= 4.0.3-1.2004.0) but it is not going to be installed
Depends: r-recommended (= 4.0.3-1.2004.0) but it is not going to be installed
Recommends: r-base-html but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
You have to remove problematic PPA (it does no publish packages for 18.04 LTS - bionic) first with:
sudo add-apt-repository -r ppa:grass/grass-stable
and then update your package lists
sudo apt-get update
and install new updates with their dependencies by
sudo apt-get dist-upgrade
You have added R 3.5 repository (see bionic-cran35 in its URL), instead of needed R 4.0 (bionic-cran40). You have to remove wrong repository with
sudo add-apt-repository -r 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/'
and then add correct one:
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/'
sudo apt-get dist-upgrade
sudo apt-get install r-base r-base-core r-recommended
In order to install the last R version in Ubuntu LTS >= 16.04. (amongst other 18.04) follow the instructions at CRAN. If you have already installed the distro version of R remove it with the package manager.
Here, I made a summarized version of the instructions.
Note that this instructions are valid for any LTS. I tried them with 18.04. and worked smoothly.
update indices
sudo apt update -qq
install two helper packages we need
sudo apt install --no-install-recommends software-properties-common dirmngr
Add the signing key (by Michael Rutter) for these repos
wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | sudo tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
Add the R 4.0 repo from CRAN
sudo add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/"
Install R and its dependences
sudo apt install --no-install-recommends r-base
Ready, you can execute R by just entering R on your terminal.
Does anyone successfully install pdo_sqlsrv in ubuntu php 7.2.9 environment? I only see sqlsrv on phpinfo(), pdo_sqlsrv always installed fail. Thank you very much.
I found an afternoon and finally found a solution.
The file 30-pdo_sqlsrv.ini in /etc/php/7.2/cli/conf.d ,
copy to /etc/php/7.2/apache2 , it work !!
curl https://packages.microsoft.com/config/ubuntu/18.04/prod.list | sudo tee /etc/apt/sources.list.d/msprod.list
sudo apt-get update
sudo ACCEPT_EULA=Y apt-get -y install msodbcsql17 mssql-tools
sudo apt-get -y install unixodbc-dev
sudo apt-get -y install gcc g++ make autoconf libc-dev pkg-config
sudo apt-get install php-pear php7.2-dev
sudo pecl install sqlsrv
sudo pecl install pdo_sqlsrv
printf "; priority=20\nextension=sqlsrv.so\n" > /etc/php/7.2/mods-available/sqlsrv.ini
printf "; priority=30\nextension=pdo_sqlsrv.so\n" > /etc/php/7.2/mods-available/pdo_sqlsrv.ini
phpenmod -v 7.2 sqlsrv pdo_sqlsrv
a2enmod mpm_prefork
a2enmod php7.2
service apache2 restart
when i want to update or install any package i got this error:
for example : whealln i exec this sudo apt upgrade or sudo apt install zsh
dpkg: error processing package linux-image-4.15.0-20-generic (--remove):
installed linux-image-4.15.0-20-generic package post-removal script subprocess returned error exit status 1
Errors were encountered while processing:
linux-image-4.15.0-20-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
how to fix it?
These commands should hopefully work. They will do a full clean and reinstall.
sudo apt-get autoremove
sudo apt-get --purge remove && sudo apt-get autoclean
sudo apt-get -f install
sudo apt-get update
sudo apt-get upgrade && sudo apt-get dist-upgrade
sudo dpkg-reconfigure -a
sudo dpkg --configure -a
i try to install Apache 2 on my Ubuntu system version is 14.04 LTS,
installation was success full but when i try to restart the Apache its showing unrecognized service , please help me to solve this problem.
Thanks in advance.
To start the apache server, you can use this command:
$ sudo service httpd start
Other available commands are as follows:
$ sudo service httpd restart ## restart the apache server
$ sudo service httpd stop ## stop the server
To list all httpd commands:
$ sudo service httpd
sudo apt-get remove --purge apache2 apache2-utils
sudo apt-get install --reinstall apache2 apache2-utils
sudo service apache2 start
and then check by:
sudo service apache2 status
I faced same problem and solved it by running the following command:
sudo apt-get purge apache2 apache2-utils apache2.2-bin
sudo apt-get autoremove
sudo apt-get install apache2 apache2-utils apache2.2-bin