简体   繁体   English

意外删除了var / lib中的一些文件

[英]Accidentaly deleted some files in var/lib

I accidentally deleted some files in var/lib. 我不小心删除了var / lib中的一些文件。 I don't know what I have deleted. 我不知道我删除了什么。 Terminal too then disappeared since I messed up with Gnome-Purge. 终于因为我搞砸了Gnome-Purge而消失了。 I then reinstalled terminal using TTY. 然后我使用TTY重新安装终端。 But then when I try to install some package, Unmet dependencies 'Try apt-fix broken install' with no package name. 但是当我尝试安装一些软件包时,Unmet依赖项'尝试apt-fix broken install'没有软件包名称。 I do not want to reinstall Ubuntu. 我不想重新安装Ubuntu。 Also I tried `sudo apt-get install -f. 我也试过`sudo apt-get install -f。 It returned: 它返回: 在此输入图像描述

I was able to find what packages are corrupt by doing sudo dpkg -C . 通过sudo dpkg -C我能找到哪些包被破坏了。 The result is: 结果是: 在此输入图像描述

Try to reinstall ubuntu-desktop metapackage: 尝试重新安装ubuntu-desktop元数据包:

sudo apt-get install –reinstall ubuntu-desktop
sudo apt-get build-dep ubuntu-desktop

This will install again all the base system and dependencies without needing to format your computer. 这将再次安装所有基本系统和依赖项,而无需格式化您的计算机。 If you're using a flavor such as Xubuntu, just replace ubuntu-desktop with the corresponding metapackage, like xubuntu-desktop, kubuntu-desktop, etc. 如果您正在使用Xubuntu之类的风格,只需将ubuntu-desktop替换为相应的元数据包,如xubuntu-desktop,kubuntu-desktop等。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法删除`/var/lib/dpkg/lock-frontend` 权限被拒绝 - cannot remove `/var/lib/dpkg/lock-frontend` permission denied dpkg:错误:无法打开软件包信息文件“/usr/local/var/lib/dpkg/status”进行读取 - dpkg: error: failed to open package info file '/usr/local/var/lib/dpkg/status' for reading Verifone VX675 不小心将组密码更改为文本 - Verifone VX675 accidentaly changed group pw to text dpkg:错误:读取包信息文件'/usr/local/var/lib/dpkg/status':是一个目录 - dpkg: error: reading package info file '/usr/local/var/lib/dpkg/status': Is a directory 从终端删除文件; 输出显示跳过的文件而不是删除的文件 - Deleting files from terminal; output displays files skipped opposed to files deleted Mac Library LaunchAgents文件夹:误删除文件,导致菜单栏每隔几秒钟返回到前台 - Mac Library LaunchAgents folder: Accidently deleted files, causing menu bar to return to foreground every few seconds 可以在Mac OS中显示一些点文件吗? - Possible to show some dot files in Mac OS? 如何从heroku下载一些文件 - How to download some files from heroku 创建新文件夹并将“ / var / www /”中存在的所有文件和文件夹复制到其中以备份所有代码文件的linux命令是什么? - What are the linux commands to create a new folder & copy all the files & folders present in '/var/www/' into it to take backup of all code files? 用“git clean -fd”意外删除了许多隐藏文件,现在我无法安装Ruby - Accidentally deleted many hidden files with “git clean -fd” and now I cannot install Ruby
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM