Comment 2 for bug 1698888

Revision history for this message
Heikki Orsila (heikki-orsila) wrote :

This bug affects me as well. I was able to build a snap package with snapcraft for amd64 with the following hack:

1. mkdir dpkg-wrapper
2. create dpkg-wrapper/dpkg script:
#!/bin/bash

if [[ $1 = "-L" && $2 = "libc6" && $3 = "" ]] ; then
 exec /usr/bin/dpkg -L libc6:amd64
else
 exec /usr/bin/dpkg "$@"
fi

3. export PATH=$(pwd)/dpkg-wrapper:"${PATH}"
4. snapcraft ...

This hack is absolutely terrible, but it worked for me.