Installing cross-platform for Debian Buster

174 views
Skip to first unread message

Brian Tremaine

unread,
Sep 14, 2019, 1:06:07 PM9/14/19
to BeagleBoard

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,

Jim F

unread,
Sep 14, 2019, 3:09:48 PM9/14/19
to beagl...@googlegroups.com
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

 Tell dpkg we can install arm64
dpkg --add-architecture arm64
# Add src line to make "apt-get source" work
echo "deb-src http://deb.debian.org/debian buster main" >> /etc/apt/sources.list
echo "deb-src http://deb.debian.org/debian buster main" >> /etc/apt/sources.list
apt-get update
You may have to use google to get these commands right. Pretty sure 10 is buster. 

Jim

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/7ca6265b-820f-4bdc-b2da-0e0cafc75bc0%40googlegroups.com.

Dennis Lee Bieber

unread,
Sep 15, 2019, 1:40:02 PM9/15/19
to beagl...@googlegroups.com
On Sat, 14 Sep 2019 10:06:07 -0700 (PDT), Brian Tremaine
<btre...@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
>
From my command history

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.

-=-=-=-
wulfraed@debian:~$ cat /etc/apt/sources.list
#

deb [trusted=yes] cdrom:[Debian GNU/Linux 10.0.0 _Buster_ - Official amd64
DVD Binary-3 20190706-10:24]/ buster contrib main
deb [trusted=yes] cdrom:[Debian GNU/Linux 10.0.0 _Buster_ - Official amd64
DVD Binary-2 20190706-10:24]/ buster contrib main
deb [trusted=yes] cdrom:[Debian GNU/Linux 10.0.0 _Buster_ - Official amd64
DVD Binary-1 20190706-10:24]/ buster contrib main

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

deb http://security.debian.org/debian-security buster/updates main contrib
non-free
deb-src http://security.debian.org/debian-security buster/updates main
contrib non-free

# buster-updates, previously known as 'volatile'
deb http://deb.debian.org/debian/ buster-updates main contrib non-free
deb-src http://deb.debian.org/debian/ buster-updates main contrib non-free

# buster-backports, previously on backports.debian.org
deb http://deb.debian.org/debian/ buster-backports main contrib non-free
deb-src http://deb.debian.org/debian/ buster-backports main contrib
non-free
-=-=-=-

(Actually -- I've just now commented out the DVD entries; after all, the
index files won't be updating so I don't need the "failed to download"
messages from apt-get update for them)

Installing Eclipse was the big pain. You'd think they could create an
installer that makes such a big system usable from multiple accounts, but
if I installed using "sudo", I had to use "sudo" to run it. So it ended up
being removed and reinstalled into my user account itself.



--
Wulfraed Dennis Lee Bieber AF6VN
wlf...@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/

Brian Tremaine

unread,
Sep 15, 2019, 1:53:42 PM9/15/19
to BeagleBoard
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. ...

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.


--
TremaineConsultingGroup.com

Dennis Lee Bieber

unread,
Sep 15, 2019, 4:49:20 PM9/15/19
to beagl...@googlegroups.com
On Sun, 15 Sep 2019 10:53:12 -0700, Brian Tremaine
<btre...@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.

Brian Tremaine

unread,
Sep 15, 2019, 5:32:14 PM9/15/19
to BeagleBoard
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,


--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.


--
TremaineConsultingGroup.com
sources.list.txt
apt-update.txt

Brian Tremaine

unread,
Sep 15, 2019, 5:56:06 PM9/15/19
to BeagleBoard
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.


--
TremaineConsultingGroup.com

Robert Nelson

unread,
Sep 15, 2019, 8:15:13 PM9/15/19
to Beagle Board, btre...@gmail.com
On Sun, Sep 15, 2019 at 4:56 PM Brian Tremaine <btre...@gmail.com> wrote:
>
> 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


--
Robert Nelson
https://rcn-ee.com/
Reply all
Reply to author
Forward
0 new messages