SOLVED: I have let it be for couple of hours and all of the sudden it works again. Dont know why.I ran into a problem after mounting and unmounting the VMware Tools disk, and I have space left on the hard drive so that is not the issue.When running apt-get update (or any apt command that involves write action on the file system) it returns the following error:Ign:1 http://ftp.se.debian.org/debian stretch InReleaseBra:3 http://ftp.se.debian.org/debian stretch ReleaseFel:4 http://ftp.se.debian.org/debian stretch Release.gpg  Couldn't create temporary file /tmp/apt.conf.e9QnPU for passing config to apt-keyLs:2 http://ftp.se.debian.org/debian stretch-updates InRelease [88,5 kB]Ls:5 http://security.debian.org/debian-security stretch/updates InRelease [62,9 kB]Fel:2 http://ftp.se.debian.org/debian stretch-updates InRelease  Couldn't create temporary file /tmp/apt.conf.ybseOZ for passing config to apt-keyFel:5 http://security.debian.org/debian-security stretch/updates InRelease  Couldn't create temporary file /tmp/apt.conf.1eqo60 for passing config to apt-keyHmtade 151 kB p 0s (608 kB/s)Lser paketlistor Fel!W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://ftp.se.debian.org/debian stretch Release: Couldn't create temporary file /tmp/apt.conf.e9QnPU for passing config to apt-keyW: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://ftp.se.debian.org/debian stretch-updates InRelease: Couldn't create temporary file /tmp/apt.conf.ybseOZ for passing config to apt-keyW: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://security.debian.org/debian-security stretch/updates InRelease: Couldn't create temporary file /tmp/apt.conf.1eqo60 for passing config to apt-keyW: Misslyckades med att hmta http://security.debian.org/debian-security/dists/stretch/updates/InRelease  Couldn't create temporary file /tmp/apt.conf.1eqo60 for passing config to apt-keyW: Misslyckades med att hmta http://ftp.se.debian.org/debian/dists/stretch-updates/InRelease  Couldn't create temporary file /tmp/apt.conf.ybseOZ for passing config to apt-keyW: Misslyckades med att hmta http://ftp.se.debian.org/debian/dists/stretch/Release.gpg  Couldn't create temporary file /tmp/apt.conf.e9QnPU for passing config to apt-keyW: Vissa indexfiler kunde inte hmtas. De har ignorerats eller s har de gamla anvnts istllet.E: Couldn't create temporary file to work with /var/lib/apt/lists/ftp.se.debian.org_debian_dists_stretch_Release - mkstemp (30: Filsystemet endast lsbart)E: Paketlistan eller statusfilen kunde inte tolkas eller ppnas.I have tried running: e2fsck -f /dev/sda2 but it returns the error that the system is mounted.So I tried to mount it as read and write but without any further success.I guess a solution to this could be to reinstall Debian but I have a web host and MySQL server on it and it would be a shame if it all would be lost.This is my kern.log:Aug 20 14:47:39 debian kernel: [49434.088879] UDF-fs: warning (device sr0): udf_fill_super: No partition found (2)Aug 20 14:47:39 debian kernel: [49434.091270] ISO 9660 Extensions: RRIP_1991AAug 20 15:07:30 debian kernel: [50624.369853] EXT4-fs (sda1): re-mounted. Opts: errors=remount-roAug 20 15:08:06 debian kernel: [50661.286546] EXT4-fs (sda1): re-mounted. Opts: errors=remount-roAug 20 15:09:20 debian kernel: [50734.996517] EXT4-fs (sda1): re-mounted. Opts: errors=remount-roAug 20 15:10:39 debian kernel: [50813.404245] EXT4-fs (sda1): re-mounted. Opts: errors=remount-roAug 20 15:11:34 debian kernel: [50868.840057] EXT4-fs (sda1): re-mounted. Opts: errors=remount-roAnd a part of my syslog:Aug 20 22:39:31 debian systemd[1]: phpsessionclean.service: Failed to run 'start' task: Read-only file systemAug 20 22:39:31 debian systemd[1]: Failed to start Clean php session files.Aug 20 22:39:31 debian systemd[1]: phpsessionclean.service: Failed with result 'resources'.Aug 20 22:40:01 debian CRON[22532]: (CRON) error (create tmpfile)Aug 20 22:40:01 debian CRON[22531]: (CRON) error (create tmpfile)Aug 20 22:41:01 debian CRON[22535]: (CRON) error (create tmpfile)Aug 20 22:41:01 debian CRON[22534]: (CRON) error (create tmpfile)
Debian 9 apt-get update returns error file system read only
debian