[Aptitude-devel] Bug#806595: Workaround
kay
kay.diam at gmail.com
Thu Dec 17 16:22:52 UTC 2015
Have faced same issue. Here is my workaround.
--- /usr/sbin/update-pepperflashplugin-nonfree.orig 2015-12-17
17:22:00.184075270 +0100
+++ /usr/sbin/update-pepperflashplugin-nonfree 2015-12-17
17:21:40.280204140 +0100
@@ -17,6 +17,8 @@
set -e
+SUDO="sudo -u _apt"
+
return_0() {
return 0
}
@@ -112,7 +114,7 @@
latestfile=latest-$variant-verified.txt
[ "$verified" != "no" ] || latestfile=latest-$variant.txt
-UNPACKDIR=`mktemp -d /tmp/pepperflashplugin-nonfree.XXXXXXXXXX` ||
die_hard "mktemp failed"
+UNPACKDIR=`$SUDO mktemp -d /tmp/pepperflashplugin-nonfree.XXXXXXXXXX`
|| die_hard "mktemp failed"
echo "$UNPACKDIR" | grep -q "^/tmp/pepperflashplugin-nonfree\." ||
die_hard "paranoia"
cd "$UNPACKDIR" || die_hard "cd failed"
@@ -169,7 +171,7 @@
deb [arch=$arch] http://dl.google.com/linux/chrome/deb/ stable main
EOF
- gpg --quiet --no-permission-warning --homedir "etc/apt"
--import /usr/lib/pepperflashplugin-nonfree/pubkey-google.txt
+ $SUDO gpg --quiet --no-permission-warning --homedir "etc/apt"
--import /usr/lib/pepperflashplugin-nonfree/pubkey-google.txt
[ "$verbose" != "yes" ] || echo "doing apt-get update on google
repository"
stdouterr=`APT_CONFIG=apt.conf apt-get --quiet --quiet update 2>&1`
More information about the Aptitude-devel
mailing list