BeagleV-Ahead and Other Ideas/Ubuntu Lunar/libusbgx

The following additional packages will be installed:
  libusbgx2
The following NEW packages will be installed:
  libusbgx2
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
42 not fully installed or removed.
Need to get 0 B/28.8 kB of archives.
After this operation, 94.2 kB of additional disk space will be used.
Do you want to continue? [Y/n]
(Reading database ... 105278 files and directories currently installed.)
Preparing to unpack .../libusbgx2_0.2.0-2bbbio0~lunar+20230817_riscv64.deb ...
Unpacking libusbgx2:riscv64 (0.2.0-2bbbio0~lunar+20230817) ...
dpkg: error processing archive /var/cache/apt/archives/libusbgx2_0.2.0-2bbbio0~lunar+20230817_riscv64.deb (--unpack):
 trying to overwrite '/usr/lib/riscv64-linux-gnu/libusbgx.so.2.0.0', which is also in package libusbgx 0.2.0-git20210811.3-0~lunar+20221228
Errors were encountered while processing:
 /var/cache/apt/archives/libusbgx2_0.2.0-2bbbio0~lunar+20230817_riscv64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I was trying to update the board and I came across this issue. I tried w/:

  1. sudo apt --fix-broken install
  2. Reapplying sudo apt upgrade

Seth

I hit the same issue, solved it as follows:

dpkg -r libusbgx # remove the conflicting package
apt --fix-broken install # continue upgrade
1 Like

Hello @krzaq ,

Yeppers and I did it. The board updated/upgraded well afterwards. Thank you.

Seth