Expected behavior: Updating from source after “apt ugrade”
Actual behavior: Error
Reading state information... Done
All packages are up to date.
root@sam:~# apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up zammad (3.6.0-1609411394.587a3197.buster) ...
/var/lib/dpkg/info/zammad.postinst: line 53: /tmp/tmp.YxEQePoRtr: Permission denied
dpkg: error processing package zammad (--configure):
installed zammad package post-installation script subprocess returned error exit status 126
Errors were encountered while processing:
zammad
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@sam:~#
Steps to reproduce the behavior:
apt update
apt upgrade
Y
Additional Info:
if /tmp Permission is set to 777 the error persists…
already tried " zammad run rails r ‘Cache.clear’ " isn’t successful
Quesstion:
What can I do to get this resolved?
Thanks a lot in advance.
Magnus
UPDATE:
I shifted my server back to the day before. Thr error occurs after upgrading:
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
root@sam:~# apt list --upgradable
Listing... Done
zammad/unknown 3.6.0-1609411394.587a3197.buster amd64 [upgradable from: 3.6.0-1608715609.2ac8cd86.buster]
N: There are 46 additional versions. Please use the '-a' switch to see them.
root@sam:~#
has anyone got the same issue? Or any ideas? Even with new Version zammad/unknown 3.6.0-1609775535.08de0347.buster amd64 [upgradable from: 3.6.0-1608715609.2ac8cd86.buster] I am gettign same error.
root@sam:~# apt reinstall zammad
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
zammad
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 263 MB of archives.
After this operation, 5,120 B of additional disk space will be used.
Get:1 https://dl.packager.io/srv/deb/zammad/zammad/stable/debian 10/main amd64 zammad amd64 3.6.0-1609775535.08de0347.buster [263 MB]
Fetched 263 MB in 5s (50.1 MB/s)
Reading changelogs... Done
(Reading database ... 202891 files and directories currently installed.)
Preparing to unpack .../zammad_3.6.0-1609775535.08de0347.buster_amd64.deb ...
Unpacking zammad (3.6.0-1609775535.08de0347.buster) over (3.6.0-1608715609.2ac8cd86.buster) ...
Setting up zammad (3.6.0-1609775535.08de0347.buster) ...
/var/lib/dpkg/info/zammad.postinst: line 53: /tmp/tmp.rtM9Z4IUMo: Permission denied
dpkg: error processing package zammad (--configure):
installed zammad package post-installation script subprocess returned error exit status 126
Errors were encountered while processing:
zammad
E: Sub-process /usr/bin/dpkg returned an error code (1)
Sorry but I can’t reproduce that. It seems to be a issue specific to your system.
Below error makes me believe that:
Not much the installer can do if it can’t access files it needs.
You could try apt clean followed by apt update; apt upgrade again, but I’m not too sure if this will solve the issue.
Right now and in the last days / weeks I could install Debian packages without any trouble.
Do you want to continue? [Y/n] Y
Setting up zammad (4.0.0-1617678167.2e3acf80.xenial) …
/var/lib/dpkg/info/zammad.postinst: line 53: /tmp/tmp.dsaG1O4lcH: Permission denied
dpkg: error processing package zammad (–configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
zammad
I followed this thread but seem not working. Was this fixed?
We can’t really do much about this issue.
On a “normal” system /tmp belongs to root. Maybe check that as well.
I believe that other installation processes temporary using /tmp should fail as well.
Are you able to simply create files into said directory? touch /tmp/my-test
If that fails as well, this may be an indicator.
I can’t reproduce this so it doesn’t seem to be application specific.