Now, every time the apt-get error occurs, no more shell commands work- only a reboot. If I fix the dpkg error using force it installs fine but a similar error will appear when installing the next package- again disabling the shell commands. The error messages on shutdown look _very_ strange to me. I've rebootet after touching /forcefsck, no change.
Code: Select all
[email protected]:~/vzlogger $ sudo apt-get install cmake Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: ax25-node libax25 libc-ares2 libfile-copy-recursive-perl libv8-3.14.5 openbsd-inetd update-inetd Use 'apt-get autoremove' to remove them. The following extra packages will be installed: cmake-data libarchive13 liblzo2-2 Suggested packages: codeblocks eclipse ninja-build lrzip The following NEW packages will be installed: cmake cmake-data libarchive13 liblzo2-2 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. Need to get 3,076 kB of archives. After this operation, 15.1 MB of additional disk space will be used. Do you want to continue? [Y/n] Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main cmake-data all 3.0.2-1 [929 kB] Get:2 http://mirrordirector.raspbian.org/raspbian/ jessie/main liblzo2-2 armhf 2.08-1.2 [47.6 kB] Get:3 http://mirrordirector.raspbian.org/raspbian/ jessie/main libarchive13 armhf 3.1.2-11 [230 kB] Get:4 http://mirrordirector.raspbian.org/raspbian/ jessie/main cmake armhf 3.0.2-1 [1,870 kB] Fetched 3,076 kB in 1s (2,188 kB/s) Selecting previously unselected package cmake-data. (Reading database ... 31242 files and directories currently installed.) Preparing to unpack .../cmake-data_3.0.2-1_all.deb ... Unpacking cmake-data (3.0.2-1) ... dpkg: error processing archive /var/cache/apt/archives/cmake-data_3.0.2-1_all.deb (--unpack): unable to clean up mess surrounding `./usr/share/cmake-3.0/Modules/FindPostgreSQL.cmake' before installing another version: Read-only file system dpkg: error while cleaning up: unable to remove newly-extracted version of `/usr/share/cmake-3.0/Modules/FindPNG.cmake': Read-only file system [email protected]:~/vzlogger $ df -bash: df: command not found [email protected]:~/vzlogger $ ls -bash: ls: command not found [email protected]:~ $ shutdown -rF now Code should not be reached 'Unhandled option' at ../src/systemctl/systemctl.c:6316, function shutdown_parse_argv(). Aborting. Aborted [email protected]:~ $ shutdown -r now Failed to execute operation: The name org.freedesktop.PolicyKit1 was not provided by any .service files Must be root.
Is it possible that these are issues are anyway connected to the minimal image? If SD card what else could I do to diagnose?