VirtualBox/Vagrant Not Working in Ubuntu 16.04 - linux

I have VirtualBox errors that stop Vagrant from starting. Both are installed. However, when I run:
vagrant up
I get the following
VirtualBox is complaining that the installation is incomplete. Please
run `VBoxManage --version` to see the error message which should contain
instructions on how to fix this error.
Then I run:
VBoxManage --version
And get:
WARNING: The character device /dev/vboxdrv does not exist.
Please install the virtualbox-dkms package and the appropriate
headers, most likely linux-headers-generic.
You will not be able to start VMs until this problem is fixed.
5.0.4_LinuxMintr102546
All of this has already been installed and reinstalled in trying to get this error fixed.
How do I fix this?

Related

Getting docker error 400: client error when trying to run QuantConnect's LEAN engine locally on Ubuntu

I'm simply trying to backtest the starter code provided when creating a new project via the LEAN CLI. When running:
lean backtest <myProject>
I get the following error:
Error: 400 Client Error for http+docker://localhost/v1.41/containers/create?name=lean_cli_0739587438b94317948c15d649098bea: Bad Request ("invalid mount config for type "bind": bind source path does not exist:
/tmp/lean-cli-kapzl8hj/config.json")
OS:
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy
I've tried uninstalling and re-installing Docker, removing and pulling down the Docker image again, as well as uninstalling and re-installing the LEAN CLI.
When I uninstall Docker and re-install, it seems to work until a restart my machine. Then I get the error again.
What I should see is a bunch of output with relevant statistics indicating a successful run of the backtesting algorithim.
Even if you're unfamiliar with QuantConnect itself, any help here would be highly appreciated.

Snapcraft doesnt install snaps, gives a mount error

had it all working and the next day it randomly gave this error to me. I dont know what I did.
also i had a error on the ubuntu screen itself when executed this command “unable to mount volume an operation is already pending” something like that. cant get to re create this
$ snap install ubuntu-frame
error: cannot perform the following tasks:
Run hook prepare-plug-graphics-core20 of snap "ubuntu-frame" (run hook "prepare-plug-graphics-core20": cannot perform operation: mount --bind /snap/core20/current/etc/nsswitch.conf /tmp/snap.rootfs_lOwlQ8/etc/nsswitch.conf: Permission denied)
Ubuntu version
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.5 LTS
Release: 20.04
Codename: focal
Snap version
snap 2.57.6
snapd 2.57.6
series 16
ubuntu 20.04
kernel 4.9.333-127
Its an odroid i have to get it in a kiosk for work. and all it gave me is headaches with errors.
I tried reinstalling snap purged it. didnt fix anything.

Error "No package postgresql12-server available" how to install postgres sql on oracle linux

I am trying to install postgress on oracle linux (checked on oracle linux 7.5 and 6.8) using the following command. ( https://www.postgresql.org/download/linux/redhat/ )
sudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
But when I run this command it takes some time and gives following error.
No package postgresql12-server available
Error: Nothing to do
Then I tried `yum install postgressql-server. Then it gives error.
No package postgressql-server available
I can use docker and run it from a docker container. But I found out it is only for dev and testing only.
I tried with different versions of postgres and same issue occurs.
can someone point out what is the issue here. I did find so much but still couldnt find a solution.

how to install unixodbc on linux

I am trying to install unixodbc on linux (clean install of ubuntu 20), but the directions here are not working for me. When I get the step to ./configure , I get an error saying "configure: error: odbc_config not found (required for unixODBC build)".
Given that this is a popular package and the instructions on the main website don't work, I'm wondering if someone in that community could help me install it?
I tried installing it directly from a .deb file which appeared to work with 0 exit status, but I am still getting an error when I try to run odbc_config, which is how they say to verify the installation. And which unixodbc returns nothing.
Any help installing this package on linux would be greatly appreciated!
Note: On mac, brew install unixodbc works just fine. But I am running into problems when using the compiled binaries from that installation on a linux machine -- it is giving me a mysterious file not found error when I try to reference it, even though it is there, so I believe I need to compile it on linux in order to get it to work.
EDIT: I tried installing from source, but then I got a different error: libpq library version = 9.2 is required. Is there any way to install this package on ubuntu without having to set all kinds of special flags?
EDIT2: I was able to get the installation process to complete after installing libpq-dev.

Errors in installing Homebrew and git

I am trying to work on a linux based external server. I need to install Homebrew and anaconda. So, I have installed anaconda as usual in my home directory. But when I tried to install homebrew, I get the following errors:
fatal: packfile .git/objects/pack/pack-9d2d97f367d3ebfa65a3b708b2d87333a8eb2bf0.pack cannot be mapped: Cannot allocate memory
error: https://github.com/Homebrew/homebrew-core did not send all necessary objects
Failed during: git fetch --force origin refs/heads/master:refs/remotes/origin/master
Ok, then I tried to install git using conda. However, I have encountered another error, which is:
libgcc_s.so.1 must be installed for pthread_cancel to work
I tried to install the GCC library using this link How do I compile and run GCC 4.9.x?
But then again, I encountered the problem of "cannot allocate memory". As I am working on an external cluster with many CPUs, I assume I have enough memory and space because I am working with many genomes.
Also, I cannot used sudo as I am not authorised to do that. I also tried to get the apt-get command but it shows that apt-get command not found.
Can anybody please help me to solve these problems?
Thank you.

Resources