LibreOffice升级后触发文件对话框崩溃,回滚仍异常求助
What's Going On
You upgraded LibreOffice from 1:5.4.1-0ubuntu1.17.10.1 to 1:5.4.5-0ubuntu0.17.10.1 via sudo apt upgrade, and now it crashes every time you open or save a file (triggering the file dialog). Running the new version in terminal shows error output, but rolling back to the old version still causes crashes—though those terminal errors vanish. This is likely due to leftover configuration gunk or mismatched system dependencies that didn't get fixed with the downgrade.
Fixes to Try (In Order)
Do a Clean Reinstall of LibreOffice
Half-baked upgrades/downgrades often leave corrupted config files or partial package data. Let's wipe everything and start fresh:# Purge all LibreOffice packages and their configs sudo apt purge libreoffice* sudo apt autoremove sudo apt autoclean # Reinstall the specific version you know worked before sudo apt install libreoffice=1:5.4.1-0ubuntu1.17.10.1After this, launch LibreOffice and test the save/open dialog—this fixes most config-related issues.
Fix Broken System Dependencies
The file dialog relies on GTK (or Qt) libraries, and if those got messed up during the upgrade, LibreOffice will crash. Run these commands to repair any broken packages:sudo apt --fix-broken install sudo apt dist-upgradeIf you're using a GTK-based desktop (like GNOME, Xfce), reinstall the core GTK3 libraries to be safe:
sudo apt install --reinstall libgtk-3-0 libgtk-3-binTest with a Fresh User Profile
Your personal LibreOffice profile might have corrupted settings that survived the downgrade. Let's test with a temporary profile:# Launch LibreOffice with a brand-new test profile libreoffice -env:UserInstallation=file:///tmp/lo-test-profileIf the file dialog works here, your original profile is the problem. Back it up and reset it:
# Rename your old profile to keep a backup mv ~/.config/libreoffice ~/.config/libreoffice.bak # Launch LibreOffice to generate a clean profile libreofficeDig Into Terminal Error Logs (If You Saved Them)
Even though the downgraded version doesn't show errors now, if you still have the error output from the upgraded version, look for keywords likesegmentation fault,GTK, orfile chooser—these will point you to exactly which library or component is crashing.
Extra Tip
If none of the above works, check the full apt upgrade history to see what other packages were updated alongside LibreOffice. Sometimes updates to file management libraries (like gdk-pixbuf or libglib2.0) can break the file dialog. You can view the upgrade log with:
cat /var/log/apt/history.log | grep -A 20 "Upgrade:"
Look for any UI-related packages that were updated—you might need to downgrade those too if they're causing conflicts.
内容的提问来源于stack exchange,提问作者rlee827

