ebruck / radiotray-ng

An Internet radio player for Linux
GNU General Public License v3.0
249 stars 23 forks source link

Dependency update in ubuntu 21.04 #174

Closed csoeder closed 2 years ago

csoeder commented 2 years ago

Hi, I did a fresh install of Kubuntu 21.04 and when I was reinstalling my software found that radiotray-ng wouldn't install. Following the instructions on the github repo, including installing the given dependencies (in particular libjsoncpp-dev ) everything goes smoothly until:

$ sudo dpkg -i radiotray-ng_0.2.7_ubuntu_21.04_amd64.deb Selecting previously unselected package radiotray-ng. (Reading database ... 299488 files and directories currently installed.) _Preparing to unpack radiotray-ng_0.2.7_ubuntu_21.04amd64.deb ... Unpacking radiotray-ng (0.2.7) ... dpkg: dependency problems prevent configuration of radiotray-ng: radiotray-ng depends on libjsoncpp1; however: Package libjsoncpp1 is not installed.

dpkg: error processing package radiotray-ng (--install): dependency problems - leaving unconfigured Processing triggers for mailcap (3.68ubuntu1) ... Processing triggers for desktop-file-utils (0.26-1ubuntu1) ... Processing triggers for hicolor-icon-theme (0.17-2) ... Errors were encountered while processing: radiotray-ng

Trying to install that particular package fails:

$ sudo apt-get install libjsoncpp1 Reading package lists... Done Building dependency tree... Done Reading state information... Done Package libjsoncpp1 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package 'libjsoncpp1' has no installation candidate

Worse, once the radiotray-ng installation fails, the package manager gets messed up:

$ sudo apt-get upgrade Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done The following packages will be REMOVED: radiotray-ng The following packages have been kept back: libegl-mesa0 libgbm1 libgl1-mesa-dri libglapi-mesa libglx-mesa0 libxatracker2 mesa-va-drivers mesa-vdpau-drivers mesa-vulkan-drivers ubuntu-advantage-tools 0 upgraded, 0 newly installed, 1 to remove and 10 not upgraded. 1 not fully installed or removed. After this operation, 1,606 kB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 299489 files and directories currently installed.) Removing radiotray-ng (0.2.7) ... gtk-update-icon-cache: Failed to open file /usr/share/icons/Yaru/.icon-theme.cache : No such file or directory dpkg: error processing package radiotray-ng (--remove): installed radiotray-ng package post-removal script subprocess returned error exit status 1 dpkg: too many errors, stopping Errors were encountered while processing: radiotray-ng Processing was halted because there were too many errors. E: Sub-process /usr/bin/dpkg returned an error code (1)

running remove, autoremove, purge, --fix-broken, etc don't fix. I was eventually able to fix the package manager thus:

$ sudo rm /var/lib/dpkg/info/radiotray-ng.* ; sudo apt-get purge

ebruck commented 2 years ago

This has already been addressed in the v0.2.8-dev branch. https://github.com/ebruck/radiotray-ng/commit/4197a0ceb38092eb950ff0ef36d2614f24cc93f4