Score:0

do-release-upgrade 18.04 LTS to 20.04 LTS failed, file system mostly read only. Final entry in main.log: ERROR failed to inhibit gnome-session idle

ธง kz

I attempted an upgrade from 18.04 LTS to 20.04 LTS. I ran do-release-grade on a direct terminal connection; I also had a Remmina RDP session running, and an SSH console open, just in case.

The update failed with a mass of text on the terminal window; if that text is available in full in some log file, I've been unable to find it.

The filesystem is read-only at this point, despite what mount says:

/home/.ecryptfs/moshe/.Private on /home/XXXXX type ecryptfs (rw,nosuid,nodev,relatime,ecryptfs_fnek_sig=5b0b5c4987d2da07,ecryptfs_sig=78f28cddca5488c4,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_unlink_sigs)

but

: touch xxx
touch: cannot touch 'xxx': Read-only file system

I cannot ssh, scp, etc. out of the system.

The files in /var/log/dist-upgrade include main.log. The final lines are:

2021-08-17 09:09:08,281 DEBUG failed to determine user upgrading
2021-08-17 09:09:08,282 ERROR failed to inhibit gnome-session idle

The parts of apt.log I am able to see -- "less" does not work, only "cat" -- show update logs, and lspci.log contains nothing odd.

The terminal window that contained the update won't scroll back -- it's a direct console window outside the GUI.

Transcribing what I can see:

File "<frozen importlib._bootstrap_external>", line 674, in exec_module
File "<frozen importlib._bootstrap_external>", line 780, in get_code
File "<frozen importlib._bootstrap_external>", line 833, in get_data

Original exception was:
Traceback (most recent call last):
File "/tmp/ubuntu-release-upgrader-rxudi66p/focal", line 8, in <module>
File "/tmp/ubuntu-release-upgrader-rxudi66p/DistUpgradeController.py", line 238, in main
File "/tmp/ubuntu-release-upgrader-rxudi66p/DistUpgradeController.py", line 2092, in run
File "/tmp/ubuntu-release-upgrader-rxudi66p/DistUpgradeController.py", line 1263, in doDisUpgradeFetching
File "/tmp/ubuntu-release-upgrader-rxudi66p/DistUpgradeController.py", line 1547, in abort
File "/usr/lib/python3.6/shutil.py", line 245, in copy
File "/usr/lib/python3.6/shutil.py", line 121, in copyfile
OSError: [Errno 30] Read-only file system: '/etc/apt/sources.list'

My guess is, at this point, a good solid reboot would clear /tmp and remount my filesystems, at which I could try again without the distraction of any remote sessions. Rather that risk that -- and possibly wipe /tmp files that would prove useful for debugging -- I thought I'd ask here first.

Questions

  • What went wrong, and how can I avoid this problem in the future?
  • Should I write a bug report about this if a remote session turns out to be a fatal error?
  • Should I simply reboot? It not, what are the next steps?

The latter question is the most important from my perspective.

Late note: I'm not certain I can access my terminal windows any longer, and may have to reboot by default.

EDIT 1: For unknown reasons, I'd lost the ability to control any direct terminal screen, and remote SSH sessions failed. Without that, I decided to bite the bullet and reboot.

On reboot, the system came up sane in 18.04 LTS.

I'm now attempting to do the update. The software-updater graphical tool updated multiple files, then failed to complete some. An attempt to run do-release-upgrade demanded that I upgrade what I could separately, and I'm running into problems there. I will continue to update this ticket when I can.

EDIT 2: My repositories point at focal now instead of bionic. I'll need to undo this -- I'll likely add both focal and bionic repos in order to find the correct updates.

guiverc avatar
cn flag
ความคิดหลายอย่าง 18 เป็นระบบที่แตกต่างจาก 18.04 แต่ฉันคิดว่าคุณหมายถึง 18.04 LTS (18 หมายถึง *snap* เฉพาะระบบที่รองรับ 10 ปี) คำสั่งของคุณจะไม่แสดงข้อผิดพลาด/เหตุผลที่ `เมานต์' พลิกเป็น RO ข้อความหรือบันทึกแสดง คุณได้ดู? บันทึกเกี่ยวกับ dist-upgrade อาจพบได้ใน `/var/log/dist-upgrade`
Moshe Yudkowsky avatar
kz flag
ขอบคุณ. ฉันได้อัปเดตข้อความเป็น 18.04 LTS แล้ว ในข้อความของคำถาม ฉันได้รวมความคิดเห็นเกี่ยวกับสิ่งที่ฉันเห็นใน /var/log/dist-upgrade ฉันไม่เห็นอะไรที่เกี่ยวข้องกับการเมานต์ในไฟล์เหล่านั้นไม่สามารถเข้าถึงไฟล์ที่เกี่ยวข้องกับการอัปเกรดใน /tmp: ฉันต้องการการเข้าถึงรูทเพื่ออ่านไฟล์เหล่านั้น และฉันไม่สามารถรูทได้เนื่องจากปัญหา FS

โพสต์คำตอบ

คนส่วนใหญ่ไม่เข้าใจว่าการถามคำถามมากมายจะปลดล็อกการเรียนรู้และปรับปรุงความสัมพันธ์ระหว่างบุคคล ตัวอย่างเช่น ในการศึกษาของ Alison แม้ว่าผู้คนจะจำได้อย่างแม่นยำว่ามีคำถามกี่ข้อที่ถูกถามในการสนทนา แต่พวกเขาไม่เข้าใจความเชื่อมโยงระหว่างคำถามและความชอบ จากการศึกษาทั้ง 4 เรื่องที่ผู้เข้าร่วมมีส่วนร่วมในการสนทนาด้วยตนเองหรืออ่านบันทึกการสนทนาของผู้อื่น ผู้คนมักไม่ตระหนักว่าการถามคำถามจะมีอิทธิพลหรือมีอิทธิพลต่อระดับมิตรภาพระหว่างผู้สนทนา