dpkg-deb -R google-chrome-stable_current_amd64.deb .
The postinst and other package-related scripts will be in the DEBIAN directory:
$ ls DEBIAN/ control postinst postrm prerm
dpkg-deb -R google-chrome-stable_current_amd64.deb .
$ ls DEBIAN/ control postinst postrm prerm
case "$1" in configure) ${DAEMON} ${DAEMON_ARGS} "--install" if [ -x /sbin/initctl ] && /sbin/initctl version | /bin/grep -q upstart; then # Early versions of upstart didn't support restarting a service that # wasn't already running: # https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/430883 /usr/sbin/service myservice stop 2>/dev/null || true /usr/sbin/service myservice start 2>/dev/null elif [ -x /bin/systemctl ]; then # Systemd /bin/systemctl enable myservice /bin/systemctl restart myservice elif [ -x "/etc/init.d/myservice" ]; then update-rc.d myservice defaults >/dev/null invoke-rc.d myservice start || exit $? fi
;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac
debian/mypackage.service
lib/systemd/system/package.service
gpg --card-statusShould now show "sec#" as described here, to indicate the master secret key isn't present. Now your key is ready to use. I seem to be having similar problems as described here:
Yubikey core error: no yubikey presentThis bug pointed me to the Yubikey NEO manager, which has a PPA! Hooray! Except I couldn't get it to work on trusty, my errors are below. However, I just re-tried in a clean trusty docker container and it seemed to succeed, so I'm not going to file a bug:
ubuntu@ubuntu:~$ sudo apt-get install yubikey-neo-manager Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: yubikey-neo-manager : Depends: libu2f-host0 (>= 0.0) but it is not going to be installed Depends: python-pyside.qtwebkit but it is not installable Recommends: pcscd but it is not installable E: Unable to correct problems, you have held broken packages. ubuntu@ubuntu:~$ sudo apt-get install python-pyside.qtwebkit Reading package lists... Done Building dependency tree Reading state information... Done Package python-pyside.qtwebkit is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another sourceSo at this point I gave up on linux and used a Mac, which was waaay easier.
$ gpg2 --card-status gpg: OpenPGP card not available: No SmartCard daemonbut gpg 1.4 works fine. This appears to be caused by differences in how gpg 1 and 2 are packaged, gpg2 needs more packages to work.