Installing cross-platform for Debian Buster

I now have Debian 10 (Buster) in a VirtualBox 6.0 VM on a Windows 10 laptop. I’ve been working through Derek Molloy’s book on setting up the cross-platform tools.

In chapter 7 (page 309) when I give command apt-cache search cross-build-essential there is no response, just prompt

root@debian:~#

When I issue command sudo apt install crossbuild-essential-armhf I get:
reading package list … done
building dependency tree
reading state information … done
E: unable to locate package crossbuild-essential-armhf

Side note, I installed Debian using 3 iso DVD images. When I upgrade packages I get prompted to mount a DVD. I have mounted each of the 3 DVD’s and tried the above install with the same result on each.

Any suggestions how to proceed? I am stuck.

~Thanks,

The first is a clue to the second. Your apt cache has no cross-build-essential.

Try running apt-get update first, then the apt-cache command gain, if you find a candidate install it and move on.

If not the problem is your DVD safe probably the only install source you have installed. Try something like

On Sat, 14 Sep 2019 10:06:07 -0700 (PDT), Brian Tremaine
<btremaine@gmail.com> declaimed the
following:

I now have Debian 10 (Buster) in a VirtualBox 6.0 VM on a Windows 10
laptop. I've been working through Derek Molloy's book on setting up the
cross-platform tools.

  Which is something I just updated to earlier this week (took forever to
get the Virtual Box Guest Additions to build/work).

In chapter 7 (page 309) when I give command apt-cache search
cross-build-essential there is no response, just prompt

root@debian:~#

When I issue command sudo apt install crossbuild-essential-armhf I get:
reading package list … done
building dependency tree
reading state information … done
E: unable to locate package crossbuild-essential-armhf

   77 sudo apt-cache search cross-build-essential
   78 sudo apt-get install crossbuild-essential-armhf

wulfraed@debian:~$ !77
sudo apt-cache search cross-build-essential
[sudo] password for wulfraed:
crossbuild-essential-amd64 - Informational list of cross-build-essential
packages
crossbuild-essential-arm64 - Informational list of cross-build-essential
packages
crossbuild-essential-armel - Informational list of cross-build-essential
packages
crossbuild-essential-armhf - Informational list of cross-build-essential
packages
crossbuild-essential-i386 - Informational list of cross-build-essential
packages
crossbuild-essential-mips - Informational list of cross-build-essential
packages
crossbuild-essential-mips64el - Informational list of cross-build-essential
packages
crossbuild-essential-mipsel - Informational list of cross-build-essential
packages
crossbuild-essential-powerpc - Informational list of cross-build-essential
packages
crossbuild-essential-ppc64el - Informational list of cross-build-essential
packages
crossbuild-essential-s390x - Informational list of cross-build-essential
packages
wulfraed@debian:~$

Side note, I installed Debian using 3 iso DVD images. When I upgrade
packages I get prompted to mount a DVD. I have mounted each of the 3 DVD's
and tried the above install with the same result on each.

  I used the GUI "Expert" mode installation -- when asked for repository
options I included them. (I also disable root login!) I also told it to
scan each of the DVD images while it was setting up the apt repositories.

Any suggestions how to proceed? I am stuck.

  Check your repository sources list to ensure you have more than just
the DVDs in it (mine follows), and then do an apt-get update before
searching for things.

Thanks Dennis, I’ll give this a try today !!
On the guest additions I downloaded a deb file but when I try to mnt in the cdrom it errors with invalid file type. This project (VM & installing tools) is definitely a much bigger project than anticipated. …

On Sun, 15 Sep 2019 10:53:12 -0700, Brian Tremaine
<btremaine@gmail.com> declaimed the
following:

Thanks Dennis, I'll give this a try today !!
On the guest additions I downloaded a deb file but when I try to mnt in the
cdrom it errors with invalid file type. This project (VM & installing
tools) is definitely a much bigger project than anticipated. ...

  You don't "mount" deb package files.

  You copy them to a location in the Debian OS, and use apt to install
them...

  I think I'd downloaded them on the Windows side, then sftp to my
working directory -- I'd tried (again, from the shell command history file)

   18 sudo apt-get install linux-headers-$(uname -r)
   19 ls
   20 sudo apt install ./virtualbox-guest-dkms_6.0.10-dfsg-5_all.deb
   21 sudo apt install ./virtualbox-guest-utils_6.0.10-dfsg-5_amd64.deb
   22 sudo apt install ./virtualbox-guest-x11_6.0.10-dfsg-5_amd64.deb
   23 sudo apt install ./virtualbox-guest-utils_6.0.10-dfsg-5_amd64.deb
   24 sudo wget -O -
https://db.debian.org/fetchkey.cgi?fingerprint=FEDEC1CB337BCF509F43C2243914B532F4DFBE99

apt-key add

   25 sudo su
   26 ls
   27 sudo apt-get remove virtualbox-guest-utils
   28 sudo apt install ./virtualbox-guest-utils_6.0.10-dfsg-5_amd64.deb
./virtualbox-guest-x11_6.0.10-dfsg-5_amd64.deb

but they didn't seem to work properly. Later after finding some version in
ISO format (VBoxGuestAdditions_6.0.12.iso -- Oh, and I seem to be running
VBox 6.0.12 also -- so fresh it wasn't on the Oracle download page, but
showed up as an option when running the .10 installer in some advanced
mode), mounting it, copying the contents to a directory on disk, and then
running the install script (I've NEVER managed to get the installer to run
from "CD" image). The copy was done using drag&drop, so not visible in the
command lines

   31 mkdir ga
   32 cd ga
   33 sudo ./autorun.sh
   34 cd ..
   35 ls
   36 ls -al
   37 sudo adduser wulfraed vboxsf

  I also had to shutdown the virtual machine and reboot it for some
changes to take place. The last command above was to make the shared folder
work for my user account. The shutdown/reboot seemed needed to make both
the shared folder and clipboard sharing work (I did, for some time, also
have problems with mouse integration).

wulfraed@debian:~$ ls -l Downloads/ ga/
Downloads/:
total 103972
-rw-r--r-- 1 wulfraed wulfraed 55446104 Sep 11 12:22
code_1.38.0-1567547996_amd64.deb
-rw-r--r-- 1 wulfraed wulfraed 51016290 Sep 13 13:53
eclipse-inst-linux64.tar.gz

ga/:
total 62800
-r--r--r-- 1 wulfraed wulfraed 763 Jan 21 2019 AUTORUN.INF
-r-xr-xr-x 1 wulfraed wulfraed 6384 Sep 3 05:50 autorun.sh
drwxr-xr-x 2 wulfraed wulfraed 4096 Sep 11 11:33 cert
drwxr-xr-x 2 wulfraed wulfraed 4096 Sep 11 11:33 NT3x
drwxr-xr-x 2 wulfraed wulfraed 4096 Sep 11 11:33 OS2
-r-xr-xr-x 1 wulfraed wulfraed 4821 Sep 3 05:50 runasroot.sh
-r--r--r-- 1 wulfraed wulfraed 547 Sep 3 05:56 TRANS.TBL
-r--r--r-- 1 wulfraed wulfraed 3732295 Sep 3 05:49
VBoxDarwinAdditions.pkg
-r--r--r-- 1 wulfraed wulfraed 3949 Sep 3 05:49
VBoxDarwinAdditionsUninstall.tool
-r-xr-xr-x 1 wulfraed wulfraed 8611252 Sep 3 05:50 VBoxLinuxAdditions.run
-r--r--r-- 1 wulfraed wulfraed 16587264 Sep 3 05:51
VBoxSolarisAdditions.pkg
-r-xr-xr-x 1 wulfraed wulfraed 22919928 Sep 3 05:55
VBoxWindowsAdditions-amd64.exe
-r-xr-xr-x 1 wulfraed wulfraed 270104 Sep 3 05:50
VBoxWindowsAdditions.exe
-r-xr-xr-x 1 wulfraed wulfraed 12135576 Sep 3 05:52
VBoxWindowsAdditions-x86.exe
wulfraed@debian:~$

  I hate updating VirtualBox. Seems I have to do an Uninstall of the old
version, and a Windows reboot -- otherwise some remnant file corrupts the
new one start-up.

Hi Dennis,
I edited my sources.list as attached, adding the [trusted=yes]. I think this was the key. Now when I run apt update I get a longer response and no warnings of untrusted repository.

After that I was able to the following commands to install Guest Additions:
apt-get update && apt-get upgrade
apt-get install build-essential module-assistant
m-a prepare
------> then Under Devices select Insert Guest Additions CD Image…
this evidently causes VB to download GuestAdditions iso image
mount /media/cdrom
sh /media/cdrom/VBoxLinuxAdditions.run

The install then proceeded and took a couple minutes after it downloaded a GuestAdditions iso image. It didn’t use any Guest Additions file that I downloaded.

I can now use Guest Addition features such as copy & paste and change window size.

My apt update still shows errors (near bottom) and I can’t install any crossbuild essential files. apt-cache search cross-build-essential still gives no response. I get an error: “Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs”.

Regards,

sources.list.txt (1.03 KB)

apt-update.txt (50 KB)

Note, I removed the CD-ROM entries from my sources.list and apt update now completes without error:
root@debian:/etc/apt# apt update
Hit:1 http://deb.debian.org/debian buster-updates InRelease
Hit:2 http://security.debian.org/debian-security buster/updates InRelease
Reading package lists… Done
Building dependency tree
Reading state information… Done
All packages are up to date.
root@debian:/etc/apt#

I still can’t find any cross-build-essential results from apt-cache search.

That's because you don't have the full archive in your apt source...

Your missing the "main" buster repo:

deb http://deb.debian.org/debian/ buster main contrib
deb-src http://deb.debian.org/debian/ buster main contrib

voodoo@nuc-git:~$ sudo apt-cache search crossbuild | grep armhf
crossbuild-essential-armhf - Informational list of
cross-build-essential packages

Regards