apt

Ubuntu: OpenJDK 8 - Unable to locate package

匿名 (未验证) 提交于 2019-12-03 01:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: So I just installed Ubuntu, and this is my first time working in a Linux environment, so bear with my noobishness here. Anyway, I downloaded the Java 8 JDK directly from Oracle, but I understand there's also an OpenJDK for Java 8 as well. I have two questions. What is the difference between the Oracle version and OpenJDK. Pros/Cons? When I try and get OpenJDK 8, I can't. I'm pasting the terminal command and the error message I get here, hoping for advice. Again, very new to Linux, been on my first Linux distro ever for less than an hour here

“InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)” when updating package list

这一生的挚爱 提交于 2019-12-03 01:21:32
Here is what I see in my terminal: user@user-OptiPlex-9020:~$ sudo apt-get update Ign http://extras.ubuntu.com trusty InRelease Ign http://in.archive.ubuntu.com trusty InRelease Get:1 http://dl.google.com stable InRelease 100% [1 InRelease gpgv 1,661 B] [Connecting to 192.168.0.90 (192.168.0.90)] [WaSplitting up /var/lib/apt/lists/partial/dl.google.com_linux_chrome_deb_dists_stable_InRelease intoIgn http://dl.google.com stable InRelease E: GPG error: http://dl.google.com stable InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?) I have the required

E: Unable to locate package mongodb-org

匿名 (未验证) 提交于 2019-12-03 01:20:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to download mongodb and I am following the steps on this link . But when I get to the step: sudo apt-get install -y mongodb-org I get the following error: Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package mongodb-org //This is the error Why is this occurring and is there a work around? 回答1: I faced same issue but fix it by the changing the package file section command. The whole step that i followed was: At first try with this command: sudo apt-get install -y

Dagger2 dependency - Gradle

匿名 (未验证) 提交于 2019-12-03 01:19:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm trying to add Dagger2 to my project in Android Studio but I can't find proper dependency to paste in build.gradle. Could you help and send me the proper line? 回答1: Installing Dagger 2 on Android Studio 2 // Application build.gradle dependencies { compile 'com.google.dagger:dagger:2.4' annotationProcessor "com.google.dagger:dagger-compiler:2.4" } Maven Repositories: Find the latest versions of the above dependencies in the Maven Repository: dagger dagger-compiler Notes: Android Studio Older versions of Android Studio need

After Ubuntu 18.04 upgrade php7.2-curl cannot be installed

非 Y 不嫁゛ 提交于 2019-12-03 01:14:59
Upgraded to 18.04 from 16.04 today using do-release-upgrade -d During the upgrade I was informed that some packages would be removed, these included: Remove: libperl5.22 lxc-common perl-modules-5.22 php-imagick php7.1-curl php7.2-curl python3-certbot-nginx I could re-install imagick and certbot without issue, but if I try to install php7.2-curl I get the message: # apt install php7.2-curl -y Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are

Ruby RVM apt-get update error

匿名 (未验证) 提交于 2019-12-03 01:14:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I get following error when trying to install anything with RVM: Searching for binary rubies, this might take some time. Found remote file https://rvm.io/binaries/ubuntu/13.04/x86_64/ruby-2.1.1.tar.bz2 Checking requirements for ubuntu. Installing requirements for ubuntu. Updating system..kshitiz password required for 'apt-get --quiet --yes update': ............................ Error running 'requirements_debian_update_system ruby-2.1.1', showing last 15 lines of /home/kshitiz/.rvm/log/1400047196_ruby-2.1.1/update_system.log ++ /scripts

debian apt packages hash sum mismatch

匿名 (未验证) 提交于 2019-12-03 01:06:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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 aptdaemon aptdaemon-data avahi-daemon bind9-host

dpkg error: pycompile: not found

匿名 (未验证) 提交于 2019-12-03 01:00:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: sudo apt-get remove --purge mysql-server mysql-client mysql-common I am getting the following error as I try to remove mysql using the above command: Reading package lists... Done Building dependency tree Reading state information... Done Package 'mysql-client' is not installed, so not removed The following package was automatically installed and is no longer required: php5-mysqlnd Use 'apt-get autoremove' to remove it. The following extra packages will be installed: mysql-server-core-5.5 php5-mysqlnd python-aptdaemon python-aptdaemon

How to make Debian package install dependencies?

浪子不回头ぞ 提交于 2019-12-03 00:48:49
I want to make a simple Debian package to install a simple tool that depends on Qt4 libs. In control file I have defined that it depends on Qt4 libs however, by the time I'm testing the package it says that the dependency could not be met. Question: How can I make Debian trigger apt to install the dependencies as well? Can't find that the documentation however I know that apt-get does that. If you want to avoid creating a local APT repository, you can do: dpkg -i mypackage.deb apt-get install --fix-missing If you do want to create a local repository, you can use reprepro for this. If you

APT常用命令

匿名 (未验证) 提交于 2019-12-03 00:41:02
APT(Advanced Packaging Tool) is a set of tools for managing Debian packages, and therefore the applications installed on your Debian system. APT makes it possible to: Install applications Remove applications Keep your applications up to date and much more... APT是一个客户/服务器系统。在服务器上先复制所有DEB包(DEB是Debian软件包格式的文件扩展名),然后用APT的分析工具(genbasedir)根据每个DEB包的包头(Header)信息对所有的DEB包进行分析,并将该分析结果记录在一个文件中,这个文件称为DEB索引清单,APT服务器的DEB索引清单置于base文件夹内。一旦APT 服务器内的DEB有所变动,一定要使用genbasedir产生新的DEB索引清单。客户端在进行安装或升级时先要查询DEB索引清单,从而可以获知所有具有依赖关系的软件包,并一同下载到客户端以便安装。 当客户端需要安装、升级或删除某个软件包时,客户端计算机取得DEB索引清单压缩文件后,会将其解压置放于/var/state/apt/lists/