Open lhehjvgtycsd opened 7 years ago
Did you try apt-get update && apt-get install docker
?
Also make sure that your user is in the docker group: sudo gpasswd -a $USER docker
Many thanks for your help! Unfortunately neither of the above worked. I should point out that I'm not a Linux expert so when you see the cut-and-paste from my terminal window you will see that $USER appears. After this I realised this was probably supposed to be my username - but that didn't work either.
Have you got any other ideas?
terminal output below...
Fetched 6,979 kB in 13s (520 kB/s)
Reading package lists... Done
W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY CD2E95CE2F98D3F7
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
x@x:~/Engys/HELYX-OS/v2.4.0$ sudo gpasswd -a $USER docker
gpasswd: group 'docker' does not exist in /etc/group
x@x:~/Engys/HELYX-OS/v2.4.0$ sudo gpasswd -a $x docker
gpasswd: user 'docker' does not exist
x@x:~/Engys/HELYX-OS/v2.4.0$
The first command must also be run as root so do sudo apt-get update && sudo apt-get install docker
The second command, try sudo usermod -a -G docker $USER
Still no luck I'm afraid! See output from terminal below ...
x@x:~$ sudo usermod -a -G docker $x [sudo] password for x: usermod: group 'docker' does not exist x@x:~$
Did the first install command work? If not then its clear the group docker does not exist yet.
Here's what I get when I run the two commands - apologies for not coming up with useful suggestions but Linux is new to me!
terminal output below...
The following NEW packages will be installed
docker
0 to upgrade, 1 to newly install, 0 to remove and 5 not to upgrade.
Need to get 12.2 kB of archives.
After this operation, 65.5 kB of additional disk space will be used.
Get:1 http://gb.archive.ubuntu.com/ubuntu/ trusty-updates/universe docker amd64 1.5-1 [12.2 kB]
Fetched 12.2 kB in 0s (113 kB/s)
Selecting previously unselected package docker.
(Reading database ... 530852 files and directories currently installed.)
Preparing to unpack .../docker_1.5-1_amd64.deb ...
Unpacking docker (1.5-1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up docker (1.5-1) ...
x@x:~$ sudo usermod -a -G docker $x
usermod: group 'docker' does not exist
x@x:~$
Ok, then check whether ubuntu is maybe using a different and auto-configured group (docker needs to be installed, as it seems you did it just before) name for docker by doing grep -i docker /etc/group
if that is completely empty, do sudo groupadd docker
. If it was not empty, use the previously posted command to add your user to the posted group.
You know, I'm wondering if OpenFOAM is actually installed on my box? In the GitHub installation instructions for HELYX-OS there is a step where it says it will automatically install OpenFOAM along with HELYX-OS and this was the option I selected but I'm not sure it worked. I can't find any folders relating to openfoam OR docker. That is just by searching from the Ubuntu file manager - perhaps there is a smarter way. What are the default locations for openfoam and docker so I can check to see if they are actually there?
Hi,
I've installed openFOAM v1606+ and HELYX-OS v2.4.0 per the installation process "Installation of the Latest 64 Bit Linux Binaries" on the github page. HELYX opens up fine but when I come to generate a mesh I get 'Cannot run program "docker" (in directory ...
See attached screenshot.
Any ideas?