Page 1 of 1

E: Unable to correct problems, you have held broken packages.

Posted: January 26th, 2022, 10:48 am
by sander
Plain Debian sid, no PPA's. Trying to install SAB:

Code: Select all

sipeed@sipeed:~$ sudo apt-get install sabnzbdplus
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
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:
 sabnzbdplus : Depends: unrar but it is not installable or
                        rar but it is not installable
E: Unable to correct problems, you have held broken packages.
I tried ... without result:

Code: Select all

sudo dpkg --configure -a
sudo apt-get clean && sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get purge unrar
sudo apt-get purge unrar-free
sudo apt-get purge sabnzbdplus
sudo apt autoremove
And also tried to tell "do not care about unrar" (with a minus), but:

Code: Select all

sipeed@sipeed:~$ sudo apt-get install sabnzbdplus unrar-
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'unrar' is not installed, so not removed
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:
 sabnzbdplus : Depends: unrar but it is not installable or
                        rar but it is not installable
E: Unable to correct problems, you have held broken packages.


Tips?


Code: Select all

sipeed@sipeed:~$ cat /etc/apt/sources.list
deb http://ftp.ports.debian.org/debian-ports/ sid main contrib
# deb-src http://ftp.ports.debian.org/debian-ports/ sid main
#deb-src http://deb.debian.org/debian sid main

Same result after adding non-free to that file.

Re: E: Unable to correct problems, you have held broken packages.

Posted: May 4th, 2022, 3:44 pm
by road hazard
Came here to post the same. I was thinking about moving away from NZBGet to SABnzbd but the install is giving me fits. I'm by no means a Linux guru but I do OK :) Using Debian 11 and I added 'contrib' to the proper spots and the install is failing. Keeps complaining about how it can't find unrar or rar but I installed unrar-free:

Code: Select all

sudo apt install sabnzbdplus
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
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:
 sabnzbdplus : Depends: unrar but it is not installable or
                        rar but it is not installable
               Recommends: libavahi-compat-libdnssd1 but it is not going to be installed
               Recommends: python3-notify2 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
So I made sure unrar was installed:

Code: Select all

sudo apt install unrar-free
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
unrar-free is already the newest version (1:0.0.1+cvs20140707-4+b1).
The following packages were automatically installed and are no longer required:
  linux-headers-5.10.0-12-amd64 linux-headers-5.10.0-12-common
  linux-image-5.10.0-12-amd64
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Re: E: Unable to correct problems, you have held broken packages.

Posted: May 5th, 2022, 3:09 am
by jcfp
sander wrote: January 26th, 2022, 10:48 amSame result after adding non-free to that file.
You did tell apt to update the repo info after that?

The last update to the sab package in debian dates back to february; rar and (non-free) unrar also look normal with last updates about a month ago.

@road hazard: unrar-free is useless in the context of usenet, don't bother with it. You do need to enable the non-free repo in addition to contrib; sab (as foss) may be in the latter but (un)rar is very much non-free because of patents.