Support for apt alternative "nala"

Creating a bug report/issue

I’ve tried to install nala but can’t seem to be able to run it. Getting error message:
“ImportError: cannot import name ‘Group’ from ‘rich.console’ (/usr/lib/python3/dist-packages/rich/console.py)”

I’ve seen on other forums that people encounter the same error when they try to install also. Does anyone know if its possible to get nala running on DietPI?

Required Information (See below)

  • DietPi version | 8.21.1
  • Distro version | bullseye
  • Kernel version | 6.1.21-v8+
  • Architecture | arm64
  • SBC model | RPi 4 Model B (aarch64)
  • Power supply used | 5V 1A
  • SD card used | SanDisk ultra

Additional Information (if applicable)

  • Software title | Nala
  • Was the software title installed freshly or updated/migrated? | Neither
  • Can this issue be replicated on a fresh installation of DietPi? | Yes

Steps to reproduce

  1. Install software
  2. Run it

Expected behaviour

Alternative gui for apt package manager.

Actual behaviour

See error message above.

Looks like you would need to move to Debian Bookworm as it seem the nala package has some challenges on Debian Bullseye.

On Bookworm installation is quite simple as it has become part of global Debian package repository now Debian -- Details of package nala in bookworm

nala is working quite well on my demo system.

root@DietPi4:~# nala

 Usage: nala [OPTIONS] COMMAND [ARGS]...

 Each command has its own help page.
 For Example: `nala history --help`

╭─ Options ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --version                                                      Show program's version number and exit.                                                                           │
│ --license                                                      Reads the GPLv3 which Nala is licensed under.                                                                     │
│ --install-completion          [bash|zsh|fish|powershell|pwsh]  Install completion for the specified shell. [default: None]                                                       │
│ --show-completion             [bash|zsh|fish|powershell|pwsh]  Show completion for the specified shell, to copy it or customize the installation. [default: None]                │
│ --help                -h                                       Show this message and exit.                                                                                       │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ autopurge                     Autopurge packages that are no longer needed.                                                                                                      │
│ autoremove                    Autoremove packages that are no longer needed.                                                                                                     │
│ clean                         Clear out the local archive of downloaded package files.                                                                                           │
│ fetch                         Fetch fast mirrors to speed up downloads.                                                                                                          │
│ history                       Show transaction history.                                                                                                                          │
│ install                       Install packages.                                                                                                                                  │
│ list                          List packages based on package names.                                                                                                              │
│ purge                         Purge packages.                                                                                                                                    │
│ remove                        Remove packages.                                                                                                                                   │
│ search                        Search package names and descriptions.                                                                                                             │
│ show                          Show package details.                                                                                                                              │
│ update                        Update package list.                                                                                                                               │
│ upgrade                       Update package list and upgrade the system.                                                                                                        │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

root@DietPi4:~#

Or you ask nala developer for support.

Thank you for your input regarding my issue! I usually stay on stable versions unless otherwise needed to, and I remember something about PHP wasn’t able to work properly on Bookworm, at least when it was announced on the dietpi blog a couple of months ago. Perhaps this isn’t an issue today?

Have you been running bookworm for some time now, and, if so, are you experiencing any bugs and/or other issues with that version?

Would you say that a crossover from bullseye to bookworm is a seemless process?

Best regards.

EDIT: Sorry for my lack of knowledge! I just looked it up and bookworm seems to be a stable version at this point! I will try to migrate, and hopefully (probably?) nala will work :slight_smile:

Thanks again for you input!

Yes Debian Bookworm has officially become stable Debian version this summer.

1 Like

I’ve just finished upgrading to bookworm, and nala does indeed works out of the box straight from the repo :slight_smile:

Thanks again!