You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

LibreOffice升级后触发文件对话框崩溃,回滚仍异常求助

LibreOffice Crashes on File Dialog After Upgrade & Downgrade (Ubuntu 17.10)

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.1
    

    After 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-upgrade
    

    If 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-bin
    
  • Test 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-profile
    

    If 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
    libreoffice
    
  • Dig 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 like segmentation fault, GTK, or file 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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 10:01:38