how to cross compile a .deb package with a custom toolchain

I am running Ubuntu Bionic Beaver and have a toolchain from Linaro (gcc-linaro-7.3.1-2018.05-i686_aarch64-linux-gnu) that I need to use to cross compile my kernel (4.9.140) for the nvidia jetson TX2 board that also has an ubuntu 18.04 operation system. I have put this toolchain in my home directory under $ HOME/l4t-gcc. However I also need to install a tool called overlayroot that is part of the package cloud-initramfs-tools, I downloaded the source of this and in its control file it says it depends on cryptsetup and initramfs-tools so I downloaded this source also and now I want to cross compile all this with the toolchain under my $ HOME/l4t-gcc. First I simply executed the .configure and then I tried the make like I did the make when I compiled the kernel:

make ARCH=arm64 CROSS_COMPILE=$  HOME/l4t-gcc/gcc-linaro-7.3.1-2018.05-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu- 

but this didn’t work, it still used the native compilers. Some searching on the internet learned me that there are toolchains that you can download and install and then you simply need to

sudo dpkg --add-architecture aarch64 sudo apt-get update 

but I don’t see how I can make dpkg understand to use what I have under my $ HOME/l4t-gcc. Can anyone help me with this?

Switched from snap Docker to .deb, can’t stop my containers

I can start Docker containers just fine, but when I try to stop or kill them, I get an error:

$   docker kill upbeat_shannon  Error response from daemon: Cannot kill container: upbeat_shannon: Cannot kill container 3b9abdd8cf45d4e8bacd2980a2b6a0be2bc6915642818d46f6acf8347545fcd2: unknown error after kill: docker-runc did not terminate sucessfully: container_linux.go:387: signaling init process caused "permission denied" : unknown 

My situation is very similar to https://stackoverflow.com/questions/50482315/docker-compose-down-fails-due-to-permission-denied in that I had previously installed the snap version of Docker, before switching to the docker.io .deb package. And it appears that my issue is being caused by apparmor:

$   sudo apparmor_status apparmor module is loaded. 58 profiles are loaded. 51 profiles are in enforce mode.    [ ... lines omitted ... ]    snap.docker.compose    snap.docker.docker    snap.docker.dockerd    snap.docker.help    snap.docker.hook.install    snap.docker.hook.post-refresh    snap.docker.machine 

So it looks like the Docker snap left some profiles behind on my machine, and they are still being enforced. But I already uninstalled the snap, and I have no idea how to clean these up.

installing software on ubuntu via .deb – any real risks?

I’m completely new user of ubuntu os, so at first learning some total basics.

One of first things to do – installing Chrome browser, made me already confused. I found big topic about that (How to install Google Chrome), and next to the answer suggesting download .deb file directly from google I read such two comments:

1 – “If you install things the Windows way, you get viruses”

2 – (reply to the first one) “Right, users should be extremely cautious when installing software this way and do it only exceptionally.”

Can you explain me why installing software this way is so “danger” according to these two comments? Is it so indeed? If yes, then how can I make it more safe?

Is it possible to build a .deb package of a folder full of python and bash scripts?

I have a folder full of scripts that I use as functions on other scripts… I usually save these scripts on /usr/local/bin and give them execution permission for all users so I can run those scripts with different users. I know that I can just create a script that synchronizes the scripts’ folder with /usr/local/bin, but I was wondering if I could also create a deb package of all my scripts in a way that the dependencies of these scripts will be installed along with a deb package that I’ve created (with apt-get -f install). Is it possible? What are the main procedures I need to do in order to build a deb package that will get my scripts on PATH and install their dependencies?

403 error only under https for .deb files

I have a web server. Until now I used only http, but now I configured https and found a nasty problem: everything works fine (pages and pictures), but some debian and rpm packages can’t be downloaded from https: I receive a 403 Forbidden error when clicking on an href link that points to a .deb file. This same link works fine under http. Also I tried both with and withouth the tag “download” inside the “a href” code, but always have the same problem. Also tried removing the .htaccess file, but the result is the same.

Also I’m using Let’s encrypt.

The homepage is https://www.rastersoft.com

Thanks in advance.

Installing Screaming Frog (.deb package) on WSL

I am running a Windows 10 computer with Ubuntu 18.04 running via the Windows Subsystem for Linux.

I am trying to install an SEO spider, Screaming Frog, so that I can run it in headless mode and run crawls programmatically. It appears to have been installed correctly, but when I try to run it on the command line with screamingfrogseospider, the following error is thrown:

/usr/bin/screamingfrogseospider: line 18: /usr/share/screamingfrogseospider/jre/bin//java: No such file or directory 

Does anyone have any ideas why this could be occuring?

Installing .deb package using gdebi

I’m having some problems installing .deb packages on my laptop running Ubuntu 18.10
I’m completely new to Linux coming from Windows so sometimes you’ll have to explain stuff to me like I’m five

First I downloaded some .deb packages via Firefox, then I just double clicked one and the Ubuntu Software Center started.
I pressed ‘Install’, it then asked me for my password which I entered.
At first it would just go back to the Install button, but now after trying a lot of Terminal commands it just shows a progress bar which stays at 0%.

Like I said I tried a lot of commands that I found after some Googling. I also tried installing Gdebi but that resulted in following Error which I couldn’t resolve with Googling:

dirk@Ubuntu-L:~$   sudo apt-get install gdebi [sudo] password for dirk:  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:  discord : Depends: libatomic1 but it is not going to be installed            Depends: libgconf-2-4 but it is not going to be installed            Depends: libappindicator1 but it is not going to be installed            Depends: libc++1  gdebi : Depends: gdebi-core (= 0.9.5.7+nmu2) but it is not going to be installed          Depends: gnome-icon-theme but it is not going to be installed          Recommends: libgtk2-perl but it is not going to be installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution). 

Basically I need help installing .deb packages. The “normal” Ubuntu doesn’t seem to work which I found is a common problem with the solution to use Gdebi. But Gdebi also doesn’t seem to work for me.
Currently I’m quite close to just re-installing my whole Ubuntu system and hoping it works then. Or just going back to Windows which I luckily still have in a multi-boot.