2

I am trying to install nala, but I get this error message:

The following packages have unmet dependencies:
 nala : Depends: python3-anyio but it is not installable
        Depends: python3-httpx but it is not installable
        Depends: python3-rich but it is not installable
        Depends: python3-tomli but it is not installable
        Depends: python3-typer but it is not installable
        Recommends: python3-socksio but it is not installable
E: Unable to correct problems, you have held broken packages.

I have tried using -f, I did apt update, and I tried installing the dependencies manually, but neither have worked.

Here is the link for the nala installation instructions, and I'm installing using the repo and key.

I am on Ubuntu 20.04.

Artur Meinild
  • 21,605
  • 21
  • 56
  • 89
  • 2
    The repo and key don't work because the pre-built binary package seems incompatible with 20.04. That's why you get the dependency errors and the `held broken packages` error. You can try the package with 22.04, or you can follow the build instructions for 20.04. – user535733 Aug 04 '22 at 21:51

1 Answers1

2

As per the Nala wiki page, older releases (Debian Stable and Ubuntu 20.04) should use the nala-legacy package, which is built for older dependencies.

Since you already installed the "wrong" nala package, first remove it using:

sudo apt remove nala

Then install the correct nala package using:

sudo apt update && sudo apt install nala-legacy

The latest nala package can only be used on Ubuntu 22.04 or later.

Edit: Since this answer was written, the nala-legacy package has been removed, since it was too difficult to maintain. Nala is officially now only supported on Ubuntu 22.04 and newer.

Artur Meinild
  • 21,605
  • 21
  • 56
  • 89