apt

Ubuntu18.04安装rabbitvcs svn图形化客户端和简单实用

这一生的挚爱 提交于 2019-11-27 02:21:28
1.1 自带source源里面查找rabbitvcs信息 sudo apt search rabbitvcs 1.2 安装rabbitvcs sudo apt install rabbitvcs-cli rabbitvcs-core rabbitvcs-gedit rabbitvcs-nautilus 1.3 rabbitvcs简单使用 (1)新建文件夹,命名为svn (2)cd进入svn文件夹,右击就可以使用rabbitcvs客户端工具 来源: https://www.cnblogs.com/Wolf-Dreams/p/11337982.html

debian apt packages hash sum mismatch

吃可爱长大的小学妹 提交于 2019-11-27 00:35:03
问题 From the Debian command line, I'm getting a hash sum mismatch after executing aptitude update; aptitude upgrade . Below is the command line output. I've tried an aptitude clean , but this does not seem to help. I've also done a few google searches, but nothing seems to help. I've been getting the mismatch error for a few days. Any help is appreciated. Resolving dependencies... open: 405; closed: 880; defer: 58; conflict: 78. The following packages will be upgraded: apache2.2-bin apt-utils

Installing SciPy and NumPy using pip

て烟熏妆下的殇ゞ 提交于 2019-11-26 23:54:55
问题 I'm trying to create required libraries in a package I'm distributing. It requires both the SciPy and NumPy libraries. While developing, I installed both using apt-get install scipy which installed SciPy 0.9.0 and NumPy 1.5.1, and it worked fine. I would like to do the same using pip install - in order to be able to specify dependencies in a setup.py of my own package. The problem is, when I try: pip install 'numpy==1.5.1' it works fine. But then pip install 'scipy==0.9.0' fails miserably,

Java 6 annotation processing configuration with Ant

浪子不回头ぞ 提交于 2019-11-26 22:57:45
问题 I have a custom annotation and it's processor & processorFactory. How do I configure my Ant build file such that: The annotation processor is applied on annotated classes and generates source files inside "gen" folder The generated source files(from annotation processing) could be used by other source files in project. 回答1: This is not pretty, but it is what I do. (Sources javac ant task javac man page) Using the compilerarg attribute I can pass in the annotation processing related arguments

Package php5 have no installation candidate (Ubuntu 16.04)

别来无恙 提交于 2019-11-26 22:37:53
问题 When i try to install php5 in Ubuntu 16.04 by using following code: sudo apt-get install php5 php5-mcrypt I get following error: Reading package lists... Done Building dependency tree Reading state information... Done Package php5 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'php5' has no installation candidate I have tried reinstalling but it does not help. All this

ubuntu18.04显卡驱动安装

不羁岁月 提交于 2019-11-26 19:31:45
最近又重装系统 了。。 最近便的N卡驱动安装:一般直接进入系统设置里的软件与更新,查看是否有对应的英伟达的显卡驱动,如果没有就添加ppa源再进去就有了 添加ppa源的命令为: sudo add-apt-repository ppa:xorg-edgers/ppa #添加ppa源 sudo add-apt-repository ppa:graphics-drivers/ppa #添加ppa源 sudo apt-get update #更新apt-get 添加完有驱动之后,直接点击应用更改即可 参考链接: https://www.cnblogs.com/luofeel/p/8654964.html 来源: https://blog.csdn.net/j879159541/article/details/99062000

寻找最快的debian源

微笑、不失礼 提交于 2019-11-26 18:16:41
ubuntu和debian都有很多的源和镜像,也有不少的国内镜像。一些爱好者为了寻找镜像已经自己“憋”出来了一些pl脚本用于寻找最快的镜像。实际上debian的爱好者早准备了更厉害的武器等你来用,就是apt-spy(是间谍还是小偷?哈哈) 切记先备份你机器里的源列表。误区:通常大家都在交流使用国内的哪个源速度比较快,实际上很多国外源的访问速度是国内的很多倍。记得曾经用过国外某大 学的源,速度是200k以上。日本的部分源可以达到500k以上。最近发现台湾的主镜像在我这里下载速度居然是1084k,达到1M每秒。不忙的时候,试 试看,如果时间够多,可以考虑不限定为亚洲,这样有可能找到更快的镜像源。 转自官方的一部分说明: `apt-spy'会根据站点回应时间和带宽自动创建`sources.list'。 #sudo apt-get install apt-spy #sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak //backup #man apt-spy //获取详细的使用方法 #sudo apt-spy update //更新您的镜像列表文件 /var/lib/apt-spy/mirrors.txt #sudo apt-spy -d testing -a Asia //在亚洲区寻找速度最快的testing版镜像,并生成

Cobbler+preseed自动化安装Ubuntu18/19系统

*爱你&永不变心* 提交于 2019-11-26 18:11:13
说明: #Cobbler 部署不在详细说明 # Ubuntu版本: 18.04.3 及19.10 # 测试机器: kvm 虚拟机 # 测试ip:192.168.3.63 #使用vnc 进行连接操作 # cobbler 服务器IP 192.168.2.56 请修改成自己的cobbler服务器地址 cobbler distro 添加Ubuntu 最新系统支持 cp /var/lib/cobbler/distro_signatures.json /var/lib/cobbler/distro_signatures.json.bak vi /var/lib/cobbler/distro_signatures.json "bionic": { "signatures":["dists", ".disk"], "version_file":"Release|mini-info", "version_file_regex":"Codename: bionic|Ubuntu 18.04", "kernel_arch":"linux-headers-(.*)\\.deb", "kernel_arch_regex":null, "supported_arches":["i386","amd64"], "supported_repo_breeds":["apt"], "kernel_file":

ubuntu系统使用碰到的问题

邮差的信 提交于 2019-11-26 17:50:11
新装的ubuntu系统没有自带的ssh服务 用sudo apt-get install 安装时,出现以下的情况 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? 问题原因:主要是因为apt还在运行,或被其他程序占用。 解决方案:杀死所有的apt进程及删除所有锁定文件。 1:查找所有apt相关的进程,并用命令杀死。 root@root-Lenovo-G405:~$ ps afx|grep apt 3284 pts/0 S+ 0:00 \_ grep --color=auto apt 2869 ? Ss 0:00 /bin/sh /usr/lib/apt/apt.systemd.daily install 2873 ? S 0:00 \_ /bin/sh /usr/lib/apt/apt.systemd.daily lock_is_held install root@root-Lenovo-G405:~$ sudo kill -9 2873 root@root-Lenovo

Generating JPA2 Metamodel from a Gradle build script

北城余情 提交于 2019-11-26 17:31:44
问题 I'm trying to set up a Gradle build script for a new project. That project will use JPA 2 along with Querydsl. On the following page of Querydsl's reference documentation, they explain how to set up their JPAAnnotationProcessor (apt) for Maven and Ant. I would like to do the same with Gradle, but I don't know how and my beloved friend did not help me much on this one. I need to find a way to invoke Javac (preferably without any additional dependencies) with arguments to be able to specify the