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

Xubuntu 14.04需管理员权限的应用无法启动故障求助

Hey there, let's work through this annoying issue with your Xubuntu 14.04 system—where every app that needs admin password (like GParted, Update Manager, or opening folders as root) won't launch even after entering the correct password. I've debugged similar problems before, so here are actionable steps to fix it:

1. Make sure Polkit is running correctly

Polkit is the service that handles permission requests for admin-level apps. If it's stuck or not running, that's almost certainly the culprit.

  • First, check if the polkit daemon is active: run ps aux | grep polkitd in your terminal. You should see a line with polkitd running under the polkitd user.
  • If it's not running, restart it with sudo service polkit restart (Xubuntu 14.04 uses Upstart, so this command works instead of systemctl).
  • If restarting doesn't help, reinstall the polkit package to fix any corrupted files: sudo apt-get install --reinstall policykit-1
2. Reset gksudo configuration

gksudo is the tool that handles graphical admin prompts, and sometimes its lock file gets corrupted.

  • First, try launching the app directly from a root terminal to see if it works: run sudo -i to get a root shell, then type gparted (or the app you're trying to open). If it launches here, the issue is with gksudo's configuration.
  • Delete the gksudo lock file: rm ~/.gksu.lock, then restart your system and test again.
3. Fix critical file/directory permissions

Incorrect permissions on system directories or user files can break permission validation:

  • Check the /tmp directory permissions (it needs to be world-writable with sticky bit): run ls -ld /tmp. The output should be drwxrwxrwt. If not, fix it with sudo chmod 1777 /tmp.
  • Verify your ~/.Xauthority file (this handles X session permissions): run ls -l ~/.Xauthority. It should be owned by your user (not root). If it's owned by root, fix it with sudo chown $USER:$USER ~/.Xauthority.
4. Test with a new user account

Sometimes corrupted user configuration files cause this issue. Let's rule that out:

  • Create a new admin user: sudo adduser newadmin and follow the prompts, then add them to the sudo group: sudo usermod -aG sudo newadmin.
  • Log out and log back in as newadmin, then try launching an admin app. If it works, your original user's config files are damaged. You can either migrate your data to the new user or troubleshoot individual config files in your original home directory.
5. Check for full disk space

A full root partition can prevent apps from launching even if they have permission.

  • Run df -h to check disk usage. Look at the / partition—if it's 100% full, you need to free up space:
    • Delete old package cache: sudo apt-get clean
    • Remove unused packages: sudo apt-get autoremove --purge
    • Delete old log files in /var/log/ (be careful not to delete active logs!)

If none of these steps work, share any error messages you see when running the app from a root terminal—those will help narrow down the issue further.

内容的提问来源于stack exchange,提问作者qwerty193

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.05.19 10:12:12