Debian 9 apt-getアップデートはエラーファイルシステムを読み取り専用で返します。

Debian 9 apt-getアップデートはエラーファイルシステムを読み取り専用で返します。

解決策:数時間放置したが、突然再び機能しました。なぜか分からない。

VMware Toolsディスクのインストールと取り外し後に問題が発生しましたが、ハードドライブにまだ空き容量が残っているため問題ありませんでした。実行apt-get update(またはファイルシステムの書き込みに関連するすべてのaptコマンド)は、次のエラーを返します。

Ign:1 http://ftp.se.debian.org/debian stretch InRelease
Bra:3 http://ftp.se.debian.org/debian stretch Release
Fel:4 http://ftp.se.debian.org/debian stretch Release.gpg
  Couldn't create temporary file /tmp/apt.conf.e9QnPU for passing config to apt-key
Läs:2 http://ftp.se.debian.org/debian stretch-updates InRelease [88,5 kB]
Läs: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-key
Fel:5 http://security.debian.org/debian-security stretch/updates InRelease
  Couldn't create temporary file /tmp/apt.conf.1eqo60 for passing config to apt-key
Hämtade 151 kB på 0s (608 kB/s)
Läser 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-key
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-updates InRelease: Couldn't create temporary file /tmp/apt.conf.ybseOZ for passing config to apt-key
W: 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-key
W: Misslyckades med att hämta http://security.debian.org/debian-security/dists/stretch/updates/InRelease  Couldn't create temporary file /tmp/apt.conf.1eqo60 for passing config to apt-key
W: Misslyckades med att hämta http://ftp.se.debian.org/debian/dists/stretch-updates/InRelease  Couldn't create temporary file /tmp/apt.conf.ybseOZ for passing config to apt-key
W: Misslyckades med att hämta http://ftp.se.debian.org/debian/dists/stretch/Release.gpg  Couldn't create temporary file /tmp/apt.conf.e9QnPU for passing config to apt-key
W: Vissa indexfiler kunde inte hämtas. De har ignorerats eller så har de gamla använts istället.
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 läsbart)
E: Paketlistan eller statusfilen kunde inte tolkas eller öppnas.

実行しようとしましたが、e2fsck -f /dev/sda2システムがすでにインストールされているというエラーが返されました。だから、もう成功せずに読み書きでマウントしようとしました。

私はこの問題に対する解決策がDebianを再インストールすることだと思いましたが、そこにはWebホストとMySQLサーバーがあり、すべてを失うと残念です。

これは私のものです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_1991A
Aug 20 15:07:30 debian kernel: [50624.369853] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
Aug 20 15:08:06 debian kernel: [50661.286546] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
Aug 20 15:09:20 debian kernel: [50734.996517] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
Aug 20 15:10:39 debian kernel: [50813.404245] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
Aug 20 15:11:34 debian kernel: [50868.840057] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro

私のシステムログの一部:

Aug 20 22:39:31 debian systemd[1]: phpsessionclean.service: Failed to run 'start' task: Read-only file system
Aug 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)

ベストアンサー1

おすすめ記事