Getting "Unable to correct problems, you have held broken packages." error on installing winbind

sudo apt-get install winbind
[sudo] password for arpon:
Reading package lists... Done
Building dependency tree
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:
winbind : Depends: samba-common-bin (= 2:4.15.13+dfsg-0ubuntu0.20.04.2) but it is not going to be installed
Depends: libwbclient0 (= 2:4.15.13+dfsg-0ubuntu0.20.04.2) but 2:4.15.13+dfsg-0ubuntu0.20.04.3 is to be installed
Depends: samba-libs (= 2:4.15.13+dfsg-0ubuntu0.20.04.2) but 2:4.15.13+dfsg-0ubuntu0.20.04.3 is to be installed
E: Unable to correct problems, you have held broken packages.

Can you please run

sudo apt --fix-broken install

Once that is done, run

sudo apt update && sudo apt full-upgrade

Next, try

sudo apt install winbind

If it fails again, this may be due to the Samba Devs having applied a security upgrade patch not long ago that was known at the time to unintentionally carry over a 21.04 dependency into the 20.04 repository.
The workaround was to completely uninstall Samba - reinstall it, then install Winbind.

I got those error on sudo apt update && sudo apt full-upgrade

                       
E: The repository 'http://mirrors.piconets.webwerks.in/ubuntu-mirror/ubuntu focal Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://mirrors.piconets.webwerks.in/ubuntu-mirror/ubuntu focal-updates Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://mirrors.piconets.webwerks.in/ubuntu-mirror/ubuntu focal-backports Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://mirrors.piconets.webwerks.in/ubuntu-mirror/ubuntu focal-security Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Did you add this repo in order to install Winbind?
That repository does not have a focal release file and is impossible to use. You must launch Software & Updates > Other Software tab and scroll down to it on the list, select it, then click the Remove button.

You should not need an extra repository to install winbind:

i never added any repo , why i am getting those errors while upgrading

This repository is not included with Zorin OS. You may have added it in the past and that repo maintainer removed a package in the meantime.

problem solved

Crosslink:

I stand Corrected.

It looks like the regional India server uses Piconet webwerks to host their Ubuntu server.
And it looks like someone has broken it, too.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.