我正在尝试在 Ubuntu 12.04 上安装 PG 9.3
---- Begin output of apt-get -q -y install postgresql-client-9.3=9.3~beta1-1.pgdg12.4+2 ----
STDOUT: Reading package lists...
Building dependency tree...
Reading state information...
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 information may help to resolve the situation:
The following packages have unmet dependencies: …Run Code Online (Sandbox Code Playgroud) 我只是花了一个小时试图解决freeCAD从他们稍微过时的Wiki构建的依赖项。
有没有办法让我装在最后一个小时或一天包apt-get或aptitude?
我的第一次尝试是ls -t /var/apt/cache/archive列出带有奇怪日期的包。例如,我确定刚刚安装的一个python2.7-dev,被列为“2014 年 3 月 17 日”。今天唯一列出的是我今天早上做的一些安全更新。那里有从 2006 年开始标记的目录。很久以前我什至没有安装那个。
我也不能使用命令行历史记录,因为我混合使用了 apt-get install 和 aptitude。我也有几个终端,一段时间后历史变得很糟糕。
编辑:
@jmonrio 指出了一个很好的答案,但是当我只安装了一些软件包时,这给了我大量的软件包。它与我要求安装的内容与作为依赖链一部分安装的内容没有区别。
我有希望获得该历史记录的最小安装线吗?即没有自动包含的。
我看到今天很多人都-y在使用标志,apt install -y但是当我这样做时,man install没有-y描述标志。
我错过了什么吗?
我刚刚安装了 Ubuntu 20.04,在尝试安装 pip 时遇到了问题。在我运行 18.04 的旧机器上,该命令运行良好并安装了该软件包。但是,在 20.04 上安装它时,我遇到了这个问题:
toffee@theia:~$ sudo apt-get install python-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python-pip
Run Code Online (Sandbox Code Playgroud)
我添加了 Universe 存储库,我进行了无数次重启、更新和升级。有什么办法可以解决这个问题吗?
我在使用 snap 安装 docker 时遇到了问题,然后我转移到了 apt。这是在生产服务器上。为了减少停机时间,我执行了以下操作:
/snap/bin已经从...删除PATHsudo snap stop docker使用和禁用 docker 的 snap 功能sudo snap remove docker一切都很好。第二天,我尝试重新启动用于监控的容器,但运行时出现以下错误sudo docker ps -a:
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Run Code Online (Sandbox Code Playgroud)
守护进程正在运行:
root 42709 0.2 0.3 2344140 54276 ? Ssl Sep07 5:30 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
root 42868 0.0 0.0 1813868 5944 ? Sl Sep07 0:16 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 8072 -container-ip 172.19.0.3 …Run Code Online (Sandbox Code Playgroud) 我在 Ubuntu 上安装INetSim并在运行此命令以安装程序的签名密钥时:
sudo wget -O - http://www.inetsim.org/inetsim.org-archive-signing-key.asc | apt-key add -
Run Code Online (Sandbox Code Playgroud)
我收到消息:
wget: missing URL
Usage: wget [OPTION]... [URL]...
Try `wget --help' for more options.
Run Code Online (Sandbox Code Playgroud)
为什么我收到这个错误?
在过去的一个月(可能更多)中,我注意到我的笔记本电脑(运行 Windows 10)经常变得几乎无法使用,特别是在很多天没有打开它之后。
我注意到任务管理器中的磁盘使用率在很长一段时间内处于 100%,但这很荒谬,因为即使是所有进程的总和 [我可以看到...] 也只能接近 5-10% 左右慷慨的情况下。
这是一台开发机,拥有8GB RAM,i7处理器,空间充足。除了 MS 默认程序之外,几乎没有启动程序(即使在那里,我也从启动列表中剔除了大部分非必需程序)。我还逐步禁用了 BITS、Superfetch 等服务,但没有看到明显的效果。
更可疑的是它发生的模式——在计算机物理断开连接和关闭多天后启动时问题最严重。启动时间约为 3-5 分钟 (!),之后磁盘以 100% 使用率运行几分钟,然后无缘无故地突然下降到 1-5% 左右。所有这一切都没有显示任何接近完全磁盘使用的进程。
经过大约一个月的调查后,我开始怀疑涉及恶意软件,特别是因为任务管理器中的差异,但也因为问题如何突然自行纠正。我还应该注意到,计算机运行 AVG 免费版,并且计算机和反 rootkit 的扫描结果都是干净的。话虽这么说,我想探究这可能是恶意软件连接和更新自身的可能性,或者更糟糕的是,窃取数据[或者更糟糕的是,咀嚼我的磁盘来加密我的文件,同时告诉我一切都好]?
目前,我没有观察到支持渗透理论的不规则网络流量,但是也可以使用流氓驱动程序向任务管理器/wireshark隐藏这一点。
我有很多问题:
首先,我安装 npm
sudo apt-get install -y npm
Run Code Online (Sandbox Code Playgroud)
其中安装了 npm 版本 3.5.2。然后我尝试将其更新到最新版本,但失败了。无法为此找到合适的解决方案。
sudo npm install npm@latest -g
? ?????????????????????????????????????????????????????????????????????????????
WARN engine npm@7.5.2: wanted: {"node":">=10"} (current: {"node":"8.10.0","npm":"3.5.2"})
WARN engine npm@7.5.2: wanted: {"node":">=10"} (current: {"node":"8.10.0","npm":/usr/local/lib
??? (empty)
npm ERR! Linux 4.15.0-135-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "npm@latest" "-g"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! path /usr/local/lib/node_modules/.staging/@npmcli/ci-detect-c7bf9552
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename …Run Code Online (Sandbox Code Playgroud) 我正在遵循将 USB 设备连接到 WSL2的官方指南,但我无法安装linux-tools-5.4.0-77-generic。我正在执行该$ sudo apt install linux-tools-5.4.0-77-generic命令,但它给了我下一个错误:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package linux-tools-5.4.0-77-generic
E: Couldn't find any package by glob 'linux-tools-5.4.0-77-generic'
Run Code Online (Sandbox Code Playgroud)
我试过了:
请关注下一个 github 问题以获取有关我的 WSL 环境的更多详细信息。
提前致谢,我仍在学习 WSL。
我无法在 Windows 10 上的 WSL 上运行 sudo apt-get update,这是转储:
gyuun@LAPTOP-PR:/mnt/c/Windows/system32$ sudo apt-get update
Err:1 http://archive.ubuntu.com/ubuntu focal InRelease
Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::23). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::24). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (91.189.88.152), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.88.142), connection timed out
Err:2 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::23). - connect (101: Network is unreachable) Cannot initiate …Run Code Online (Sandbox Code Playgroud)