Getting an error by making VBox full screen on Windows? - linux

Despite installation of the package, getting same error again.
Error : kernel module failed
Kernel headers not found for target kernel4.19.0-8-amd64. Please install them and execute
Host: Win 10
VBox: Debian 10

This is typical issue, actually not an issue simply missing headers. Run following
commands
$ sudo apt install linux-headers-4.19.0-8-amd64
$ sudo apt install dkms
Then run guest script again
sudo sh VBoxLinuxAdditions.run
Finally reboot the machine
$ sudo reboot

Related

fatal error : aux.h No such file or directory (Ubuntu)

I'm learning how to compile the Linux kernel on Ubuntu. Following step by step, I encountered errors like this. There is no problem until
$ sudo make menuconfig
but sudo make doesn't work. I installed these libs.
sudo apt-get install libncurses5-dev
sudo apt-get install libssl-dev
sudo apt-get install libelf-dev
sudo apt-get install flex
sudo apt-get install bison
How can I include this header file?
drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c:25:10: fatal error: aux.h: No such file or directory
25 | #include "aux.h"
The aux.h file should be in the directory drivers/gpu/drm/nouveau/nvkm/subdev/i2c, you can go to the path to check whether there is the file and if not, you can redownload it.
You said you are using a Virtual Machine, so I assume Windows is your host. Windows doesn't allow files name aux*, but there are ways around it, e.g rename in WSL or cygwin... and perhaps a virtual machine will work too. See here for more information:
https://superuser.com/questions/206423/windows-7-can-not-rename-a-file-to-aux-svg-the-specified-device-name-is-inva

How do i fix the snapd.socket no such file or directory error on MxLinux?

I've been trying to install a couple of apps using sudo snap install <nameofapp>
But whenever I try this I always get the same error:
error: cannot communicate with server: Post http://localhost/v2/snaps/standard-notes: dial unix /run/snapd.socket: connect: no such file or directory
I'm on MXLINUX please help
I am working with a Debian system (5.5.0-kali1-amd64 #1 SMP Debian 5.5.13-2kali1 (2020-04-03) x86_64 GNU/Linux)
).
I found that when I tried to install notepad++. I got the same error. These command worked for me. Hope they do for you.
sudo service snapd start
sudo systemctl start snapd.service
sudo snap install notepad-plus-plus
sudo apt-get install snapd
service snapd start
sudo snap install notepad-plus-plus --edge
You will get updated Notepad++

VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005) with meanjs and vagrant

I am trying to run mean.js project based on vagrant , but I get the following error with the vagrant up command on ubuntu 14.04 LTS 64 bit.
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["startvm", "d660b7d6-06a3-49bc-8b90-cbad92632c11", "--type", "headless"]
Stderr: VBoxManage: error: The virtual machine 'pets_default_1473142645576_38190' has terminated unexpectedly during startup with exit code 1 (0x1)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine
I solved the using following steps:
I have completely remove older VirtualBox versions before installing VirtualBox-5.0 !
Uninstall VirtualBox
sudo apt-get purge "^virtualbox-.*"
Update the software repositories
sudo apt-get update
Clean up
sudo apt-get autoremove | sudo apt-get autoclean | sudo apt-get clean
Setup API repository (For Ubuntu 14.04 ("Trusty"))
echo "deb http://download.virtualbox.org/virtualbox/debian trusty contrib" | sudo tee /etc/apt/sources.list.d/oracle-vbox.list
Setup Oracle Key
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
6.Install Oracle Virtualbox
sudo apt-get update
sudo apt-get install virtualbox-5.1
Start Virtualbox
virtualbox
For more help check to here.
I have reinstalled virtual box and the issue has been solved for me.
On my mac while installing virtual box, It has not allowed me to install. So i went system preference -> security & privacy - > general - 'allow apps download from' -> click on the "allow" button.
I have successfully installed virtual box after the above changes on system preference.
Kitchen converge -> successfully done.
I was using macOS and I had this error after updating VirtualBox. I solved the error by going to:
System Preferences --> Security & Privacy and then clicked on lock to make changes. Then, I clicked on "Allow" as shown in the picture below:
After you make the changes, a restart is requested by the system, after restart the command should work just ok :)
Move to directory:
cd /sbin/
Run script:
sudo ./vboxconfig
Start VM:
VBoxManage startvm "VM name" --type headless
It works:)
Root this problem - system updating. VBox updated partially. This script fix this problem.
For some reason my virtualbox linux host was having an outdated vboxdrv kernel module.
I did the whole remove VirtualBox package, then reinstall, but this old version kernel module remained.
Manually deleted the unwanted module, then freshly reinstalled latest VirtualBox, then usual vboxconfig to rebuild the latest modules, and we're done.
/usr/bin/vboxmanage startvm Win10-Server --type headless now working as expected. :-)
I also faced the same issue, but Santosh Shinde's answer helped me to figure it out.
I, however, want to add to it:
After uninstalling every old/previous version of Virtualbox available on your PC:
sudo apt-get purge "^virtualbox-.*"
And cleaning your system:
sudo apt-get autoremove
Rather than installing Virtualbox from the Apt repository of Ubuntu, simply visit the downloads page of Virtualbox, to download the most current version of Virtualbox.
This is because the Apt repository may not have the latest version of Virtualbox.
I have the same error after install some cripto plugin to Chrome.Then see that Virtual box extension is not working under root and user. In my linux distributive /opt owner was changed to user by cripto plugin installator. Changing /optto root owner has solved the problem.
I just had this happen on a FreeBSD box where vagrant wasn't involved at all.
[root#freebsdserver ~]# vboxmanage startvm yavm
Waiting for VM "yavm" to power on...
VBoxManage: error: The virtual machine 'yavm' has terminated unexpectedly during startup because of signal 6
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine
In this case it's because "freebsdserver" is running headless. The fix was to run:
# vboxmanage startvm yavm --type headless

Launching "sudo dpkg --configure -a" restarts the pc and does not solve anything

running a OpenCV-based code on Ubuntu, I incurred in the following error:
OpenCV Error: Unspecified error (The function is not implemented.
Rebuild the library with Windows, GTK+ 2.x or Carbon support.
If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then
re-run cmake or configure script) in cvNamedWindow, file /home/opennao/src/OpenCV-2.3.1/modules/highgui/src/window.cpp, line 275
terminate called after throwing an instance of 'cv::Exception'
So I tried to install this libgtk2.0-dev by typing:
sudo apt-get install libgtk2.0-dev
but it returns the following:
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem."
And this is what I did. But then, during the processing of the command request, the pc restarts on its own and the problem comes again when I run my code.
For the sake of clarification, I think it's worth saying that two weeks ago an update on Ubuntu corrupted my grub to choose the OS to run (there are Ubuntu 14.04 and Windows 10 on my pc), so I restored it through minimal-bash line editing.
Now, when I run "sudo dpkg --configure -a" I see that the last printed lines before restarting refer to some information about disk images or kernels that I rembember to have handled to fix the grub. I don't know if this can be a suggestion to understand the problem.
Thank you all for your support, ask me if you need further details.

Installing RPostgreSQL on Linux

When I try on linux in R
install.packages('RPostgreSQL')
it fails with unspecified errors:
Warning message:
In install.packages("RPostgreSQL") :
installation of package ‘RPostgreSQL’ had non-zero exit status
I tried to solve problem with:
sudo apt-get install postgresql-server-dev-8.4 for postgresql version 8.4.
but it doesn't seems to work.
sudo: apt-get: command not found
I have PostgreSQL 9.1.11 version.
Read the configure log.
You most likely "merely" forgot to read the README and DESCRIPTION and other documentation telling you to do
sudo apt-get install libpq-dev
We develop this on, inter alia, Debian/Ubuntu systems so can be more than sure that it works there.

Resources