Public bug reported: nala package manager is not able to install and update packages due to problem encountered while downloadin g packages
Apparently problem is encountered only during downloading of packages
─────────────────────────────────────────── Traceback (most recent call last)
───────────────────────────────────────────╮
│ /usr/lib/python3/dist-packages/nala/nala.py:378 in install
│
│
│
│ 375 │ color_force: bool = COLOR,
│
│ 376 ) -> None:
│
│ 377 │ """Install packages."""
│
│ ❱ 378 │ _install(pkg_names, ctx)
│
│ 379
│
│ 380
│
│ 381 @nala.command(help=_("Remove packages."))
│
│
│
│ ╭────────────────────────────── locals ──────────────────────────────╮
│
│ │ assume_yes = None │
│
│ │ auto_remove = None │
│
│ │ color_force = None │
│
│ │ ctx = <click.core.Context object at 0x78195be1d590> │
│
│ │ debug = None │
│
│ │ default_release = None │
│
│ │ download_only = None │
│
│ │ dpkg_option = [] │
│
│ │ fix_broken = None │
│
│ │ install_recommends = None │
│
│ │ install_suggests = None │
│
│ │ man_help = None │
│
│ │ pkg_names = ['gnome-terminal'] │
│
│ │ purge = None │
│
│ │ raw_dpkg = None │
│
│ │ remove_essential = None │
│
│ │ simple = None │
│
│ │ update = None │
│
│ │ verbose = None │
│
│ ╰────────────────────────────────────────────────────────────────────╯
│
│
│
│ /usr/lib/python3/dist-packages/nala/nala.py:195 in _install
│
│
│
│ 192 │ │ │ error.unmarked_error(nala_pkgs.user_explicit)
│
│ 193 │
│
│ 194 │ auto_remover(cache, nala_pkgs)
│
│ ❱ 195 │ get_changes(cache, nala_pkgs, "install")
│
│ 196
│
│ 197
│
│ 198 def remove_completion(ctx: typer.Context) -> Generator[str, None,
None]: │
│
│
│ ╭────────────────────────────────── locals
───────────────────────────────────╮ │
│ │ broken = [<Package: name:'gnome-terminal' architecture='amd64' id:252>]
│ │
│ │ cache = <nala.cache.Cache object at 0x78195be48d70>
│ │
│ │ ctx = <click.core.Context object at 0x78195be1d590>
│ │
│ │ not_exist = []
│ │
│ │ not_found = []
│ │
│ │ pkg_names = ['gnome-terminal']
│ │
│ │ ver_failed = False
│ │
│
╰─────────────────────────────────────────────────────────────────────────────╯
│
│
│
│ /usr/lib/python3/dist-packages/nala/install.py:489 in get_changes
│
│
│
│ 486 │ if arguments.raw_dpkg:
│
│ 487 │ │ term.restore_locale()
│
│ 488 │
│
│ ❱ 489 │ download_pkgs(pkgs)
│
│ 490 │ start_dpkg(cache, nala_pkgs)
│
│ 491 │ write_history(cache, nala_pkgs, operation)
│
│ 492
│
│
│
│ ╭────────────────────────────────────────────────────── locals
───────────────────────────────────────────────────────╮ │
│ │ cache = <nala.cache.Cache object at 0x78195be48d70>
│ │
│ │ nala_pkgs = PackageHandler(
│ │
│ │ │ autoremoved=set(),
│ │
│ │ │ user_explicit=[<Package: name:'gnome-terminal'
architecture='amd64' id:252>], │ │
│ │ │ local_debs=[],
│ │
│ │ │ not_needed=[],
│ │
│ │ │ delete_pkgs=[],
│ │
│ │ │ install_pkgs=[
│ │
│ │ │ │ NalaPackage(
│ │
│ │ │ │ │ name='gnome-terminal',
│ │
│ │ │ │ │ version='3.56.0-1ubuntu1',
│ │
│ │ │ │ │ size=235328,
│ │
│ │ │ │ │ old_version=None
│ │
│ │ │ │ ),
│ │
│ │ │ │ NalaPackage(
│ │
│ │ │ │ │ name='gnome-terminal-data',
│ │
│ │ │ │ │ version='3.56.0-1ubuntu1',
│ │
│ │ │ │ │ size=39336,
│ │
│ │ │ │ │ old_version=None
│ │
│ │ │ │ ),
│ │
│ │ │ │ NalaPackage(
│ │
│ │ │ │ │ name='nautilus-extension-gnome-terminal',
│ │
│ │ │ │ │ version='3.56.0-1ubuntu1',
│ │
│ │ │ │ │ size=21104,
│ │
│ │ │ │ │ old_version=None
│ │
│ │ │ │ )
│ │
│ │ │ ],
│ │
│ │ │ reinstall_pkgs=[],
│ │
│ │ │ upgrade_pkgs=[],
│ │
│ │ │ autoremove_pkgs=[],
│ │
│ │ │ autoremove_config=[],
│ │
│ │ │ delete_config=[],
│ │
│ │ │ recommend_pkgs=[],
│ │
│ │ │ suggest_pkgs=[],
│ │
│ │ │ configure_pkgs=[],
│ │
│ │ │ downgrade_pkgs=[],
│ │
│ │ │ held_pkgs=[]
│ │
│ │ )
│ │
│ │ operation = 'install'
│ │
│ │ pkgs = [
│ │
│ │ │ <Package: name:'gnome-terminal' architecture='amd64'
id:252>, │ │
│ │ │ <Package: name:'gnome-terminal-data' architecture='amd64'
id:3054>, │ │
│ │ │ <Package: name:'nautilus-extension-gnome-terminal'
architecture='amd64' id:3055> │ │
│ │ ]
│ │
│
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
│
│
│
│ /usr/lib/python3/dist-packages/nala/downloader.py:922 in download_pkgs
│
│
│
│ 919
│
│ 920 def download_pkgs(pkgs: Iterable[Package]) -> None:
│
│ 921 │ """Download package from a list of pkgs."""
│
│ ❱ 922 │ download(
│
│ 923 │ │ Downloader(
│
│ 924 │ │ │ # Start the larger files first, as they take the longest
│
│ 925 │ │ │ sorted(
│
│
│
│ ╭────────────────────────────────────────── locals
───────────────────────────────────────────╮ │
│ │ pkgs = [
│ │
│ │ │ <Package: name:'gnome-terminal' architecture='amd64' id:252>,
│ │
│ │ │ <Package: name:'gnome-terminal-data' architecture='amd64'
id:3054>, │ │
│ │ │ <Package: name:'nautilus-extension-gnome-terminal'
architecture='amd64' id:3055> │ │
│ │ ]
│ │
│
╰─────────────────────────────────────────────────────────────────────────────────────────────╯
│
│
│
│ /usr/lib/python3/dist-packages/nala/downloader.py:889 in download
│
│
│
│ 886 │ Does not return if in Download Only mode.
│
│ 887 │ """
│
│ 888 │ try:
│
│ ❱ 889 │ │ run(downloader.start_download())
│
│ 890 │ except (CancelledError, RuntimeError) as error:
│
│ 891 │ │ if downloader.exit:
│
│ 892 │ │ │ sys.exit(downloader.exit)
│
│
│
│ ╭────────────────────────────── locals ──────────────────────────────╮
│
│ │ downloader = <nala.downloader.Downloader object at 0x78195be49550> │
│
│ ╰────────────────────────────────────────────────────────────────────╯
│
│
│
│ /usr/lib/python3.13/asyncio/runners.py:195 in run
│
│
│
│ 192 │ │ │ "asyncio.run() cannot be called from a running event loop")
│
│ 193 │
│
│ 194 │ with Runner(debug=debug, loop_factory=loop_factory) as runner:
│
│ ❱ 195 │ │ return runner.run(main)
│
│ 196
│
│ 197
│
│ 198 def _cancel_all_tasks(loop):
│
│
│
│ ╭─────────────────────────────────── locals
────────────────────────────────────╮ │
│ │ debug = None
│ │
│ │ loop_factory = None
│ │
│ │ main = <coroutine object Downloader.start_download at
0x78195becf1c0> │ │
│ │ runner = <asyncio.runners.Runner object at 0x78195be49400>
│ │
│
╰───────────────────────────────────────────────────────────────────────────────╯
│
│
│
│ /usr/lib/python3.13/asyncio/runners.py:118 in run
│
│
│
│ 115 │ │
│
│ 116 │ │ self._interrupt_count = 0
│
│ 117 │ │ try:
│
│ ❱ 118 │ │ │ return self._loop.run_until_complete(task)
│
│ 119 │ │ except exceptions.CancelledError:
│
│ 120 │ │ │ if self._interrupt_count > 0:
│
│ 121 │ │ │ │ uncancel = getattr(task, "uncancel", None)
│
│
│
│ ╭────────────────────────────────────────────────────── locals
───────────────────────────────────────────────────────╮ │
│ │ context = <_contextvars.Context object at 0x78195bea0140>
│ │
│ │ coro = <coroutine object Downloader.start_download at
0x78195becf1c0> │ │
│ │ self = <asyncio.runners.Runner object at 0x78195be49400>
│ │
│ │ sigint_handler = functools.partial(<bound method Runner._on_sigint of
<asyncio.runners.Runner object at │ │
│ │ 0x78195be49400>>, main_task=<Task finished name='Task-1'
coro=<Downloader.start_download() done, │ │
│ │ defined at
/usr/lib/python3/dist-packages/nala/downloader.py:399>
│ │
│ │ exception=TypeError("AsyncClient.__init__() got an
unexpected keyword argument 'proxies'")>) │ │
│ │ task = <Task finished name='Task-1'
coro=<Downloader.start_download() done, defined at │ │
│ │ /usr/lib/python3/dist-packages/nala/downloader.py:399>
exception=TypeError("AsyncClient.__init__() │ │
│ │ got an unexpected keyword argument 'proxies'")>
│ │
│
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
│
│
│
│ /usr/lib/python3.13/asyncio/base_events.py:719 in run_until_complete
│
│
│
│ 716 │ │ if not future.done():
│
│ 717 │ │ │ raise RuntimeError('Event loop stopped before Future
completed.') │
│ 718 │ │
│
│ ❱ 719 │ │ return future.result()
│
│ 720 │
│
│ 721 │ def stop(self):
│
│ 722 │ │ """Stop running the event loop.
│
│
│
│ ╭────────────────────────────────────────────────────── locals
───────────────────────────────────────────────────────╮ │
│ │ future = <Task finished name='Task-1' coro=<Downloader.start_download()
done, defined at │ │
│ │ /usr/lib/python3/dist-packages/nala/downloader.py:399>
exception=TypeError("AsyncClient.__init__() got │ │
│ │ an unexpected keyword argument 'proxies'")>
│ │
│ │ new_task = False
│ │
│ │ self = <_UnixSelectorEventLoop running=False closed=True debug=False>
│ │
│
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
│
│
│
│ /usr/lib/python3/dist-packages/nala/downloader.py:404 in start_download
│
│
│
│ 401 │ │ if not self.pkg_urls:
│
│ 402 │ │ │ return True
│
│ 403 │ │ with Live(get_renderable=self._gen_table,
refresh_per_second=10) as self.live: │
│ ❱ 404 │ │ │ async with AsyncClient(
│
│ 405 │ │ │ │ timeout=20,
│
│ 406 │ │ │ │ proxies=self.proxy,
│
│ 407 │ │ │ │ follow_redirects=True,
│
│
│
│ ╭─────────────────────────── locals ───────────────────────────╮
│
│ │ self = <nala.downloader.Downloader object at 0x78195be49550> │
│
│ ╰──────────────────────────────────────────────────────────────╯
│
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
TypeError: AsyncClient.__init__() got an unexpected keyword argument 'proxies'
ProblemType: Bug
DistroRelease: Ubuntu 25.04
Package: nala 0.15.4
ProcVersionSignature: Ubuntu 6.14.0-11.11-generic 6.14.0-rc7
Uname: Linux 6.14.0-11-generic x86_64
ApportVersion: 2.32.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: GNOME
Date: Tue Mar 25 00:28:41 2025
InstallationDate: Installed on 2025-01-21 (63 days ago)
InstallationMedia: Ubuntu 24.10 "Oracular Oriole" - Release amd64 (20241009.4)
PackageArchitecture: all
ProcEnviron:
LANG=en_US.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
XDG_RUNTIME_DIR=<set>
SourcePackage: nala
UpgradeStatus: Upgraded to plucky on 2025-03-19 (5 days ago)
** Affects: nala (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug plucky wayland-session
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2104049
Title:
installing upgrading packages are failing due to problem encountered
while downloading packages
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nala/+bug/2104049/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
