Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to add package for other architecture? #33

Open
crusaderflex opened this issue Mar 8, 2023 · 2 comments
Open

Is it possible to add package for other architecture? #33

crusaderflex opened this issue Mar 8, 2023 · 2 comments

Comments

@crusaderflex
Copy link

crusaderflex commented Mar 8, 2023

I would add i386 packages in a amd64 env

 marking gcc-12-base:amd64 for installation
  marking gcc-12-base:i386 for installation
umount: /tmp/tmp6jxb37wm/.tmp/tmpq3fmbvnn: target is busy.
umount: /tmp/tmp6jxb37wm/old/iso: target is busy.
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 281, in __getitem__
    rawpkg = self._cache[key]
KeyError: 'gcc-12-base:i386'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/arloba/livefs-editor/livefs_edit/__main__.py", line 100, in <module>
    main(sys.argv[1:])
  File "/home/arloba/livefs-editor/livefs_edit/__main__.py", line 82, in main
    func(ctxt, **kw)
  File "/home/arloba/livefs-editor/livefs_edit/actions.py", line 58, in impl
    return func(ctxt, **kw)
  File "/home/arloba/livefs-editor/livefs_edit/actions.py", line 484, 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 'gcc-12-base:i386'"

Ubuntu could download the file:


#~/livefs-editor$ apt download gcc-12-base:i386
Holen:1 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 gcc-12-base i386 12.1.0-2ubuntu1~22.04 [19,0 kB]
Es wurden 19,0 kB in 1 s geholt (23,8 kB/s).

Could livefs-editor configured to use "foreign-architectures"

I would be great if you can look at it.

Greets Michael

@mwhudson
Copy link
Owner

mwhudson commented Mar 9, 2023

Ah yes, I think the issue here is that I just interpret the argument to --add-packages-to-pool as a package name, I should be smarter about that. If you download the packages by hand and pass them to --add-debs-to-pool does that work? I think it probably will.

@mwhudson
Copy link
Owner

mwhudson commented Mar 9, 2023

Ah i think i was a bit wrong there, need a bit more of a look...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants