On 18. mai 2012 10:07, Petter Reinholdtsen wrote:
[Ole-Anders Andreassen]I use chroot /opt/ltsp/i386 then run apt-getRight. Better to use ltsp-chroot.To avoid it, try to call chroot like this: TMP= TMPDIR= ltsp-chrootOK, I'll try this :)A better way might be to use su - to get the per user temp directories also in the chroot. Ie. ltsp-chroot su - I just tested this, and it worked fine as I suspected. Please update the wiki with this information if you believe it should be told to every admin of Skolelinux. :) KlausAde advised me to not enter the chroot, but instead use: LANG=C chroot /opt/ltsp/i386 apt-get update LANG=C chroot /opt/ltsp/i386 apt-get upgradeThis got rid of most of the errors , but not all. I still get this output when I run apt-get upgrade a 2nd time: --- root@tjener:~# LANG=C chroot /opt/ltsp/i386 apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be upgraded: acpid nscd openoffice.org-emailmerge 3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 105 not fully installed or removed. Need to get 0 B/1712 kB of archives. After this operation, 4096 B of additional disk space will be used. Do you want to continue [Y/n]? Y dpkg-deb: failed to create temporary directory: No such file or directory Traceback (most recent call last): File "/usr/bin/apt-listchanges", line 237, in <module> main() File "/usr/bin/apt-listchanges", line 102, in main pkg = DebianFiles.Package(deb) File "/usr/share/apt-listchanges/DebianFiles.py", line 133, in __init__ self.binary = pkgdata.Package AttributeError: ControlStanza instance has no attribute 'Package' Can not write log, openpty() failed (/dev/pts not mounted?) (Reading database ... 202931 files and directories currently installed.) Preparing to replace acpid 1:2.0.7-1squeeze3 (using .../acpid_1%3a2.0.7-1squeeze4_i386.deb) ... Stopping ACPI services.../sbin/start-stop-daemon.real: nothing in /proc - not mounted? invoke-rc.d: initscript acpid, action "stop" failed. dpkg: warning: subprocess old pre-removal script returned error exit status 2 dpkg - trying script from the new package instead ... Stopping ACPI services.../sbin/start-stop-daemon.real: nothing in /proc - not mounted? invoke-rc.d: initscript acpid, action "stop" failed. dpkg: error processing /var/cache/apt/archives/acpid_1%3a2.0.7-1squeeze4_i386.deb (--unpack): subprocess new pre-removal script returned error exit status 2 configured to not write apport reports Starting ACPI services.../sbin/start-stop-daemon.real: nothing in /proc - not mounted? invoke-rc.d: initscript acpid, action "start" failed. dpkg: error while cleaning up: subprocess installed post-installation script returned error exit status 2 Errors were encountered while processing: /var/cache/apt/archives/acpid_1%3a2.0.7-1squeeze4_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1) root@tjener:~#
OleA |