apt

Ubuntu系统apt-get问题解决

拟墨画扇 提交于 2019-12-26 04:46:37
在Ubuntu终端输入sudo apt-get update时,出现: E: 无法获得锁 /var/lib/apt/lists/lock - open (11 资源临时不可用) E: 无法对目录 /var/lib/apt/lists/ 加锁 原因: 问题的原因在于其它的程序如系统的自动更新、新立得等正在使用apt-get进程,所以解决方法也就是将这一进程关闭。 解决方法: 1.执行 sudo dpkg --configure -a 2.执行sudo rm /var/lib/apt/lists/lock 3.执行ps -e | grep apt, 查找出正在进行中的apt进程。 然后使用sudo killall杀死进程。 来源: https://www.cnblogs.com/imlinshen/p/9413568.html

Trouble building J2V8 on Ubuntu

為{幸葍}努か 提交于 2019-12-25 19:12:24
问题 I'm trying to build J2V8 on Ubuntu 16.04 but I keep getting errors. I'm running the install script provided on Github but I keep getting this error: (edited for brevity) make[1]: Leaving directory '/home/andrew/REUIOT/J2V8/node/out' ln -fs out/Release/node node cp: cannot stat '/data/jenkins/node': No such file or directory com_eclipsesource_v8_V8Impl.cpp:11:17: fatal error: jni.h: No such file or directory compilation terminated. [INFO] Scanning for projects... [INFO] BUILD FAILURE----------

Trouble building J2V8 on Ubuntu

允我心安 提交于 2019-12-25 19:10:10
问题 I'm trying to build J2V8 on Ubuntu 16.04 but I keep getting errors. I'm running the install script provided on Github but I keep getting this error: (edited for brevity) make[1]: Leaving directory '/home/andrew/REUIOT/J2V8/node/out' ln -fs out/Release/node node cp: cannot stat '/data/jenkins/node': No such file or directory com_eclipsesource_v8_V8Impl.cpp:11:17: fatal error: jni.h: No such file or directory compilation terminated. [INFO] Scanning for projects... [INFO] BUILD FAILURE----------

Need to install 2 dependencies for PHP 7 and PHPMYADMIN Nginx/Ubuntu

廉价感情. 提交于 2019-12-25 11:52:32
问题 I've done a ton of searching including here and even after following the suggestions I'm still get the following error. The following packages have unmet dependencies: phpmyadmin : Depends: php-gettext but it is not going to be installed Depends: php-seclib but it is not going to be installed Any suggestions of how to add php-gettext and php-seclib to PHP7? Screencapture of error 回答1: This isn't a problem with PHP7 or any of the other software you're trying to install, but rather appears to

ubuntu16.04和18.04更换国内源

感情迁移 提交于 2019-12-25 10:09:20
ubuntu16.04和18.04更换国内源 写在前面 :安装好ubuntu双系统后,默认的软件更新源是国外的,在国内使用速度很慢,用"apt install xxx"安装软件时可能出现"网络不可达"、"你的网络需要认证吗"、"无法定位软件包"等错误,所以我们需要更换成国内的源,这样才能正常安装和更新软件。 一、ubuntu16.04更换国内源 1.备份原始源文件source.list 桌面打开终端,执行命令: sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak 2.修改源文件source.list (1)终端执行命令: sudo chmod 777 /etc/apt/source.list 更改文件权限使其可编辑; (2)执行命令: sudo gedit /etc/apt/source.list 打开文件进行编辑; (3)删除原来的文件内容,复制下面的任意一个到其中并保存(常用的是阿里源和清华源,推荐阿里源);   阿里源: deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted

Jetson Nano + TensorFlow2.0

无人久伴 提交于 2019-12-25 00:06:22
置顶,懒得看具体细节的同学可以直接用 我的GitHub安装脚本 进行环境配置 1 环境配置 1.1 工作环境 自带 python3.6 + python3.6-dev + TensorFlow2.0 + TF2.0相关包 1.2 其他美化 zsh + oh_my_zsh 美化终端 ; SpaceVim 加强vim 2 常见问题 2.1 APT 包找不到 建议使用 中科大 源, 而非 清华 源,因为清华源对 Ubuntu 和 Ros 更新速度较慢。 (如本次我就没有在清华源找到 python3.6-dev ) 2.2 TF 编译附带包失败 Nvidia 官方 TF for JetPack 讲的问题比较清楚,但缺少了安装 python3.6-dev 。 缺少dev会导致cython在编译包时失败并提示 unable to find pgen, not compiling formal grammar. 这是一个非常有误导性的错误,我尝试安装了对应版本的pgen,但仍然报错;直到在StackOverFlow 上找到一个相似的问题,安装dev后解决 3 代码 #!/bin/bash echo -e "\033[1;31m Install basic env\033[0m" echo -e "\033[1;32m Changing APT.Sources...\033[0m" sleep 2

Upgrade Python 3.2 to Python 3.4 on linux

狂风中的少年 提交于 2019-12-24 13:12:09
问题 I have Python 3.2 installed by default on my Raspbian Linux, but I want Python 3.4 ( time.perf_counter , yield from , etc.). Installing Python 3.4 via apt-get is no problem, but when i type python3 in my shell I still get Python 3.2 (since /usr/bin/python3 still links to it). Should I change the Symlink, or is there a better was to do this? 回答1: You must not change the symlink as there might be Debian utility scripts that depend on the python3 being Python 3.2 or having a particular library

Apt-get can't install anything due to broken dependencies

岁酱吖の 提交于 2019-12-24 12:09:59
问题 Whenever I run apt-get install for any package I get this error ➜ ~ sudo apt-get install clang-5.0 Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: gcc-7-multilib : Depends: libc6-dev-i386 (>= 2.11) but it is not going to be installed libc6-dev-x32 : Depends: libc6-dev-i386 (= 2.25-2) but it is not going to be installed E: Unmet

Classes generated by QueryDSL/APT and static imports

[亡魂溺海] 提交于 2019-12-24 11:54:08
问题 Apparently I can't use classes generated with APT in unit tests that use static imports. (Maven sample project can be downloaded here) If the following sample class import com.mysema.query.jpa.impl.JPAQuery; public class UserStore { public void something() { new JPAQuery(null).from(QUser.user).list(QUser.user.login); } } is changed to import static something.QUser.user; import com.mysema.query.jpa.impl.JPAQuery; public class UserStore { public void something() { new JPAQuery(null).from(user)

Debian repository on Bintray multiple errors and unexpected behavior

社会主义新天地 提交于 2019-12-24 08:41:17
问题 I'm new to debian uploading, so I'm willing to believe I'm just doing something wrong. However, I had it working "as expected", but now am experiencing "strange behavior" and some errors when uploading/downloading. I spent a whole day and I think I've narrowed down some of the symptoms: NOTE: All my repositories are created with the Automatic Layout. I was wondering if FIRST The repo below was working normally last week, but this week the "Packages" file for i386 is no longer getting updated