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

Support for the Debian/Ubuntu package, created by JCFP.
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

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

Post 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.
road hazard
Newbie
Newbie
Posts: 12
Joined: August 10th, 2019, 8:48 pm

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

Post 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.
User avatar
jcfp
Release Testers
Release Testers
Posts: 986
Joined: February 7th, 2008, 12:45 pm

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

Post 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.
Post Reply