livefs-editor icon indicating copy to clipboard operation
livefs-editor copied to clipboard

Specifying package versions does not work

Open oregonpillow opened this issue 2 years ago • 2 comments

When i specify a specific package version i get the error: raise KeyError('The cache has no package named %r' % key)

Traceback (most recent call last):
  File "<redacted>/__main__.py", line 65, in main
    func(ctxt, **kw)
  File "/usr/local/lib/python3.10/dist-packages/livefs_edit/actions.py", line 41, in impl
    return func(ctxt, **kw)
  File "/usr/local/lib/python3.10/dist-packages/livefs_edit/actions.py", line 443, in add_packages_to_pool
    cache[p].mark_install()
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 283, in __getitem__
    raise KeyError('The cache has no package named %r' % key)
KeyError: "The cache has no package named 'tpm2-tools=5.2-1build1'"

any suggestions?

oregonpillow avatar Jan 11 '23 17:01 oregonpillow

Instead of adding packages to pool I found that installing them in the base layer worked when specifying package versions.

oregonpillow avatar Jan 11 '23 17:01 oregonpillow

I know you closed this as you found another way to do things but it would be nice if this worked.

mwhudson avatar Jan 12 '23 00:01 mwhudson