为什么说到dpkg呢? 这是因为之前我在装gnuradio的时候,想同时装一下git,总之是想同时装两个软件,结果报了这个错误:
E: 无法获得锁 /var/lib/dpkg/lock-frontend - open (11: 资源暂时不可用)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
大致意思就是dpkg正在被占用,此时还不能装git
“dpkg ”是“Debian Packager ”的简写。为 “Debian” 专门开发的套件管理系统,方便软件的安装、更新及移除。所有源自“Debian”的“Linux ”发行版都使用 “dpkg”,例如 “Ubuntu”、“Knoppix ”等。
Debian ['dɛbɪən]
另外,网上也有童鞋提到 dpkg -L package-Name 可以显示一个包安装到系统里面的文件目录信息,可以查看软件安装的位置; dpkg -r 为 删除软件包(保留其配置信息),dpkg -P 为 删除一个包(包括配置信息),可以用于暂时删除程序以后再安装,毕竟在Linux下面配置一个软件也并非容易
系统中存在dpkg这么一个工具,会记录软件包的状态,不只是安装和未安装两种状态,会记录以下这些状态:
not-installed - The package is not installed on this system
config-files - Only the configuration files are deployed to this system
half-installed - The installation of the package has been started, but not completed
unpacked - The package is unpacked, but not configured
half-configured - The package is unpacked and configuration has started but not completed
triggers-awaited - The package awaits trigger processing by another package
triggers-pending - The package has been triggered
installed - The packaged is unpacked and configured OK
本文介绍了dpkg,它是Debian及其衍生发行版如Ubuntu的包管理工具,用于软件安装、更新和移除。在安装过程中遇到的"dpkg frontend lock"问题表明该工具正被占用。此外,文章提到了dpkg的一些实用命令,如`dpkg -L`显示包的文件目录,`dpkg -r`和`dpkg -P`分别用于删除包(保留或清除配置信息)。dpkg还能记录软件包的不同状态,包括安装、未安装、配置等。

6704

被折叠的 条评论
为什么被折叠?



