Getting 'command not found' when running apt-get in unix - unix

I am trying to instal daemon on Unix via the apt-get command. When I run the command
apt-get install daemon
I get
apt-get: command not found
Does anyone have nay ideas about how to fix this.

apt-get is not on OS X by default. However, you can tweak it a little bit by using Fink so that you get the Debian packages.

Related

Installing Sqlite3 on Ubuntu 14.04 for Python3.6

I have a virtual environment set up with python 3.6. I'm trying to install sqlite3 (I built python from source) and am having trouble doing so. (I need sqlite3 for tensorboard)
After some digging I found an approach:
sudo apt-get install libsqlite3-dev
Now in the downloaded python source rebuild and install python with the following command:
./configure --enable-loadable-sqlite-extensions && make && sudo make install
The issue is I cannot run the first command. Running the first command gives me the error "download failed Oracle JDK 6 is NOT installed." Therefore I downloaded the libsqlite3-dev file.
My question is, where should this be placed before I can run step 2.
I've looked around for a solution for a few hours now ans seem to be at a loss. Any help would be really appreciated with either solving this approach or proposing another approach.
Use Anaconda
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
conda create -n envsq python=3.7
source activate envsq
python
And you can import sqlite3 with no issues.

Why does the system hint 'invalid syntax', when I am executing 'pip install shadowsocks' on centos6

When I am executing pip install shadowsocks on my vps for install the shadowsocks, it tells me invalid syntax. I prepare to install shadowsocks on my vps this morning, I am running yum update -y and yum install python-setuptools && easy_install pip in turns.
After that I am executing pip install shadowsocks and got a hint invalid syntax. I am reading the hint seriously, but I can't read it very well.
I do not understand what the hint want to tell me.
what is you do something like this
sudo apt-get update && sudo apt-get install python-pip

opencpu cloud server installation guide on ubuntu 16.04

Would anyone know or like to share their note on installing opencpu cloud server on ubuntu 16.04?
I thought it is easy, but we saw many error here and there when following the instructions. I am new to opencpu. And, I don't have much experience on apache and nignx.
Here is the long story:
I created a new and clean ubuntu 16.04 server from microsoft azure vm, and installed opencpu cloud server following:
# Requires Ubuntu 14.04 (Trusty) or 16.04 (Xenial)
sudo add-apt-repository -y ppa:opencpu/opencpu-1.6
sudo apt-get update
sudo apt-get upgrade
# Installs OpenCPU server
sudo apt-get install -y opencpu
The server reported insserv error when running opencpu init script
update-rc.d: error: insserv rejected the script header dpkg
We then did some goolge and fix around, we got apache2 running, but when called:
curl http://localhost/ocpu/info
received 404 error.
FYI, the single user server runs fine.
The solution we found is that opencpu need mod_R to be turned on from apache2:
sudo a2enmod R
You need first to change to dir:
/etc/apache2/mods-available
And, make sure R.load file exists.
After running a2enmod command, should see a link to R.load (R module) in
/etc/apache2/mods-enable
Thank you y g for your question and response .. I had the same problem i try what you have mentioned in your comment but
curl http://localhost/cpu/info
takes along time without no response.
Thank you.
I used opencpu 1.5 works without bugs on ubuntu 16.04
sudo add-apt-repository -y ppa:opencpu/opencpu-1.5
sudo apt-get update
sudo apt-get upgrade
Install R and then install opencpu
sudo apt-get install r-base r-base-dev
sudo apt-get install -y opencpu
Also you should probably install Rstudio for IDE access
sudo apt-get install rstudio-server
To login to R you'll need to make a new user - follow the prompts
sudo adduser myname
Now just to make sure its all working
sudo service opencpu restart
sudo service rstudio-server restart
And try something like to check if its working
curl -L -v localhost/ocpu/library/
which should return a list of packages now installed on Ubuntu like this
Final Screenshot

Install of 'R' unstable on Ubuntu

I tried to install R on Ubuntu (14.04) with this command:
sudo apt-get install r-base
The network connection went down during the download / install so I had to end the download (ctrl-c). I retried the same command to restart and it is a mess. There are indications of all kinds of dependency problems. I researched and tried 'sudo apt-get remove r-base' (along with autoremove) and that does not allow me to try to reinstall. In fact, I have tried all kinds of ways to remove but nothing. How can I rectify this? Thank you!

Errors while installing Rstudio

I am trying to install Rstudio. I have downloaded the rstudio-0.98.1103-deb package.
This is the error I am getting when I do:
sudo dpkg -i rstudio-0.98.1103-amd64.deb
How do I go about the installation? Any suggestions would be great. I am on Ubuntu 14.04.
Package libjpeg62 is not installed.
You can get it by typing this in Terminal:
sudo apt-get install libjpeg62
It tells you pretty clearly that you libjpeg62.
So do sudo apt-get install libjpeg62 and then reinstall RStudio.

Resources