0

Trying to install RawTherapee on Ubuntu 18.04 from a PPA. Running sudo apt-get install rawtherapee gives the following error:

Some packages could not be installed.
This may mean that you have requested an impossible situation or 
if you are using the unstable distribution that some required packages
have not yet been created or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  rawtherapee :
  Depends: topmenu-gtk3 but it is not installable
 E: Unable to correct problems, you have held broken packages.

Running the command apt-cache policy rawtherapee the output is:

rawtherapee:
Installed: (none)
Candidate: 5.4-1dhor~bionic  
 Version table:
  5.4-1dhor~bionic 500
     500 http://ppa.launchpad.net/dhor/myway/ubuntu bionic/main amd64 Packages
  5.3-1 500
     500 http://it.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages

Do you know how can I solve it?

xiota
  • 4,709
  • 5
  • 26
  • 53
Sisu
  • 13
  • 2
  • You did something wrong. On clean 18.04 LTS it installs without problems. Please add output of `apt-cache policy rawtherapee` to the question. Are you using PPAs or third-party repositories? – N0rbert Apr 30 '18 at 19:53
  • @N0rbert I addded the output of that command, so I suppose that the problem is apt-get tries to install from a third party repository which may be the dhor repository. Maybe I should re-compile by myself or install the version 5.3 from the ubuntu repository – Sisu May 02 '18 at 07:49
  • Possible duplicate of [Unable to correct problems, you have held broken packages](https://askubuntu.com/questions/223237/unable-to-correct-problems-you-have-held-broken-packages) – Elder Geek May 03 '18 at 13:12

1 Answers1

0

The package topmenu-gtk3 does not exist in 18.04. The problem described is likely caused by attempting to install a package compiled for 17.10. For instance, if installing from a ppa in which old binaries were copied rather than recompiled.

The most expedient solution is to remove the offending ppa (or other nonstandard repository) and install the official packages.

One may also choose to download the source; edit debian/control to remove the dependency; then recompile or upload to a ppa. This is the route I typically take, and the result may be found by searching launchpad for rawtherapee. However, the problem with relying on other's ppa is you're beholden to their whims and fancies.

xiota
  • 4,709
  • 5
  • 26
  • 53
  • I think this is the problem. I added the output of the command 'apt-cache' and apparently the official ppa suggests to install the previous version of rawtherapee. – Sisu May 02 '18 at 07:52