nala icon indicating copy to clipboard operation
nala copied to clipboard

Missing Signed-By in the sources.list(5) entry

Open flip111 opened this issue 9 months ago • 3 comments

I'm getting noticed like

N: Missing Signed-By in the sources.list(5) entry for 'https://debian.charite.de/ubuntu' N: Missing Signed-By in the sources.list(5) entry for 'https://mirror.ipb.de/ubuntu'

while this indicates a problem with the repository i'm posting it here because i used nala fetch to set which mirrors to use, and these were the mirrors. Can the nala fetch functionality be adjusted in such a way that it gives a visual indication for which repositories don't have Signed-By? Possibly it could also install the gpg key when setting a new mirror that does have a key present.

flip111 avatar Mar 06 '25 13:03 flip111

nala still not working in debian sid too.. so look here

https://github.com/volitank/nala/issues/4

this isnt real repository of nala

but i havent gitlab account, they need too much information like phone number

osevan avatar Mar 06 '25 14:03 osevan

Summary
====================================================================================================================
 Upgrade 22 Packages

 Total download size  10.3 MB
 Disk space required    16 KB

Do you want to continue? [Y/n] y
╭─ Downloading… ───────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Total Packages: 0/22                                                                                             │
│ Starting Downloads…                                                                                              │
│ Time Remaining: -:--:-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0% • 0.0/10.3 MB • ? │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─────────────────────────────────────── Traceback (most recent call last) ────────────────────────────────────────╮
│ /usr/lib/python3/dist-packages/nala/nala.py:347 in upgrade                                                       │
│                                                                                                                  │
│   344 │   │   auto_remover(cache, nala_pkgs)                                                                     │
│   345 │   │   get_changes(cache, nala_pkgs, "upgrade")                                                           │
│   346 │                                                                                                          │
│ ❱ 347 │   _upgrade(exclude)                                                                                      │
│   348                                                                                                            │
│   349                                                                                                            │
│   350 @nala.command(help=_("Install packages."))                                                                 │
│                                                                                                                  │
│ ╭───────── locals ──────────╮                                                                                    │
│ │         assume_yes = None │                                                                                    │
│ │        auto_remove = None │                                                                                    │
│ │        color_force = None │                                                                                    │
│ │              debug = None │                                                                                    │
│ │      download_only = None │                                                                                    │
│ │        dpkg_option = []   │                                                                                    │
│ │            exclude = None │                                                                                    │
│ │         fix_broken = None │                                                                                    │
│ │       full_upgrade = None │                                                                                    │
│ │ install_recommends = None │                                                                                    │
│ │   install_suggests = None │                                                                                    │
│ │           man_help = None │                                                                                    │
│ │              purge = None │                                                                                    │
│ │           raw_dpkg = None │                                                                                    │
│ │   remove_essential = None │                                                                                    │
│ │             simple = None │                                                                                    │
│ │             update = None │                                                                                    │
│ │            verbose = None │                                                                                    │
│ ╰───────────────────────────╯                                                                                    │
│                                                                                                                  │
│ /usr/lib/python3/dist-packages/nala/nala.py:345 in _upgrade                                                      │
│                                                                                                                  │
│   342 │   │   │   )                                                                                              │
│   343 │   │                                                                                                      │
│   344 │   │   auto_remover(cache, nala_pkgs)                                                                     │
│ ❱ 345 │   │   get_changes(cache, nala_pkgs, "upgrade")                                                           │
│   346 │                                                                                                          │
│   347 │   _upgrade(exclude)                                                                                      │
│   348                                                                                                            │
│                                                                                                                  │
│ ╭────────────────────────────────────────── locals ──────────────────────────────────────────╮                   │
│ │        cache = <nala.cache.Cache object at 0x7f514a228b90>                                 │                   │
│ │      exclude = None                                                                        │                   │
│ │   is_upgrade = (                                                                           │                   │
│ │                │   <Package: name:'dirmngr' architecture='amd64' id:36181>,                │                   │
│ │                │   <Package: name:'gir1.2-freedesktop' architecture='amd64' id:4642>,      │                   │
│ │                │   <Package: name:'gir1.2-freedesktop-dev' architecture='amd64' id:36366>, │                   │
│ │                │   <Package: name:'gnupg' architecture='amd64' id:576>,                    │                   │
│ │                │   <Package: name:'gnupg-l10n' architecture='amd64' id:36185>,             │                   │
│ │                │   <Package: name:'gnupg-utils' architecture='amd64' id:21287>,            │                   │
│ │                │   <Package: name:'gpg' architecture='amd64' id:3268>,                     │                   │
│ │                │   <Package: name:'gpg-agent' architecture='amd64' id:577>,                │                   │
│ │                │   <Package: name:'gpg-wks-client' architecture='amd64' id:36192>,         │                   │
│ │                │   <Package: name:'gpgconf' architecture='amd64' id:36182>,                │                   │
│ │                │   ... +12                                                                 │                   │
│ │                )                                                                           │                   │
│ │ nested_cache = None                                                                        │                   │
│ │          pkg = <Package: name:'qemu-guest-agent' architecture='amd64' id:79006>            │                   │
│ │    protected = set()                                                                       │                   │
│ ╰────────────────────────────────────────────────────────────────────────────────────────────╯                   │
│                                                                                                                  │
│ /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 0x7f514a228b90>                                                      │ │
│ │ nala_pkgs = PackageHandler(                                                                                  │ │
│ │             │   autoremoved=set(),                                                                           │ │
│ │             │   user_explicit=[],                                                                            │ │
│ │             │   local_debs=[],                                                                               │ │
│ │             │   not_needed=[],                                                                               │ │
│ │             │   delete_pkgs=[],                                                                              │ │
│ │             │   install_pkgs=[],                                                                             │ │
│ │             │   reinstall_pkgs=[],                                                                           │ │
│ │             │   upgrade_pkgs=[                                                                               │ │
│ │             │   │   NalaPackage(name='dirmngr', version='2.2.46-3', size=369384, old_version='2.2.46-2'),    │ │
│ │             │   │   NalaPackage(                                                                             │ │
│ │             │   │   │   name='gir1.2-freedesktop',                                                           │ │
│ │             │   │   │   version='1.83.2-2',                                                                  │ │
│ │             │   │   │   size=60404,                                                                          │ │
│ │             │   │   │   old_version='1.82.0-4'                                                               │ │
│ │             │   │   ),                                                                                       │ │
│ │             │   │   NalaPackage(                                                                             │ │
│ │             │   │   │   name='gir1.2-freedesktop-dev',                                                       │ │
│ │             │   │   │   version='1.83.2-2',                                                                  │ │
│ │             │   │   │   size=51544,                                                                          │ │
│ │             │   │   │   old_version='1.82.0-4'                                                               │ │
│ │             │   │   ),                                                                                       │ │
│ │             │   │   NalaPackage(name='gnupg', version='2.2.46-3', size=376396, old_version='2.2.46-2'),      │ │
│ │             │   │   NalaPackage(                                                                             │ │
│ │             │   │   │   name='gnupg-l10n',                                                                   │ │
│ │             │   │   │   version='2.2.46-3',                                                                  │ │
│ │             │   │   │   size=702860,                                                                         │ │
│ │             │   │   │   old_version='2.2.46-2'                                                               │ │
│ │             │   │   ),                                                                                       │ │
│ │             │   │   NalaPackage(                                                                             │ │
│ │             │   │   │   name='gnupg-utils',                                                                  │ │
│ │             │   │   │   version='2.2.46-3',                                                                  │ │
│ │             │   │   │   size=508480,                                                                         │ │
│ │             │   │   │   old_version='2.2.46-2'                                                               │ │
│ │             │   │   ),                                                                                       │ │
│ │             │   │   NalaPackage(name='gpg', version='2.2.46-3', size=533032, old_version='2.2.46-2'),        │ │
│ │             │   │   NalaPackage(                                                                             │ │
│ │             │   │   │   name='gpg-agent',                                                                    │ │
│ │             │   │   │   version='2.2.46-3',                                                                  │ │
│ │             │   │   │   size=251704,                                                                         │ │
│ │             │   │   │   old_version='2.2.46-2'                                                               │ │
│ │             │   │   ),                                                                                       │ │
│ │             │   │   NalaPackage(                                                                             │ │
│ │             │   │   │   name='gpg-wks-client',                                                               │ │
│ │             │   │   │   version='2.2.46-3',                                                                  │ │
│ │             │   │   │   size=102412,                                                                         │ │
│ │             │   │   │   old_version='2.2.46-2'                                                               │ │
│ │             │   │   ),                                                                                       │ │
│ │             │   │   NalaPackage(name='gpgconf', version='2.2.46-3', size=121372, old_version='2.2.46-2'),    │ │
│ │             │   │   ... +12                                                                                  │ │
│ │             │   ],                                                                                           │ │
│ │             │   autoremove_pkgs=[],                                                                          │ │
│ │             │   autoremove_config=[],                                                                        │ │
│ │             │   delete_config=[],                                                                            │ │
│ │             │   recommend_pkgs=[],                                                                           │ │
│ │             │   suggest_pkgs=[],                                                                             │ │
│ │             │   configure_pkgs=[],                                                                           │ │
│ │             │   downgrade_pkgs=[],                                                                           │ │
│ │             │   held_pkgs=[]                                                                                 │ │
│ │             )                                                                                                │ │
│ │ operation = 'upgrade'                                                                                        │ │
│ │      pkgs = [                                                                                                │ │
│ │             │   <Package: name:'dirmngr' architecture='amd64' id:36181>,                                     │ │
│ │             │   <Package: name:'gir1.2-freedesktop' architecture='amd64' id:4642>,                           │ │
│ │             │   <Package: name:'gir1.2-freedesktop-dev' architecture='amd64' id:36366>,                      │ │
│ │             │   <Package: name:'gnupg' architecture='amd64' id:576>,                                         │ │
│ │             │   <Package: name:'gnupg-l10n' architecture='amd64' id:36185>,                                  │ │
│ │             │   <Package: name:'gnupg-utils' architecture='amd64' id:21287>,                                 │ │
│ │             │   <Package: name:'gpg' architecture='amd64' id:3268>,                                          │ │
│ │             │   <Package: name:'gpg-agent' architecture='amd64' id:577>,                                     │ │
│ │             │   <Package: name:'gpg-wks-client' architecture='amd64' id:36192>,                              │ │
│ │             │   <Package: name:'gpgconf' architecture='amd64' id:36182>,                                     │ │
│ │             │   ... +12                                                                                      │ │
│ │             ]                                                                                                │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │
│                                                                                                                  │
│ /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:'dirmngr' architecture='amd64' id:36181>,                │                           │
│ │        │   <Package: name:'gir1.2-freedesktop' architecture='amd64' id:4642>,      │                           │
│ │        │   <Package: name:'gir1.2-freedesktop-dev' architecture='amd64' id:36366>, │                           │
│ │        │   <Package: name:'gnupg' architecture='amd64' id:576>,                    │                           │
│ │        │   <Package: name:'gnupg-l10n' architecture='amd64' id:36185>,             │                           │
│ │        │   <Package: name:'gnupg-utils' architecture='amd64' id:21287>,            │                           │
│ │        │   <Package: name:'gpg' architecture='amd64' id:3268>,                     │                           │
│ │        │   <Package: name:'gpg-agent' architecture='amd64' id:577>,                │                           │
│ │        │   <Package: name:'gpg-wks-client' architecture='amd64' id:36192>,         │                           │
│ │        │   <Package: name:'gpgconf' architecture='amd64' id:36182>,                │                           │
│ │        │   ... +12                                                                 │                           │
│ │        ]                                                                           │                           │
│ ╰────────────────────────────────────────────────────────────────────────────────────╯                           │
│                                                                                                                  │
│ /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 0x7f5146660050> │                                           │
│ ╰────────────────────────────────────────────────────────────────────╯                                           │
│                                                                                                                  │
│ /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 0x7f514a472e60> │                                │
│ │       runner = <asyncio.runners.Runner object at 0x7f51466602f0>              │                                │
│ ╰───────────────────────────────────────────────────────────────────────────────╯                                │
│                                                                                                                  │
│ /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 0x7f514a52a740>                                             │ │
│ │           coro = <coroutine object Downloader.start_download at 0x7f514a472e60>                              │ │
│ │           self = <asyncio.runners.Runner object at 0x7f51466602f0>                                           │ │
│ │ sigint_handler = functools.partial(<bound method Runner._on_sigint of <asyncio.runners.Runner object at      │ │
│ │                  0x7f51466602f0>>, 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:725 in run_until_complete                                             │
│                                                                                                                  │
│    722 │   │   if not future.done():                                                                             │
│    723 │   │   │   raise RuntimeError('Event loop stopped before Future completed.')                             │
│    724 │   │                                                                                                     │
│ ❱  725 │   │   return future.result()                                                                            │
│    726 │                                                                                                         │
│    727 │   def stop(self):                                                                                       │
│    728 │   │   """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 0x7f5146660050> │                                                 │
│ ╰──────────────────────────────────────────────────────────────╯                                                 │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
TypeError: AsyncClient.__init__() got an unexpected keyword argument 'proxies'

osevan avatar Mar 06 '25 14:03 osevan

@osevan how did you get such a nice traceback with locals?

flip111 avatar Mar 07 '25 22:03 flip111