Unable to start VirtualBox VM on Ubuntu – Kernel driver not installed

I’m fairly new to Ubuntu and would like to learn more in a safer environment than using my host machine. I’m running Ubuntu 18.04 Kernel 5.3.1 and am struggling to create a VirtualBox Ubuntu VM.

When I try to start the machine I get:

Virtualbox

Running modprobe xboxdrv as root I get:

modprobe xboxdrv modprobe: FATAL: Module xboxdrv not found in directory /lib/modules/5.3.1-050301-generic 

When I run:

sudo apt install --reinstall virtualbox-dkms 

Unpacking virtualbox-dkms (5.2.32-dfsg-0~ubuntu18.04.1) over (5.2.32-dfsg-0~ubuntu18.04.1) … Setting up virtualbox-dkms (5.2.32-dfsg-0~ubuntu18.04.1) … Loading new virtualbox-5.2.32 DKMS files… Building for 5.3.1-050301-generic Building initial module for 5.3.1-050301-generic ERROR (dkms apport): kernel package linux-headers-5.3.1-050301-generic is not supported Error! Bad return status for module build on kernel: 5.3.1-050301-generic (x86_64) Consult /var/lib/dkms/virtualbox/5.2.32/build/make.log for more information.

The mentioned file contains this contents:

CC [M] /var/lib/dkms/virtualbox/5.2.32/build/vboxdrv/r0drv/linux/mpnotification-r0drv-linux.o CC [M] /var/lib/dkms/virtualbox/5.2.32/build/vboxdrv/r0drv/linux/process-r0drv-linux.o CC [M] /var/lib/dkms/virtualbox/5.2.32/build/vboxdrv/r0drv/linux/rtStrFormatKernelAddress-r0drv-linux.o CC [M] /var/lib/dkms/virtualbox/5.2.32/build/vboxdrv/r0drv/linux/semevent-r0drv-linux.o CC [M] /var/lib/dkms/virtualbox/5.2.32/build/vboxdrv/r0drv/linux/semeventmulti-r0drv-linux.o /var/lib/dkms/virtualbox/5.2.32/build/vboxdrv/r0drv/linux/mp-r0drv-linux.c: In function ‘VBoxHost_RTMpOnAll’: /var/lib/dkms/virtualbox/5.2.32/build/vboxdrv/r0drv/linux/mp-r0drv-linux.c:287:18: error: void value not ignored as it ought to be int rc = smp_call_function(rtmpLinuxAllWrapper, &Args, 0 /* wait /); ^~~~~~~~~~~~~~~~~ /var/lib/dkms/virtualbox/5.2.32/build/vboxdrv/r0drv/linux/mp-r0drv-linux.c: In function ‘VBoxHost_RTMpOnOthers’: /var/lib/dkms/virtualbox/5.2.32/build/vboxdrv/r0drv/linux/mp-r0drv-linux.c:341:8: error: void value not ignored as it ought to be rc = smp_call_function(rtmpLinuxWrapper, &Args, 1 / wait /); ^ scripts/Makefile.build:280: recipe for target ‘/var/lib/dkms/virtualbox/5.2.32/build/vboxdrv/r0drv/linux/mp-r0drv-linux.o’ failed make[2]: [/var/lib/dkms/virtualbox/5.2.32/build/vboxdrv/r0drv/linux/mp-r0drv-linux.o] Error 1 make[2]: Waiting for unfinished jobs…. CC [M] /var/lib/dkms/virtualbox/5.2.32/build/vboxdrv/r0drv/linux/semfastmutex-r0drv-linux.o scripts/Makefile.build:497: recipe for target ‘/var/lib/dkms/virtualbox/5.2.32/build/vboxdrv’ failed make1: [/var/lib/dkms/virtualbox/5.2.32/build/vboxdrv] Error 2 Makefile:1624: recipe for target ‘module/var/lib/dkms/virtualbox/5.2.32/build’ failed make: * [module/var/lib/dkms/virtualbox/5.2.32/build] Error 2 make: Leaving directory ‘/usr/src/linux-headers-5.3.1-050301-generic’

How do I get VirtualBox running on Ubuntu?

Run nodejs installed as snap package

I am running Ubuntu 18.04 and want to install a specific version of node using snap. I have installed this version successfully but when I run

node --version 

I get the version I have installed using apt. How can I get it to use the node executables installed with snap and not the ones in ‘/usr/local/bin’? I’ve tried adding the path to the snap install to the PATH variable but it keeps picking the one installed by apt. I tried purging the the apt install but that didn’t work because of reasons, and I kind of feel I shouldn’t have to. Any suggestions?

Impossible to run texstudio once installed

I’m running a fresh new installed Ubuntu 18.04.3. So my problem is: when I install texstudio with terminal in the usual way everything seems to run smoothly:

zosiah@zosiah-HP-255-G6-Notebook-PC:~$   sudo apt install texstudio [sudo] password for zosiah:  Reading package lists... Done Building dependency tree        Reading state information... Done The following package was automatically installed and is no longer required:   libqt5concurrent5 Use 'sudo apt autoremove' to remove it. The following additional packages will be installed:   texstudio-l10n Suggested packages:   latex-beamer The following NEW packages will be installed:   texstudio texstudio-l10n 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/5.775 kB of archives. After this operation, 16,5 MB of additional disk space will be used. Do you want to continue? [Y/n] y (Reading database ... 365865 files and directories currently installed.) Preparing to unpack .../texstudio_2.12.6+debian-2_amd64.deb ... Unpacking texstudio (2.12.6+debian-2) ... Selecting previously unselected package texstudio-l10n. Preparing to unpack .../texstudio-l10n_2.12.6+debian-2_all.deb ... Unpacking texstudio-l10n (2.12.6+debian-2) ... Setting up texstudio (2.12.6+debian-2) ... Setting up texstudio-l10n (2.12.6+debian-2) ... Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ... Processing triggers for man-db (2.8.3-2ubuntu0.1) ... Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ... Processing triggers for hicolor-icon-theme (0.17-2) ... Processing triggers for mime-support (3.60ubuntu1) ... 

but when I try to run texstudio terminal says:

zosiah@zosiah-HP-255-G6-Notebook-PC:~$   texstudio texstudio: error while loading shared libraries: libdouble-conversion.so.1: cannot open shared object file: No such file or directory 

I’ve been googling around for a while but I’ve not arrived to a solution… Any idea? P.S. I’m not being able to install texmaker and emacs25, too. This thing sounds to me pretty strange because until now I’ve never had such problem neither wit synaptic nor with apt and so on… What could be the matter?

I need to partition ubuntu 18.04 on both ssd and hdd,i have 240 gb ssd and 2tb hdd,i already installed on ssd but my hdd is not used

i need help, i can reinstall also, but i need ssd for boot and other things and hdd for data and storage, please help me . I hope there is a way without restarting the whole procedure,even if there is not please help me.Thanks in advance

libdevmapper1.02.1:i386 : Depends: libc6:i386 (>= 2.22) but it is not going to be installed

After an update on Ubuntu 18.04 I have some problems, for example when trying to update, remove or install some package I get:

 Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies:  libdevmapper1.02.1:i386 : Depends: libc6:i386 (>= 2.22) but it is not going to be installed  libfreetype6:i386 : Depends: libc6:i386 (>= 2.11) but it is not going to be installed  libfuse2:i386 : Depends: libc6:i386 (>= 2.17) but it is not going to be installed  libgcc1:i386 : Depends: libc6:i386 (>= 2.2.4) but it is not going to be installed  liblzma5:i386 : Depends: libc6:i386 (>= 2.17) but it is not going to be installed  libpcre3:i386 : Depends: libc6:i386 (>= 2.4) but it is not going to be installed  libpng16-16:i386 : Depends: libc6:i386 (>= 2.11) but it is not going to be installed  libselinux1:i386 : Depends: libc6:i386 (>= 2.8) but it is not going to be installed  libstdc++6:i386 : Depends: libc6:i386 (>= 2.18) but it is not going to be installed  libudev1:i386 : Depends: libc6:i386 (>= 2.25) but it is not going to be installed  zlib1g:i386 : Depends: libc6:i386 (>= 2.4) but it is not going to be installed E: Unmet dependencies. Try 

‘apt –fix-broken install’ with no packages (or specify a solution).

How to fix that?

I tried to do several things:

  1. apt –fix-broken install
  2. sudo apt-get install -f
  3. sudo dpkg –configure -a

and others. But nothing helped. Now I can only use the system, nothing else.

For apt-get update:

Hit:1 http://download.virtualbox.org/virtualbox/debian bionic InRelease Ign:2 http://ppa.launchpad.net/jelmer/daily/ubuntu bionic InRelease                                                                                                                                           Hit:3 http://archive.ubuntu.com/ubuntu bionic InRelease                                                                                                                                                       Err:4 http://ppa.launchpad.net/jelmer/daily/ubuntu bionic Release                                                                                                                                               404  Not Found [IP: 91.189.95.83 80] Hit:5 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease                                                                                                                                               Get:6 http://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB]                                                                                                                                   Hit:7 http://archive.canonical.com/ubuntu bionic InRelease                                                                                                                           Get:8 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88,7 kB]                                                                                                            Get:9 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74,6 kB]                                                                                                 Hit:10 https://packagecloud.io/AtomEditor/atom/any any InRelease                                                                         Reading package lists... Done  W: Skipping acquire of configured file 'contrib/source/Sources' as repository 'http://download.virtualbox.org/virtualbox/debian bionic InRelease' does not seem to provide it (sources.list entry misspelt?) N: Skipping acquire of configured file 'contrib/binary-i386/Packages' as repository 'http://download.virtualbox.org/virtualbox/debian bionic InRelease' doesn't support architecture 'i386' E: The repository 'http://ppa.launchpad.net/jelmer/daily/ubuntu bionic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target Packages (multiverse/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target Packages (multiverse/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target Packages (multiverse/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target Translations (multiverse/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target Translations (multiverse/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target DEP-11 (multiverse/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target DEP-11 (multiverse/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target DEP-11-icons-small (multiverse/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target DEP-11-icons (multiverse/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target CNF (multiverse/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target CNF (multiverse/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target Packages (multiverse/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target Packages (multiverse/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target Packages (multiverse/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target Translations (multiverse/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target Translations (multiverse/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target DEP-11 (multiverse/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target DEP-11 (multiverse/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target DEP-11-icons-small (multiverse/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target DEP-11-icons (multiverse/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target CNF (multiverse/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 W: Target CNF (multiverse/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:52 

Get ProductId of installed app

I’m trying to automate the installation of sharepoint add-ins. I have added an spfx add to the tenant add-in catalog and then used pnp:s AppManager to install it to a site. I gave it the product id as identifier when installing it which worked. However, when I request a list of the installed apps I don’t get any reference to the product id. I have tried two ways to get information about the installed app but they don’t show the same data which makes me confused

The following code

var appInstance = Microsoft.SharePoint.Client.AppCatalog.GetAppInstances(ctx, ctx.Web); appInstance.Context.Load(appInstance); appInstance.Context.ExecuteQueryRetry(); 

return this

    AppPrincipalId: "i:0i.t|ms.sp.int|952f11a8-20b4-47b6-b9c6-f2bfec776921@0926b528-7a8c-4cc6-acdf-66f2149b07bb"     AppWebFullUrl: null     Context: {Microsoft.SharePoint.Client.ClientContext}     Id: {081db144-1b55-430a-be8f-a4587ab56ead}     ImageFallbackUrl: null     ImageUrl: null     InError: false     ObjectData: {Microsoft.SharePoint.Client.ClientObjectData}     ObjectVersion: null     PackageFingerprint: {byte[64]}     Path: {Microsoft.SharePoint.Client.ObjectPathIdentity}     ProductId: {1f2b6b35-66db-4161-bb72-d5072c87de4b}     RemoteAppUrl: null     ServerObjectIsNull: false     SettingsPageUrl: null     SiteId: {eb5e8bd4-fe75-4b36-a65b-1e2b9a870433}     StartPage: null     Status: Installed     Tag: null     Title: "Doc Library Mobile View"     TypedObject: {Microsoft.SharePoint.Client.AppInstance}     WebId: {37818d98-d2b9-4d79-804b-b1cdc83c1de5} 

As you can see the productId is there and an Id which I guess is the instance id.

However, if I instead use the AppManager from pnp

var manager = new AppManager(ctx); var siteApps = manager.GetAvailable(); 

I get the following result

    AppCatalogVersion: {1.0.0.0}     CanUpgrade: false     Deployed: true     Id: {9b7fd7c7-8c8f-41cf-b8ae-861392665e56}     InstalledVersion: {1.0.0.0}     IsClientSideSolution: true     Title: "Doc Library Mobile View" 

This id is not the same as the one from the first request. What are all the different ids?

The problem I get is that I can’t see if an add-in is already installed if I’m don’t use the title of the add-in which doesn’t feel that secure.

How can I make the Ubuntu see LaTeX fonts installed through TeXLive?

I have Lubuntu 19.04 and I want it to be able to see TTF and OTF fonts installed via TeXLive.

Note that I did not install TeXLive via the package manager (for some reason it was giving me an outdated TeX distribution), but I did it through the install-tl script that is recommended in the tug.org website. As a result, LaTeX fonts are not installed in the default directories but rather in their own texlive directories, so Ubuntu does not see them by the default.

I know TeX fonts are available via the package manager, but add rather not double install them since they’re already there ( and to avoid any possible conflicts).

So, is it possible to make my OS see the available TeXlive fonts?

Thanks.