snapcraft fails if it needs to pull a deb that has an uninstallable version on the system
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
High
|
Sergio Schvezov |
Bug Description
I run a wily kernel on a vivid system. I tried to use snapcraft with the following procedure:
$ cd /tmp
$ bzr branch lp:ufw
...
$ cd ./ufw
$ cat > snapcraft.yaml <<EOM
name: ufw
version: 0.35~-1
vendor: Jamie Strandboge <email address hidden>
summary: program for managing a Netfilter firewall
description: Uncomplicated FireWall is a front-end for iptables, to make managing a Netfilter firewall easier. It provides a command line interface with syntax similar to OpenBSD's Packet Filter. It is particularly well-suited as a host-based firewall.
icon: icon.png
parts:
ufw:
type: python3-project
source: .
EOM
$ cp /usr/share/
$ snapcraft stage
Pulling python3
Get:1 dh-python_
Fetched 65.1 kB in 0s (0 B/s)
Get:1 libc-dev-
Fetched 68.6 kB in 0s (0 B/s)
Get:1 libc6-dev_
Fetched 1967 kB in 0s (0 B/s)
Get:1 libexpat1_
Fetched 70.8 kB in 0s (0 B/s)
Get:1 libexpat1-
Fetched 115 kB in 0s (0 B/s)
Get:1 libffi6_
Fetched 17.7 kB in 0s (0 B/s)
Get:1 libmpdec2_
Fetched 82.7 kB in 0s (0 B/s)
Get:1 libpython3-
Fetched 7094 B in 0s (0 B/s)
Get:1 libpython3-
Fetched 6986 B in 0s (0 B/s)
Get:1 libpython3.
Fetched 1312 kB in 0s (0 B/s)
Get:1 libpython3.
Fetched 22.8 MB in 0s (0 B/s)
Get:1 libpython3.
Fetched 466 kB in 0s (0 B/s)
Get:1 libpython3.
Fetched 2053 kB in 0s (0 B/s)
Get:1 libsqlite3-
Fetched 371 kB in 0s (0 B/s)
Get:1 libssl1.
Fetched 853 kB in 0s (0 B/s)
Traceback (most recent call last):
File "/usr/bin/
snapcraft.
File "/usr/lib/
args.func(args)
File "/usr/lib/
if not getattr(part, cmd)(force=force):
File "/usr/lib/
self.
File "/usr/lib/
ubuntu.
File "/usr/lib/
self.
File "/usr/lib/
self.size, base, destfile=destfile)
TypeError: argument 2 must be str, not None
[1]
Turned out to be <Version: package:
1. snapcraft should use its own sources.list and cache to avoid this sort of thing
2. the error output didn't indicate the progress well enough for me to know what the problem was (from the above, it looked like libssl1.0.0 was the issue, but it wasn't)
Related branches
- Michael Vogt (community): Approve
-
Diff: 277 lines (+97/-59)4 files modifiedsnapcraft/__init__.py (+5/-1)
snapcraft/manifest.txt (+13/-0)
snapcraft/repo.py (+79/-49)
snapcraft/tests/test_repo.py (+0/-9)
Changed in snapcraft: | |
status: | New → Fix Committed |
Changed in snapcraft: | |
milestone: | none → 0.2 |
assignee: | nobody → Sergio Schvezov (sergiusens) |
Changed in snapcraft: | |
importance: | Undecided → High |
Changed in snapcraft: | |
status: | Fix Committed → Fix Released |