mkdir -p var/lib/dpkg && touch var/lib/dpkg/status

before apt-get update

patch like this:

--- old/update-pepperflashplugin-nonfree        2016-05-14
04:16:00.000000000 +0700
+++ new/update-pepperflashplugin-nonfree        2016-08-07
22:00:39.353514824 +0700
@@ -171,7 +171,7 @@
        EOF

        gpg --quiet --no-permission-warning --homedir "etc/apt" --import
/usr/lib/pepperflashplugin-nonfree/pubkey-google.txt
-
+       mkdir -p var/lib/dpkg && touch var/lib/dpkg/status
        [ "$verbose" != "yes" ] || echo "doing apt-get update on google
repository"
        stdouterr=`APT_CONFIG=apt.conf apt-get --quiet --quiet update 2>&1
|| true`
        # If there anything other than warnings die:

Reply via email to