Snapcraft doesnt install snaps, gives a mount error - linux

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.

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.

rabbitmq-server : Depends: socat but it is not going to be installed. Cannot install rabbitMQ

I have been trying now for a few hours to install rabbitMQ on my linux VM.
I am currently running:
Linux 4.18.0-15-generic x86_64
<pre>Distributor ID: Ubuntu
Description: Ubuntu 18.10
Release: 18.10
Codename: cosmic
I am following the instructions specified on rabbitMQ page
After running sudo apt-get install rabbitmq-server I receive the title error. Can someone confirm that there is no support for version 18.10 cosmic? That is the only thing I can think of that might explain it.
I fixed the problem. I was correct. I had to downgrade the version of Ubuntu I was using from 18.10 to 18.04.

VirtualBox/Vagrant Not Working in Ubuntu 16.04

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?

Cannot connect to the Docker daemon on ubuntu 14.04

I have a VPS hosting with Ubuntu installed
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty
Kernel version is 3.13.0-*
I tried to install docker and I went through all steps as mentioned here and everything installed and worked fine with the exception of this:
For Ubuntu Trusty, Wily, and Xenial, it’s recommended to install the
linux-image-extra kernel package. The linux-image-extra package allows
you use the aufs storage driver.
To install the linux-image-extra package for your kernel version
sudo apt-get install linux-image-extra-$(uname -r)
When I was trying to run this command I've been told that
E: Unable to locate package linux-image-extra-3.13.0-042stab113.17
E: Couldn't find any package by regex 'linux-image-extra-3.13.0-042stab113.17'
Anyway seems like docker is installed and I can start it using
service docker start
And when I run this command it says that
docker start/running, process 12235
But when I check the status it says me that
docker stop/waiting
And when I try to start hello-world container it says me that
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
Error: failed to start containers: hello-world
I've already installed docker on my OS X following all steps from official tutorial and it worked fine,
but can't figure out what's wrong with my ubuntu.
Thanks in advance!

problems with setcap in ubuntu 14.04 LTS

I am using command in my code to compile my server.
sudo setcap 'cap_net_bind_service=+ep' ./server
previously I was getting no error while I was using ubuntu 12.04 LTS but now while using ubuntu 14.04 LTS I get " Error on binding: Permission denied"
Can anyone guide me what do do in such case

Resources