joelagnel / adeb

A debian-based shell environment designed for Android and adb
Apache License 2.0
321 stars 100 forks source link

Support Debian Bullseye #44

Open mhansen opened 3 years ago

mhansen commented 3 years ago

Buster, the default Debian used by adeb, is now oldstable.

New stable is Bullsye: https://wiki.debian.org/DebianReleases

There are a few changes to support Bullseye in adeb, mostly around package names and python3.

I may send some PRs, filing a tracking bug first.

mhansen commented 3 years ago

This is in order to get the latest version of bpftrace which should contain a fix for iovisor/bpftrace#515.

Perhaps an easier workaround is to just install bpftrace from source rather than from debian repos.

mhansen commented 3 years ago

Some errors I get, missing packages when building with --full, the workaround is to build without --full:

./adeb prepare --distro bullseye --build --full
|--------------|
| adeb: v0.99h |
|--------------|
15:09:17 - INFO    : Looking for device..
15:09:17 - INFO    : Preparing device...
15:09:17 - INFO    : Doing a full install.
15:09:17 - INFO    :
15:09:17 - INFO    : Using temporary directory: /tmp/tmp.foduUxx2nt
15:09:17 - INFO    : The next stage runs as sudo, please enter password if asked.
W: qemu-debootstrap is deprecated. Please use regular debootstrap directly
I: Running command: debootstrap --arch arm64 --include=llvm-7-dev,libclang-7-dev,libelf-dev,libfl-dev,libunwind-dev,libdw-dev,git,gcc,libtool,autoconf,make,cmake,iperf,arping,ethtool,flex,bison,python,clang-7,python-netaddr,python-pyroute2,python3-distutils,git,clang-7,gcc,libtool,autoconf,make,cmake,vim,nano,git,xz-utils,git,rt-app,linux-perf,trace-cmd,strace,bash,ca-certificates,apt,net-tools,iputils-ping,procps,vim --variant=minbase bullseye /tmp/tmp.foduUxx2nt/debian http://ftp.us.debian.org/debian/
I: Target architecture can be executed
I: Retrieving InRelease
I: Checking Release signature
I: Valid Release signature (key id A4285295FC7B1A81600062A9605C66F00D6C9793)
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Checking component main on http://ftp.us.debian.org/debian...
E: Couldn't find these debs: python-netaddr python python-pyroute2 clang-7 llvm-7-dev libclang-7-dev
sonicman commented 3 years ago

You can install default adeb debian version, then upgrade it from Buster to Bullseye. 1) nano /etc/apt/sources.list

deb http://deb.debian.org/debian bullseye main contrib non-free deb http://deb.debian.org/debian bullseye-updates main contrib non-free deb http://security.debian.org/debian-security bullseye-security main deb http://ftp.debian.org/debian bullseye-backports main contrib non-free

2) upgrade apt update; apt full-upgrade 3) confirm cat /etc/os-release