I tried to upgrade my locales on debian, and got this:
- Code: Select all
Setting up locales (2.3.2.ds1-11) ...
/var/lib/dpkg/info/locales.postinst: line 18: /etc/locale.gen.tmp: Permission denied
mv: cannot stat `/etc/locale.gen.tmp': No such file or directory
dpkg: error processing locales (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
locales
E: Sub-process /usr/bin/dpkg returned an error code (1)
I founded this error in logs:
- Code: Select all
Feb 7 17:04:06 alus kernel: PAX: From 192.168.1.2: terminating task: /usr/bin/localedef(localedef):19888, uid/euid: 0/0, PC:
bbe342f8, SP: bbe341f8
Feb 7 17:04:06 alus kernel: PAX: bytes at PC: b9 88 48 e3 bb e9 fe 10 24 4c 08 08 06 00 00 00 0a 00 00 00
Feb 7 17:04:06 alus kernel: grsec: From 192.168.1.2: attempted resource overstep by requesting 4096 for RLIMIT_CORE against l
imit 0 by (localedef:19888) UID(0) EUID(0), parent (locale-gen:8362) UID(0) EUID(0)
How to fix it?
Thanks