dpkg

Why can't reinstall python3.4 or python3?

时光总嘲笑我的痴心妄想 提交于 2019-12-24 06:21:19
问题 sudo apt-get install python3.4 Reading package lists... Done Building dependency tree Reading state information... Done python3.4 is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 27 not upgraded. 3 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Setting up python3-minimal (3.4.2-2) ... /var/lib/dpkg/info/python3-minimal.postinst: 5: /var/lib/dpkg/info/python3-minimal.postinst:

Redirection operator is limiting columns

夙愿已清 提交于 2019-12-24 01:18:30
问题 I am running the following command to list the packages installed on a server. $> dpkg -l This is fine but when I do this $> dpkg -l > list_of_packages_installed I only get 106 columns of data and the rest is cut off. So all the rows are there but not all the data column-wise. There must be something simple I am missing here? 回答1: The variable COLUMN is indeed responsible for this. The manpage of dpkg(8) contains under the section "ENVIRONMENT": COLUMNS Sets the number of columns dpkg should

安装kenlm依赖时报Tomcat错误

自作多情 提交于 2019-12-23 21:55:21
报错信息如下: sudo apt-get install aptitude 正在读取软件包列表... 完成 正在分析软件包的依赖关系树 正在读取状态信息... 完成 将会同时安装下列软件: aptitude-common libcwidget3v5 建议安装: apt-xapian-index aptitude-doc-en | aptitude-doc debtags tasksel libcwidget-dev 下列【新】软件包将被安装: aptitude aptitude-common libcwidget3v5 升级了 0 个软件包,新安装了 3 个软件包,要卸载 0 个软件包,有 467 个软件包未被升级。 有 1 个软件包没有被完全安装或卸载。 需要下载 2,345 kB 的归档。 解压缩后会消耗 9,865 kB 的额外空间。 您希望继续执行吗? [Y/n] y 获取:1 http://mirrors.aliyun.com/ubuntu xenial/main amd64 aptitude-common all 0.7.4-2ubuntu2 [747 kB] 获取:2 http://mirrors.aliyun.com/ubuntu xenial/main amd64 libcwidget3v5 amd64 0.5.17-4ubuntu2 [292 kB] 获取:3

Ubuntu下查看各种软件的安装和卸载

橙三吉。 提交于 2019-12-23 19:50:41
Ubuntu下查看已安装软件/卸载已安装软件 查看安装的所有软件 dpkg -l dpkg -l | less 分页显示,按上下箭头或回车查找;字母q为退出 例如: dpkg -l dove* dpkg -l | grep dove* 使用*号时,建议文件名要在4个字以上 dpkg -l | grep <完整文件名> 查看软件安装的路径,目录和文件 dpkg -L <完整文件名> dpkg -L | grep <完整文件名> 有错也可用 whereis <完整文件名>,但没测试成功 查看软件版本 aptitude show <完整文件名/文件名*> 例如:aptitude show ftp 注意:需先安装aptitude包 软件卸载 4.1、如果是从Ubuntu Software Center安装的,进入center,找到那个软件,很明显会有“卸载”的按钮; 4.2、如果是tar、gz、zip之类解压就能用,免安装的,直接删除; 4.3、如果是自己下载的deb包安装,或者通过apt-get install安装、或者通过添加ppa安装,使用sudo apt-get autoremove software-name来卸载,为了一次卸干净,可以再加上一个参数sudo apt-get autoremove --purge software-name 4.4

apt-get dpkg lock 和 debconf 问题

China☆狼群 提交于 2019-12-23 18:58:51
一: 在用sudo apt-get install 安装软件时,由于速度太慢,想换个软件源,直接关闭了终端,apt-get但进程没有结束,结果终端提示 E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? E: 无法获得锁 /var/lib/dpkg/lock – open (11: 资源暂时不可用) E: 无法锁定管理目录(/var/lib/dpkg/),是否有其他进程正占用它? 解决办法如下: 1 终端输入 ps -aux | grep apt,列出进程。找到含有apt的进程,直接sudo kill PID。解决。 2 强制解锁,命令 sudo rm /var/cache/apt/archives/lock sudo rm /var/lib/dpkg/lock 二: debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource

【MySQL】【mysql】ubuntu18.04安装mysql5.7.20(安装包)

你离开我真会死。 提交于 2019-12-21 00:36:44
环境 ubuntu18.04 mysql5.7.20的tar格式安装包 下载安装包并解压 官网:https://dev.mysql.com/downloads/mysql/ 我的百度网盘:https://pan.baidu.com/s/1sLUlYlHgKdC-4Tko3d_spQ 我的CSDN下载(推荐):https://download.csdn.net/download/Ezreal2019/12015501 下载后将安装包放入/usr/server 赋予可执行权限 sudo chmod + x mysql5 . 7.20 . tar . gz 解压: tar - xf mysql5 . 7.20 . tar . gz 解压后ls查看有如下文件: libmysqlclient20_5 . 7.10 - 1 ubuntu14 . 04 _amd64 . deb libmysqlclient - dev_5 . 7.20 - 1 ubuntu14 . 04 _amd64 . deb libmysqld - dev_5 . 7.20 - 1 ubuntu14 . 04 _amd64 . deb mysql - client_5 . 7.20 - 1 ubuntu14 . 04 _amd64 . deb mysql - common_5 . 7.20 - 1 ubuntu14 .

Bash - how to check if packages can be installed, if apt-get/dpkg is running?

妖精的绣舞 提交于 2019-12-19 21:52:57
问题 In a bash script I want to install a package. Before sanely doing so, I need to check if no other instance of apt-get or dpkg is already working. If that was the case, the apt-get would fail, because its already locked. Is it sufficient to check if /var/lib/dpkg/lock and /var/lib/apt/lists/lock exists and if both don't exist, installing is safe? 回答1: Checking lock files is insufficient and unreliable. Perhaps what you really want to do is to check whether dpkg database is locked. I do it

ubuntu制作本地源

萝らか妹 提交于 2019-12-19 04:50:09
引言 在ubuntu当中,安装应用程序我所知道的有三种方法,分别是apt-get,dpkg安装deb和make install安装源码包三种。下面针对每一种方法各举例来说明。 apt-get方法 使用apt-get install来安装应用程序算是最常见的一种安装方法了,比如我要安装build-essential这个软件,使用以下,他会帮我把所有的依赖包都一起安装了。 sudo apt-get install build-essential 执行上述命令以后,我们可以看到一下信息, The following extra packages will be installed: 表示所有需要再安装的依赖包。 sudo apt-get install build-essential [sudo] password for enadmin: Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: binutils cpp cpp-4.6 dpkg-dev fakeroot g++ g++-4.6 gcc gcc-4.6 libalgorithm-diff-perl

dpkg: How to use trigger?

最后都变了- 提交于 2019-12-18 04:34:23
问题 I have written a little cdn server that shall rebuild his pool registry if new stuff (pool-content-packages) is installed into the pool. Instead that every pool-content-package call the init.d of the cdn-server, I'd like to use triggers. Than it would restarted the server only one time at end of an installation run after all packages are installed. What have I to do to use trigger in my packages with debhelper support? 回答1: What you are looking for is dpkg-triggers. One solution with use of

ubuntu下安装与卸载软件方法

南楼画角 提交于 2019-12-16 15:06:39
本文转载自: https://www.cnblogs.com/jamywong/archive/2009/11/19/1606442.html 作者:JamyWong 转载请注明该声明。 1、通过deb包安装的情况: 安装.deb包: 代码:sudo dpkg -i package_file.deb 反安装.deb包: 代码:sudo dpkg -r package_name 2、通过apt-get安装的情况: 安装 代码:sudo apt-get install package_name 反安装 代码:sudo apt-get remove package_name 3、sudo dpkg -p package_name卸载软件包及其配置文件,但无法解决依赖关系! sudo aptitude purge pkgname卸载软件包及其配置文件与依赖关系包! 清除所有已删除包的残馀配置文件 dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P 如果报如下错误,证明你的系统中没有残留配置文件了,无须担心。 -------------------------------------------------------------------------------- dpkg: --purge needs at least one