Fails on Archlinux: Unable to determine a suitable packaging system type

Bug #1981130 reported by A. Bram Neijt
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Undecided
Unassigned

Bug Description

Given that there is an install instruction page https://snapcraft.io/install/snapcraft/arch
I would expect the snapcraft snap to work, but it immediately fails:

/snap/bin/snapcraft --help
Traceback (most recent call last):
  File "/snap/snapcraft/7923/bin/snapcraft", line 5, in <module>
    from snapcraft.cli import run
  File "/var/lib/snapd/snap/snapcraft/7923/lib/python3.8/site-packages/snapcraft/cli.py", line 33, in <module>
    from . import commands
  File "/var/lib/snapd/snap/snapcraft/7923/lib/python3.8/site-packages/snapcraft/commands/__init__.py", line 25, in <module>
    from .extensions import (
  File "/var/lib/snapd/snap/snapcraft/7923/lib/python3.8/site-packages/snapcraft/commands/extensions.py", line 30, in <module>
    from snapcraft.parts.lifecycle import get_snap_project, process_yaml
  File "/var/lib/snapd/snap/snapcraft/7923/lib/python3.8/site-packages/snapcraft/parts/__init__.py", line 19, in <module>
    from .parts import PartsLifecycle
  File "/var/lib/snapd/snap/snapcraft/7923/lib/python3.8/site-packages/snapcraft/parts/parts.py", line 26, in <module>
    from craft_parts.packages import Repository, deb
  File "/var/lib/snapd/snap/snapcraft/7923/lib/python3.8/site-packages/craft_parts/packages/deb.py", line 44, in <module>
    from .apt_cache import AptCache
  File "/var/lib/snapd/snap/snapcraft/7923/lib/python3.8/site-packages/craft_parts/packages/apt_cache.py", line 29, in <module>
    import apt
  File "/var/lib/snapd/snap/snapcraft/7923/lib/python3.8/site-packages/apt/__init__.py", line 36, in <module>
    apt_pkg.init_system()
apt_pkg.Error: E:Unable to determine a suitable packaging system type

snap info reports
installed: 7.0.11 (7923) 65MB classic

Revision history for this message
SnailDOS (snaildos) wrote :

+1 not working on Manjaro either.

Revision history for this message
Abhijet Pokhrel (abhijet) wrote :

Same error here in manjaro as well

Revision history for this message
Sergio Schvezov (sergiusens) wrote :

7.1.1 now on stable fixes this issue

Changed in snapcraft:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.