https://bugs.kde.org/show_bug.cgi?id=395921

--- Comment #4 from Achim Bohnet <a...@mpe.mpg.de> ---
On a debian based system:

# cat >/etc/apt/apt.conf.d/00-fail-on-preload <<EOT
#DPkg::Pre-Invoke       { "if [ -x /usr/bin/etckeeper ]; then etckeeper
pre-install; fi"; };
#DPkg::Post-Invoke      { "if [ -x /usr/bin/etckeeper ]; then etckeeper
post-install; fi"; };
DPkg::Pre-Invoke       { "false"; };
DPkg::Post-Invoke      { "false"; };
EOT

check that apt fails. E.g. with pkg plasma-desktop

# apt install --reinstall plasma-desktop
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 4 not upgraded.
Need to get 1.792 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://archive.neon.kde.org/user xenial/main amd64 plasma-desktop amd64
4:5.13.2-0neon+16.04+xenial+build97 [1.792 kB]
Fetched 1.792 kB in 0s (51,8 MB/s)       
E: Problem executing scripts DPkg::Pre-Invoke 'false'
E: Sub-process returned an error code
# echo $?
100

When apt return as in this case exit code of 100.  Try to use discover to
upgrade/install .debs.  Nothing works and one sees no error msg.

Hope this helps,
Achim

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to