Package reform-branding blocks apt

Just had a sudo apt upgrade and sudo apt autoremove faile because a package “reform-branding”:

$ sudo apt autoremove
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 reform-tools : Depends: reform-branding but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


$ sudo apt --fix-broken install
Correcting dependencies... Done 
The following packages were automatically installed and are no longer required:
  atril-common            linux-headers-6.11.4-common
  libatrildocument3t64    linux-headers-6.11.4-mnt-reform-arm64
  libatrilview3t64        linux-image-6.11.4-mnt-reform-arm64
  libfmt9                 linux-kbuild-6.11.4
  libllhttp9.1            reform-qcacld2-6.11.5-mnt-reform-arm64
  libmagick++-6.q16-9t64
Use 'sudo apt autoremove' to remove them.

Installing dependencies:
  reform-branding

Summary:
  Upgrading: 0, Installing: 1, Removing: 0, Not Upgrading: 5
  154 not fully installed or removed.
  Download size: 0 B / 11.2 kB
  Space needed: 46.1 kB / 893 GB available

Continue? [Y/n] Y
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
(Reading database ... 665251 files and directories currently installed.)
Preparing to unpack .../reform-branding_1_all.deb ...
Unpacking reform-branding (1) ...
dpkg: error processing archive /var/cache/apt/archives/reform-branding_1_all.deb (--unpack):
 trying to overwrite '/usr/share/doc/reform-handbook/html/_static/logo.svg', which is also in package reform-handbook 2.0
Errors were encountered while processing:
 /var/cache/apt/archives/reform-branding_1_all.deb
Error: Sub-process /usr/bin/dpkg returned an error code (1)

Is this something I can fix on my end?

I already tried sudo apt-get --reinstall install reform-branding but it results in the same error.

2 Likes

Aaaaaah sorry this is my fault! I’ll start working on a fix right away. Sorry!! :bowing_man:

4 Likes

Thank you @selfawaresoup for your quick bug report. What happened here is, that as a step towards having the MNT packages uploaded to Debian proper instead of using the custom MNT repos, I moved all the non-free stuff, that is the MNT logo which is licensed CC-BY-NC-4.0 into its own package called reform-branding. That package is now providing some files that were earlier provided by the reform-tools as well as the reform-handbook package. I made the reform-debian-packages pipeline build an adjusted reform-tools package (version 1.60) but I failed to also make it provide the fixed up reform-handbook package. As a result, there is now a file conflict between reform-handbook and reform-branding. The solution is for the reform-debian-packages pipeline to build the fixed reform-handbook package. This is what I attempted to implement here:

I set this merge request to auto-merge if the pipeline succeeds. So if I didn’t do any mistake, then this problem should solve itself in around 1.25 hours once everything got rebuilt and the MNT mirror has the new reform-handbook package.

Sorry again and thank you for your bug report!

3 Likes

An easy workaround is to remove the reform-handbook package and reinstall it later after the merge request is done.

The following fixed it for me:

sudo dpkg -r reform-handbook
sudo apt --fix-broken install
3 Likes

Unfortunately, since I failed to script everything correctly on the first try, it took overall four attempts and thus the last four hours to get this to work correctly. But now it’s done. In an hour, the change should reach the repos and then the workaround by @rwv will not be necessary anymore.

3 Likes

Hi, could somebody quickly confirm that everything has been in order since my last message? Or did anybody find more issues?

1 Like

@josch I have done the sudo apt update, sudo apt install reform-handbook (I did @rwv’s workaround earlier.) and sudo apt upgrade, and all seem to be working fine.

Thank you!

1 Like

Yup, i did the workaround and later installer reform-handbook again with no issues

1 Like

Hi there! My first posting here :wave:

After I did sudo apt upgrade i get this:
$reform-handbook
bash: reform-handbook: command not found

I tried this workaround, but it didn’t work. I have this problem on my MNT Reform (not Pocket). If you think I should open a thread in the Reform category pls let me know.

I think you found a bug. The current reform-handbook package does not ship a reform-handbook program to run. I have to add this back. You probably found the reform-handbook command via the reform-help output?

Until this is fixed, you can read the handbook by running:

xdg-open /usr/share/doc/reform-handbook/html/index.html

or explicitly in the browser of your choice, firefox in this example:

firefox /usr/share/doc/reform-handbook/html/index.html
1 Like

Thank you for the info. Yes I did, since I’m still a beginner and slow learner with linux (since years, but I want to change that and thats why I got myself a Reform) I often look up into the handbook via command line so I’m looking forward to a fix :wink:

1 Like