我现在只是在自学有关Web服务的知识,并试图运行Helloworld.我认为要设置所有需要运行的Web服务内容. 我正在这样运行: apt HelloImpl.java -classpath //jsr181-api.jar ,但我会收到警告(见下文).我也需要指定注释处理器吗?我认为APT命令应该生成几个文件,但这并没有发生(仅生成.class文件).谢谢您的帮助. 警告: warning: No annotation processors found but annotations present. 1 warning 代码: package server; import javax.jws.WebService; @WebService public class HelloImpl { /** * @param name * @return Say hello to the person. */ p
以下是关于 apt 的编程技术问答
我一直在尝试制作一个简单的网络服务,并一直在关注 1)我创建了此类: package server; import javax.jws.WebService; @WebService public class HelloImpl { /** * @param name * @return Say hello to the person. */ public String sayHello(String name) { return "Hello, " + name + "!"; } } 2)我跑了: apt HelloImpl.java 3)我得到了此警告: hostName[username:~/Desktop/webtest][534]% apt HelloImpl.java warning: Annotation types without processors: [javax.xml.bind.annot
我正在我的VPS服务器上运行Ubuntu 18,但是我正在尝试运行Nodejs,但是,这发生了: seth@vps186104:~$ nodejs -v Command 'nodejs' not found, but can be installed with: sudo apt install nodejs seth@vps186104:~$ sudo apt install nodejs Reading package lists... Done Building dependency tree Reading state information... Done nodejs is already the newest version (8.10.0~dfsg-2). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. seth@vps186104:~$ 它说要安装软件包以运行n
我只是无法在Ubuntu 18.04的新图像中安装Docker(在VirtualBox中,使用Vagrant). 我正在使用官方网站的说明: -ce/ubuntu/ 或 https://github.com/docker.com/docker/docker/docker-install : curl -fssl https://get.docker.com -o get-docker.sh 始终遇到相同的错误 - 哈希总和不匹配: Failed to fetch https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/amd64/docker-ce_19.03.8~3-0~ubuntu-bionic_amd64.deb Hash Sum mismatch Hashes of expected file: - SHA512:600f2d9b51024e5866a6256
我尝试创建一个使用equivs的虚拟软件包,该软件包为python-oauthlib提供了python-oauthlib>>>>的软件包.问题在于,大多数依赖性问题都解决了,除了一个具有版本要求的软件包.我的问题是:如何在Provides字段中指定版本号? 我做了以下操作: 用 创建一个控制文件 equivs-control python-oauthlib 编辑控制文件如下: Section: misc Priority: optional Standards-Version: 3.9.2 Package: python-oauthlib-dummy Version: 0.6.1 Provides: python-oauthlib Architecture: all Description: Dummy Python OAuthlib package 构建软件包: equivs-build python-oauthlib 安装软件包: su
我正在考虑安装 hylafax+ 5.5.4版,上个月在我的 debian pc. 我检查了dpkg -l | grep "hylafax",发现当前版本为5.5.3.然后我检查了apt-cache search hylafax并看到包装可用,但是我看不到任何版本号. 如何找到apt-get>? 中可用的软件包版本 解决方案 好吧,我找到了. apt-cache policy 将显示版本详细信息. 它还显示了当前已安装了哪个版本以及可以安装哪些版本. 例如,apt-cache policy hylafax+ 其他解决方案 apt-cache policy $ apt-cache policy redis-server redis-server: Installed: (none) Candidate: 2:2.8.4-2 Version table: 2:2.
现在,我在vagrantfile中有以下内容: config.vm.provision :chef_solo do |chef| chef.cookbooks_path = "cookbooks" chef.add_recipe "apt" chef.add_recipe "build-essential" chef.add_recipe "chef-redis::source" chef.add_recipe "openssl" chef.add_recipe "git" chef.add_recipe "postgresql::server" chef.add_recipe "postgresql::client" end 为了安装添加到我的repipe_list中的软件,我需要在安装其他软件之前让VM发出 apt-get Update . 我的印象是这是" apt'食谱的功能之一 - 它将运行更新的第一
尝试更新有关Debian Etch安装的一些存储库,并从运行" Apt-Get Update"中获取以下错误 W: GPG error: http://www.debian-multimedia.org etch Release: The following signatures couldn't be verified because teh public key is not available: NO_PUBKEY 07DC563D1F41B907 W: You may want to run apt-get update to correct these problems 具有讽刺意味 解决方案 我发现了几篇文章,告诉我运行多个GPG命令,但是由于两件事,它们没有解决问题.首先,我错过了系统上的Debian keyring软件包,其次我使用了无效的钥匙服务器.如果您有暂停,请尝试其他钥匙服务器! 因此,我修复的方式是: apt-get install d
从debian命令行中,执行aptitude update; aptitude upgrade后,我会得到哈希总和不匹配.以下是命令行输出.我已经尝试了aptitude clean,但这似乎无济于事.我也进行了一些Google搜索,但似乎没有任何帮助.我已经遇到了几天的不匹配错误. 任何帮助都将不胜感激. 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 dnsutils ekiga gir1.2-cogl-1.0 gir1.2-coglpango-1.0 gstreamer0.10-alsa gstreamer0.10-ffmpeg gstre
我在Ubuntu 9机器图像上使用GDB 6.8版.我想将其更新为最新的(7.8?),但我不确定如何做. 我在此处尝试按照说明进行 https://askubuntu.com/Question/529781/升级-GDB-7-7-7-7-7-8 ,但它们没有起作用. 它停在tar命令上,并说"这看起来不看起来焦油文件" 任何人可以帮忙吗? 谢谢 解决方案 这只是一个猜测,但可能是您的tar版本如此旧的情况,它不支持XZ压缩方案.您引用的链接建议下载gdb-7.8.tar.xz,您可以尝试运行unxz gdb-7.8.tar.xz,该unxz gdb-7.8.tar.xz将文件将文件解压缩到gdb-7.8.tar中,然后可以重试tar -xf gdb-7.8.tar现在应该起作用. 另外,您可以尝试下载此文件http://ftp.gnu.org/gnu/gdb/gdb-7.8.2.tar.gz,这是与您之前使用的7.8相比的7.8.2版本,因此包含一些
我试图在Ubuntu 20.04上安装Ezra-Project.当我运行安装时,它会失败并说: dpkg: dependency problems prevent configuration of ezra-project: ezra-project depends on libicu66; however: Package libicu66 is not installed. 我尝试使用 安装libicu66 sudo apt install libicu66 但它说 Package libicu66 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 'li
即使在用apt-get clean清洁后,也说包裹损坏. sudo dpkg -l | grep ^..r如[1]中提到的任何内容. $ sudo apt-get install build-essential 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 using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following
尝试安装php7.4-dev扩展名,但是我得到了 E: Unable to locate package php7.4-dev E: Couldn't find any package by glob 'php7.4-dev' E: Couldn't find any package by regex 'php7.4-dev' 当我运行apt show php时,它显示以下内容: Package: php Version: 1:7.2+60ubuntu1 Priority: optional Section: php Source: php-defaults (60ubuntu1) Origin: Ubuntu Maintainer: Ubuntu Developers Original-Maintainer: Debian PHP Maintainers
几天前,我在与更新有关 我检查了我的java8 ppa可能还有一些要做的事情,尽管这并不是阻止gnome-console启动的原因.我最近安装了一些似乎与该问题无关的软件包. 所以我开始了一个显然是python3-apt处于问题上,但我没有管理重新安装.我正在考虑使用WGET获得它并进行手册安装(在我的最新答案中提到). les paquets usivants sont danunétatincohérentà原因desérieux Problèmessubervenus lors de l'Enstallation. ilsdoiventêtreréinstallés (ainsi que tous les paquet qui endépendent)倒入pouvoir fonctionner 纠正: Python3-Apt Python 3接口到libapt-pkg 上面的错误要求我重新安装以下(以及所有依赖包装): python3-apt python
今天使用do-release-upgrade -d 从16.04升级为18.04 在升级期间,我被告知将删除某些软件包,其中包括: 删除:libperl5.22 lxc-common perl-modules-5.22 php-imagick php7.1-curl php7.2-curl python3-certbot-nginx 我可以无问题重新安装Imagick和Certbot,但是如果我尝试安装Php7.2-Curl,我会收到消息: # 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
我看到了我需要使用 安装的项目文档 sudo apt -y install python-pybind11 但是我有这样的错误: 阅读包列表...完成 建造依赖树 阅读状态信息...完成 e:无法找到python-pybind11 的软件包 我不确定python-pybind11是否是有效的软件包,我可以在哪里检查? 解决方案 使用它安装Pybind11: pip install pybind11 参考在这里. 其他解决方案 在某些系统中,您可能需要 sudo apt -y install python3-pybind11 其他解决方案 在Ubuntu 18.04 apt-get install python-pybind11 在Mac上, brew install pybind11 在Ubuntu 16.04中,您需要安装自己.一种方法如下: # Some prerequisites (bu
是的.我已经做到了.这很愚蠢. 我不知道它会带来自己的依赖关系,只想从头开始安装python 2和3(因为这个问题: https://askubuntu.com/questions/897355/how-to-change-default-idle-dele-for-python ). ) 现在,我仍然可以使用终端,检查了以下答案: /741265/apt-get-remove-python-150mb-apt-get-install-python-687kb https://askubuntu.com/questions/437644/i -Accidentaly-did-sudo-apt-get-get-remove-python 但是,在运行sudo apt-get install ubuntu-desktop后,我会得到以下错误: Setting up python-ldb (2:1.1.24-1ubuntu3) ... /var/lib/dpk
我执行sudo apt update我得到了 Reading package lists... Done E: List directory /var/lib/apt/lists/partial is missing. - Acquire (20: Not a directory) 另外,我遇到了我使用 解决的状态错误 sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status 我尝试了sudo mkdir /var/lib/apt/lists/partial,如其他几个线程中所建议的 mkdir: cannot create directory ‘/var/lib/apt/lists/partial’: Not a directory 甚至我尝试了sudo mkdir /var/lib/apt/lists/ 其他解决方案? 解决方案 答案在这里可能不合适.但是当我来到这里时,其他人也可能降落在
不久前,我在计算机上激活了Windows子系统的Linux,但并没有使用太多.现在我知道了我可以使用它的方法,这就是为什么我试图在WSL上安装GCC/++ 7并继续遇到问题. 我的想法是下载它并用手将其编译为本指南 ../gcc/configure -v --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --prefix=${HOME}/software/gcc-7.3.0/installDir --enable-checking=release --enable-languages=c,c++,fortran --disable-multilib 这导致以下错误: checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu check
当我尝试在Ubuntu 16.04中使用以下代码安装PHP5时: sudo apt-get install php5 php5-mcrypt 我有以下错误: 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 我尝试重新安装,但这无济于事. 我将15.10 Ubuntu更新为16.04