apt-get

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

Error with “sudo apt-get”, dictionnary-commons since update to Ubuntu 14.04

﹥>﹥吖頭↗ 提交于 2019-12-23 15:17:35
问题 You can see below the error I encounter. I did search on Google if the question has already been asked (and answered) but nothing works for me. I can't do sudo apt-get install ... Thank you in advance if someone can help me with this situation. Regards, David david@09:25:47 ~$sudo apt-get upgrade [sudo] password for david: Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not

在Debian上安装WORDPRESS环境和WORDPRESS

回眸只為那壹抹淺笑 提交于 2019-12-23 11:17:41
1 更新系统 apt-get update && apt-get upgrade 2 安装配置APACHE apt-get install apache2 nano /etc/apache2/apache2.conf KeepAlive Off a2dismod mpm_event a2enmod mpm_prefork systemctl restart apache2 3 安装配置MYSQL apt-get install mysql-server mysql_secure_installation 4 安装配置PHP apt-get install php5 php-pear mkdir /var/log/php chown www-data /var/log/php apt-get install php5-mysql systemctl restart apache2 5 安装PHPMYADMIN apt-get install phpmyadmin 6 因为自己在后台在线安装插件和主题的时候总提示过需要建立ftp连接,最后的解决办法还是权限设置问题 chmod 755 /var/www/wordpress/wp-content/ chown -R www-data /var/www/wordpress 来源: https://www.cnblogs.com/spkljl

ImportError: No module named zbar on Linux Mint

倾然丶 夕夏残阳落幕 提交于 2019-12-23 11:12:13
问题 I want to use zbar with python on Linux Mint. I tried apt-get zbar and I didn't find any packages. So I tried to use apt-get install zbar-tools and that seemed to work. I tried to run basic example code that starts with: #!/usr/bin/python from sys import argv import zbar import Image However, that code crashes with the error: Traceback (most recent call last): File "./p4.py", line 3, in <module> import zbar ImportError: No module named zbar Normally I would expect to find some file named zbar

ImportError: No module named zbar on Linux Mint

爷,独闯天下 提交于 2019-12-23 11:12:02
问题 I want to use zbar with python on Linux Mint. I tried apt-get zbar and I didn't find any packages. So I tried to use apt-get install zbar-tools and that seemed to work. I tried to run basic example code that starts with: #!/usr/bin/python from sys import argv import zbar import Image However, that code crashes with the error: Traceback (most recent call last): File "./p4.py", line 3, in <module> import zbar ImportError: No module named zbar Normally I would expect to find some file named zbar

Ubuntu14.04配置Mono+Jexus

为君一笑 提交于 2019-12-23 05:32:40
  总所周知,ASP.NET是微软公司的一项技术,是一个网站服务端开发的一种技术,它可以在通过HTTP请求文档时再在Web服务器上动态创建它们,就是所谓动态网站开发,它依赖运行于 IIS 之中的程序 。但是从成本上面来讲,Linux(开源)系统的花费比Windows Server系列少得多。因此,更多的企业愿意采用Linux作为服务器系统。由于ASP.NET依赖于IIS,导致有部分创业型公司在技术选型上会将ASP.NET筛选掉。我们伟大的程序猿,为了能让ASP.NET运行在Linux系统上,Mono就应运而生了,加上Jexus服务器,使得ASP.NET跨平台部署成为现实。   安装配置Mono+Jexus,当前采用的Linux版本是Ubuntu14.04 64位。   一、更新系统       使用指令:sudo apt-get update            sudo apt-get upgrade   二、建立编译环境       使用指令:sudo apt-get install build-essential automake autoconf bison gettext libtool libglib2.0-dev libfreetype6-dev libfontconfig-dev   三、安装依赖库       使用指令:sudo apt-get install

Install Java 5 in Ubuntu 12.04

杀马特。学长 韩版系。学妹 提交于 2019-12-23 04:51:32
问题 I need to install Java 5 in my Ubuntu 12.04. Can't do it by apt-get anymore. Downloaded the .bin from http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase5-419410.html and installed it. Still, the option for jdk 1.5 doesn't appear after I do: sudo update-alternatives --config java What am I doing wrong? How should I do it? Thanks. 回答1: Looks like you got it wrong. For using update-alternatives you have to inform it that you got a new java version: sudo

nvidia gtx1050在kali linux系统下安装显卡驱动,且可以使用x-setting切换显卡

£可爱£侵袭症+ 提交于 2019-12-23 03:02:44
转自:https://www.zzhsec.com/255.html 1.更换源【使用中科大或者官方源都可以】 下面使用中科大的源 root@Andy:/home/dnt# vi /etc/apt/sources.list #中科大 deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib deb-src http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib 2.添加完毕后执行下面的更新指令,进行系统或者工具的更新 root@Andy:/home/dnt# apt-get update && apt-get upgrade && apt-get dist-upgrade 这里解释一下: apt-get update //刷新源,获得最近的软件包的列表 apt-get upgrade //更新系统,系统将现有的Package升级,如果有相依性的问题,而此相依性需要安装其它新的Package或影响到其它Package的相依性时,此Package就不会被升级,会保留下来. apt-get dist-upgrade //可以聪明的解决相依性的问题,如果有相依性问题,需要安装/移除新的Package,就会试着去安装/移除它.

[置顶] Ubuntu 12.04中文输入法的安装

≯℡__Kan透↙ 提交于 2019-12-23 02:02:46
Ubuntu 12.04中文输入法的安装 Ubuntu上的输入法主要有小小输入平台(支持拼音/二笔/五笔等),Fcitx,Ibus,Scim等。其中Scim和Ibus是输入法框架。 在Ubuntu的中文 系统 中自带了中文输入法,通过Ctrl+Space可切换中英文输入法。这里我们主要说下Ubuntu英文系统中,中文输入法的安装。 安装输入法的步骤: 第一步,是安装语言包。我们选择 SystemSettings-->Language Support-->Install/Remove Languages ,将弹出以下窗口: 输入密码后,系统会安装简体中文语言包。 第二步,安装IBus框架,在终端输入以下命令: sudo apt-get install ibusibus-clutter ibus-gtk ibus-gtk3 ibus-qt4 启动IBus框架,在终端输入: im-switch -s ibus 安装完IBus框架后注销系统,保证更改立即生效。 第三步:安装拼音引擎 有下面几种常用选择: IBus拼音:sudo apt-get install ibus-pinyin IBUS五笔:sudo apt-get install ibus-table-wubi 谷歌拼音输入法:sudo apt-getinstall ibus-googlepinyin Sun拼音输入法:sudo

turtlebot+gazebo仿真

ε祈祈猫儿з 提交于 2019-12-22 18:27:46
gazebo rviz安装: sudo apt - get install ros - kinetic - rviz Gazebo安装: sudo apt - get install ros - kinetic - gazebo - ros - pkgs ros - kinetic - gazebo - ros - control 安装turtlebot相关包 sudo apt - get install ros - kinetic - turtlebot - * 可能出现的错误: 错误:1 http://mirrors.aliyun.com/ubuntu xenial-security/main amd64 linux-headers-generic amd64 4.4.0.169.177 404 Not Found [IP: 121.194.7.5 80] 错误:1 http://mirrors.aliyun.com/ubuntu xenial-security/main amd64 linux-headers-generic amd64 4.4.0.169.177 404 Not Found [IP: 121.194.7.5 80] E: 下载 http://mirrors.aliyun.com/ubuntu/pool/main/l/linux-meta/linux