Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I've installed pgAdmin4 in Ubuntu 18.04 by doing:
$ curl https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo apt-key add
$ sudo sh -c 'echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4
main" > /etc/apt/sources.list.d/pgadmin4.list && apt update'
$ sudo apt install pgadmin4
$ sudo /usr/pgadmin4/bin/setup-web.sh
After creating an account and before adding the Postgresql server in pgAdmin4 I got this message displayed:
[1]: https://i.stack.imgur.com/AHI6z.png
Since I was having problems with systemd, I've used Sysvinit system to start the apache2 by doing:
$ service apache2 start
outcome:
Starting Apache httpd web server apache2 *
The apache2 configtest failed.
Output of config test was:
mkdir: cannot create directory '/var/run/apache2': Permission denied
chown: changing ownership of '/var/lock/apache2.Y3B3u6svcJ': Operation not permitted
not sure what to do next.
You should run apache as root:
sudo service apache2 start
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I'm new to Linux and I want to know how to install Node.js on Ubuntu 19.04.
I downloaded the node-v12.12.0-linux-x64.tar.xz from the website and extracted it, but I'm stuck after that, I don't know how to proceed.
I believe what you downloaded is the source for NodeJS (I could be wrong). So you'll need to build it yourself.
If you want to do that check this guide.
Otherwise you can check the NodeSource distributions repo on github.
For Node.js v12.x: run these commands in a terminal window
# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs
# Using Debian, as root
curl -sL https://deb.nodesource.com/setup_12.x | bash -
apt-get install -y nodejs
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
Just got a fresh Linux mint 19.2 installed, i needed docker so i went to the docker doc and followed the process.
https://docs.docker.com/install/linux/docker-ce/ubuntu/
everything went well until step 4 of the repository set up.
on the 4 step it says "Malformed input, repository not added."
I've changed "$(lsb_release -cs)" to "tina" and "tara" still doesn't work.
the 4th step to set up the repository:
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo nano /etc/apt/sources.list.d/additional-repositories.list
add the following line in the file
deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable
then,
sudo apt update
you know the rest of the steps. Good luck!
Leo's answer is very widely accepted but for some reason his solution doesn't work in my machine which is run by Linux Mint 19.3 Chinamon. So after doing some research I came out with this solution.
First Run this
echo -e "\ndeb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" | sudo tee -a /etc/apt/sources.list
and then update the package index.
sudo apt-get update
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I'm configuring my i3blocks for i3wm, and I can't seem to be able to execute sudo command like:
[update-notifier]
label=UPDATE
command=sudo ~/.i3/scripts/update-notifier.sh
interval=once
inside the update-notifier.sh file I have this:
apt-get update && apt-get upgrade
plus some echo for formatting the i3blocks bar.
I've tried this:
command=sudo ~/.i3/scripts/update-notifier.sh with and without sudo with the apt-get -> The script doesn't launch
command=sudo apt-get update && sudo apt-get upgrade -> the command isn't executed
command=~/.i3/scripts/update-notifier.sh with sudo with the apt-get -> the script launch, the i3bar is properly formatted, but the apt-get isn't executed.
Do you have sudo configured so it doesn't ask for a password to your user with the apt-get command? Maybe your command is running but it asks for a password and it fails.
I was abled to accomplish what you're trying to do by allowing my user to run apt-get with sudo without password adding this to the /etc/sudoers file:
<my-user> <my-host> = (root) NOPASSWD:/usr/bin/apt-get
And then adding a block with the command property set like your second option:
command=sudo apt-get update
And verified it works by reloading i3 and checking the timestamp of my latest update with:
stat -c %y /var/lib/apt/periodic/update-success-stamp
Which showed a recent update being successfully done recently:
2015-10-13 08:29:30.996348567 -0430
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I am using Ubuntu 14.04. I downloaded the Ubuntu version from this link:
virtualbox.org/wiki/Linux_Downloads
Ubuntu 13.04 ("Raring Ringtail") / 13.10 ("Saucy Salamander") / 14.04 ("Trusty Tahr") 64bit
download.virtualbox .org/virtualbox/4.3.18 virtualbox- .3_4.3.18-96516~Ubuntu~raring_amd64.deb
I installed by terminal:
wget -q https:// virtualbox .org/download/oracle_vbox.asc -O- | sudo
apt-key add -
Since it didn't work, I tried something else.
I downloaded the Windows version: virtualbox .org/wiki/Downloads
download.virtualbox .org/virtualbox/4.3.18/VirtualBox-4.3.18-96516-Win.exe
I installed it by using "Wine", and received this error:
Error window: SUPR3HardenedMain Effective UID is not root (euid=1000
egid=1000 uid=1000 gid=1000) (rc=-10) Please try reinstalling
VirtualBox.
Any other way to do it? I can't find why is not working!
Actually you install the package with:
sudo dpkg --install virtualbox-4.3_4.3.18-96516~Ubuntu~raring_amd64.deb
You can install virtual box from the ubuntu software center or
sudo apt-get install virtualbox-qt
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I installed git using the following steps
wget https://www.kernel.org/pub/software/scm/git/git-1.8.2.3.tar.gz
tar xzvf git-1.8.2.3.tar.gz
cd git-1.8.2.3
make prefix=/usr/local all
sudo make prefix=/usr/local install
After doing the above I tye in
git --version
and I get the following error
-bash: git: command not found
but it works if I sudo su and then try?
You probably don't have /usr/local/bin in you PATH environment variable. Try:
PATH=$PATH:/usr/local/bin git --version
If that works you can add it permanently by editing yoou .profile or .bash_profile and adding:
export PATH=$PATH:/usr/local/bin