VPS add repository error - linux

I would like to install Bitcoind under (VPS) linu system. I got a step by step tutorial how can i do this installation, but everytime when i tried to add repository i got the following error message on console "sudo: add-apt-repository: command not found"
commands for installation
sudo aptitude install python-software-properties
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo aptitude update
sudo aptitude install bitcoind
mkdir ~/.bitcoin/

These commands are appropriate for an Ubuntu distribution and not CentOS.
The analogous commands that CentOS uses are yum install / yum update, etc.

Related

Olevba install linux issues

I'm doing a lab on HTB and i need to download olevba, however when i do it doesn't work. I'm using linux commands i'm using to install are, sudo apt install python3-pip then, in
I'm using linux commands i'm using to install are, sudo apt install python3-pip then, error message olevba is not a command
This should allow you to create the command line:
sudo -H pip install -U oletools[full]
Refer to documentation : https://pypi.org/project/oletools/

Ubiquity not working on Minimized Xubuntu

I want to create my own Xubuntu customize distribution with packages required by my application.
First I install Ubuntu 22.04 Server with Minimized type.
Second I run:
sudo apt -y update && sudo apt -y install xubuntu-core ubiquity ubiquity-casper ubiquity-frontend-gtk ubiquity-slideshow-ubuntu ubiquity-ubuntu-artwork
Then restart the system and run the Install but nothing happened.
Do I miss something?

Unable to install libsasl2-devel on Amazon Linux 2 machine

I am running Ansible playbook and trying to install OS dependencies packages for python. I am trying to run the following:
sudo yum install gcc gcc-c++ libffi-devel python-devel python-pip python-wheel openssl-devel libsasl2-devel openldap-devel
However, it fails at installing libsasl2-devel with the message:
"No package matching 'libsasl2-devel' found available, installed or updated"
All my instances are Amazon Linux 2 machines. Is there any alternative package for this? I tried to look into this but I found solutions for Ubuntu only.
I was able to get it to work in a series of steps. Its a yum issue after other databases are installed and not cleaned up before installing mysql
clear sasl first: sudo yum remove cyrus-sasl
if you have installed maria, there will be conflicts, remove that as well
sudo yum remove mariadb mariadb-server mariadb-libs
take note of anything uninstalled by this to re-add later. If this is too much, you can take a risk and not remove sasl, but it might not reset the availability of the package.
Start here to clean up the dependency issues: https://serverfault.com/questions/873955/how-solve-mysql-5-7-dependency follow the command given by clean all as sudo rm -rf /var/cache/yum/*
This can possibly resolve your issues right there, if not continue the installation below.
delete all data left in /var/lib/mysql/ or you may have upgrade issues.
resinstall sasl:
sudo yum install cyrus-sasl cyrus-sasl-devel and any other packages removed above.
Establish mysql5.7 with the yum services.
wget https://dev.mysql.com/get/mysql57-community-release-el6-11.noarch.rpm
sudo yum localinstall -y mysql57-community-release-el6-11.noarch.rpm
sudo yum repolist enabled | grep "mysql.*-community.*"
sudo yum repolist enabled | grep mysql
sudo yum install -y mysql-community-common mysql-community-libs mysql-community-server mysql-community-client
if that doesn't work, re-clear the yum cache again and re-run sudo yum install -y mysql-community-server
if that works, then
sudo service mysqld start
IF the /var/lib/mysql is empty, it will have created a temporary password in the /var/log/mysqld.log (use sudo to read)
run sudo mysql_secure_installation and establish your real password and security settings.
now you should have access via mysql -u root -p

I'm getting a "command not found" error when trying to install "xgboost" in an Ubuntu 16.04 Virtual Machine

I'm trying to install xgboost in an Ubuntu 16.04 virtual machine.
I'm following this guide and ran this command:
cmake ..
I got this error:
-bash: cmake: command not found
What am I doing wrong and how can I get rid of this error?
Try this:
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:george-edison55/cmake-3.x
sudo apt-get update
sudo apt-get install cmake
UPDATE:
Or you can just use pip:
sudo pip3 install xgboost
It appears you're getting this error because you don't have the cmake command installed, you can fix this by running:
sudo apt install cmake
I don't know if you've missed this but you can also install xgboost using pip (or in your case pip3), like this:
pip3 install xgboost
NOTE: depending on how your user/project is set up you might need to use the sudo command to grant pip3 write privileges to certain (root) directories, if this is the case, you'd use:
sudo pip3 install xgboost
NOTE: if you don't have pip3 installed, you can install it using:
sudo apt install python3 python3-pip
Good luck.

Error installing Image Magick on Ubuntu 14.04

I have Ubuntu 14.04 on DigitalOcean, I tried to install ImageMagick
I have found and followed this instruction
I have updated my installation with this command
sudo apt-get update
Then I tried following
wget http://mirror.checkdomain.de/imagemagick/ImageMagick-6.9.2-10.tar.gz
tar -xvzf ImageMagick-6.9.2-10.tar.gz
cd ImageMagick-6.9.2-10
./configure
sudo make
sudo make install
But while it sudo make process, it returns error as you can see in the screen shot.
What I am doing wrong and how can I install it correctly?
First all it is a good practice to have things updated:
sudo apt-get update
Next, you should install imagemagick and php5-imagick from the repository:
sudo apt-get install imagemagick php5-imagick
And finally reload your web server.

Resources