VisionFive 2 repos, Unable to locate package git

Hi

This is my issue:

sudo apt update
Hit:1 https://debianrepo-t.starfivetech.com starfive-debian InRelease
Hit:2 https://debianrepo-t.starfivetech.com/VF2-Lite VisionFive2 InRelease
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
All packages are up to date.
mathieu@starfive:/etc/apt$ sudo apt install git
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
E: Unable to locate package git

It is Debian trixie with kernel Linux starfive 6.12.5-starfive

I didn’t see any mention of debian repos in the above information. debianrepo-t.starfivetech Only Starfive’s customised package, no Debian.

#[Bookworm] [stable]
deb https://snapshot.debian.org/archive/debian-ports/20230612T050707Z unstable main
deb https://debianrepo-t.starfivetech.com starfive-debian bookworm
deb https://debianrepo-t.starfivetech.com/VF2-Lite VisionFive2 contrib restricted

or

#[Trixie] [unstable]
deb https://snapshot.debian.org/archive/debian/20241224T203807Z trixie main
deb https://debianrepo-t.starfivetech.com starfive-debian trixie
deb https://debianrepo-t.starfivetech.com/VF2-Lite VisionFive2 contrib restricted

or

If being bolder(Not recommended by Starfive):

#[Trixie] [stable]
deb https://****************/debian trixie main contrib non-free non-free-firmware
deb https://debianrepo-t.starfivetech.com starfive-debian trixie
deb https://debianrepo-t.starfivetech.com/VF2-Lite VisionFive2 contrib restricted

1 Like

You should probably add that doing so will probably disable GPU and VPU access, and possible force headless only access either via SSH or the serial console.

1 Like

:+1: You are right, I forgot, I was only thinking about solving the git installation.

If choose [Bookworm] [stable], there is no need to consider GPU or VPU. If choose [Trixie] [unstable] or [Trixie] [stable], will need to consider downgrading programs for GPU or VPU, which is only required in the next step.
Actually, I use Debian Trixie [stable] myself and haven’t fully applied StarFive’s downgrade scheme. I did this to ensure that when using VLC (3.0.21-2-SF1) and MPV (0.35.1-4) for hardware decoding, the GPU and CPU usage stays below 30-40%.

As long as Linux 6.12.5-starfive kernel is still being used, headless will not be used. :blush:

1 Like