尝试在全新安装的 Ubuntu 中运行 gparted。系统未找到此程序。当我尝试安装时,系统报告说它已安装。如何解决这个问题?
g@g-Lenovo:~$ gparted
The program 'gparted' is currently not installed. You can install it by typing:
sudo apt install gparted
g@g-Lenovo:~$ sudo aptitude install gparted
[sudo] password for g:
gparted is already installed at the requested version (0.25.0-1)
gparted is already installed at the requested version (0.25.0-1)
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 130 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
答案1
这是由安装程序中的一个错误引起的,安装程序会从目标系统中删除实时环境中安装的某些软件包,但这样做只是删除文件而不是删除软件包。运行以sudo apt-get install --reinstall gparted
强制重新安装软件包,即使系统认为它已经安装。如果我没记错的话,您需要对 gparted 所依赖的 libgtkmm-2.4-1c2a 软件包执行相同操作。