此博客中的热门博文
adjust the mouse scroll speed in Ubuntu?
http://www.nicknorton.net/?q=node/10 sudo apt-get install imwheel touch a .sh file with content: #!/bin/bash # Version 0.1 Tuesday, 07 May 2013 # Comments and complaints http://www.nicknorton.net # GUI for mouse wheel speed using imwheel in Gnome # imwheel needs to be installed for this script to work # sudo apt-get install imwheel # Pretty much hard wired to only use a mouse with # left, right and wheel in the middle. # If you have a mouse with complications or special needs, # use the command xev to find what your wheel does. # ### see if imwheel config exists, if not create it ### if [ ! -f ~/.imwheelrc ] then cat >~/.imwheelrc<<EOF ".*" None, Up, Button4, 1 None, Down, Button5, 1 Control_L, Up, Control_L|Button4 Control_L, Down, Control_L|Button5 Shift_L, Up, Shift_L|Button4 Shift_L, Down, Shift_L|Button5 EOF fi #############################...
dpkg: 另外一个进程已经为状态数据库加了锁
http://blog.csdn.net/qq_33160271/article/details/73800477 现象 执行sudo apt-get install XXX时会出现: E:无法获得锁/ var /lip/dpkg/lock - open(11:资源暂时不可用) E:无法锁定管理目录(/ var /lib/dpkg/),是否有其他进程正占用它? 错误,是因为ubuntu一次只能运行一个apt-get,也就是说Ubuntu不能安装多个app,只能一个一个来。 分析 是不是正在安装其它软件?包括下面几种情况之一 双击了deb包,且正在安装中 打开了新力得 打开了Ubuntu软件中心 某处执行了apt-get命令 某处执行了aptitude命令 某处执行了dpkg命令 是不是正在更新系统? 是不是正在更新系统? 某处执行了apt-get update命令 运行了更新管理器并且现在处于 应用更新 进度。 上述某一执行过程中卡死了,相应进程也没结束掉。 解决方案 如果是以上分析的前两种情况,最好是等待操作完成。 如果是第三种情况,可以选择以下两个解决方案 可以重启系统; 执行sudo rm /var/lib/dpkg/lock
评论
发表评论