debootstrap: 178: arithmetic expression: expecting EOF: "baseprog 1"

Bug #2075318 reported by Vitaly Chikunov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
debootstrap (Ubuntu)
New
Undecided
Unassigned

Bug Description

Latest debootstrap from git fails to install oracular. This is needed by mkosi@v14 creating bootabel image.

debootstrap --variant=minbase --include=ca-certificates --merged-usr --components=main,universe --arch=amd64 oracular /var/tmp/mkosi-g57jkd8g/root http://archive.ubuntu.com/ubuntu

Exits with `2`, debootstrap.log:

/usr/local/bin/debootstrap: 178: arithmetic expression: expecting EOF: "baseprog 1"

Looks like this commit created the problem
https://git.launchpad.net/ubuntu/+source/debootstrap/commit/?id=21725220e63d98107104a122b4fba868f7f1d802
```
@@ -174,7 +175,7 @@ Status: install ok installed" >> "$TARGET/var/lib/dpkg/status"
  }

  p () {
- baseprog="$(($baseprog + ${1:-1}))"
+ baseprog="$((baseprog 1))"
  }

  if ! doing_variant fakechroot; then
```

Where `baseprog 1` is not an arithmetic expression.

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.