在我的 Raspberry Pi 上执行“sudo apt-get dist-upgrade”期间,在等待用户输入时,我的 ssh 连接被重置。我不是在屏幕上跑步。最后几行看起来像这样:
Installing new version of config file /etc/init.d/procps ...
Configuration file '/etc/sysctl.conf'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to …Run Code Online (Sandbox Code Playgroud) 我需要在我的 Ubuntu 14.04 机器上安装 Clang 4.0 和 Clang++ 4.0。我在 apt-get 软件包列表中可以找到的最新版本是 3.5。如何安装 4.0?
好的,我有一个在 Ubuntu 机器上管理的网站,但我已经有一段时间没有更新 apache2 了。我想了解最新的安全补丁等。
问题是我没有测试或质量保证服务器或任何可以“实验”的东西,我不想破坏我的网站。
在相当活跃的网站上进行 apt-get 更新/升级到 apache2 有哪些风险?
如果我运行命令apt-get install [package_name]并点击CTRL-C中间过程,它会停止安装并回滚到原始状态吗?
我有一台在 Ubuntu 12.10 上运行的虚拟机。当我尝试跑步时
apt-get install imagemagick
Run Code Online (Sandbox Code Playgroud)
我收到几个 404 错误:
Err http://archive.ubuntu.com/ubuntu/ quantal-updates/main libcups2 amd64 1.6.1-0ubuntu11.5
404 Not Found [IP: 91.189.92.200 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/main libcupsimage2 amd64 1.6.1-0ubuntu11.5
404 Not Found [IP: 91.189.91.15 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/main libtiff5 amd64 4.0.2-1ubuntu2.2
404 Not Found [IP: 91.189.91.15 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/c/cups/libcups2_1.6.1-0ubuntu11.5_amd64.deb 404 Not Found [IP: 91.189.91.15 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/c/cups/libcupsimage2_1.6.1-0ubuntu11.5_amd64.deb 404 Not Found [IP: 91.189.91.15 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/c/cups/libtiff5_4.0.2-1ubuntu2.2_amd64.deb 404 Not Found [IP: 91.189.91.15 80]
E: Unable to fetch …Run Code Online (Sandbox Code Playgroud) 我正在尝试更新我的 linux 软件包,但出现以下错误:
# apt-get update
Ign:1 http://ftp.be.debian.org/debian wheezy InRelease
Hit:2 http://ftp.be.debian.org/debian wheezy Release
Hit:4 http://ftp2.nluug.nl/os/Linux/distr/kali kali-rolling InRelease
Reading package lists... Done
# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
cadaver cups-bsd cups-client curl empathy exim4-daemon-light gir1.2-networkmanager-1.0
gir1.2-totem-1.0 glib-networking iptables ldap-utils libavformat-ffmpeg56 libct4 libcups2
libcupsimage2 libcurl3-gnutls libgadu3 libgnomevfs2-0 libgnustep-base1.24 libgnutls-openssl27
libimobiledevice6 libldap-2.4-2 libmagickcore-6.q16-2-extra libneon27-gnutls libnm-gtk-common
libnm-gtk0 libnm-util2 libnm0 libopencv-calib3d2.4v5 libopencv-contrib2.4v5 libopencv-core2.4v5
libopencv-features2d2.4v5 libopencv-flann2.4v5 libopencv-highgui2.4v5 …Run Code Online (Sandbox Code Playgroud) 我正在尝试只在 Docker 容器apt-get update上ubuntu:22.04。在我的本地计算机上,当我启动一个新的ubuntu:22.04docker 容器时run apt-get update,没有发生错误。然而,在我的詹金斯管道上,我得到了这个:
09:37:57 + apt-get update --allow-insecure-repositories
09:37:58 Get:1 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
09:37:58 Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
09:37:58 Ign:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
09:37:58 Get:3 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [23.2 kB]
09:37:59 Get:4 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
09:37:59 Ign:1 http://archive.ubuntu.com/ubuntu jammy InRelease
09:37:59 Get:5 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [909 kB]
09:37:59 Ign:4 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
09:37:59 Get:6 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [108 kB]
09:37:59 …Run Code Online (Sandbox Code Playgroud) 我一直在阅读有关为什么通常不会在apt-get网络活动中部署加密的信息。并了解到它会检查来自 repo 的数据的签名,对吗?
但是现在,这种检查是如何发生的?如何做到真正安全?例如,如果文件和密钥在服务器中并以未加密的方式发送,那将如何工作?有人可以修改两者......
我尝试将 Ubuntu 从 14 升级到 15,在此过程中我遇到了一些问题。升级说它成功完成,但过程中有错误。然后我重新启动了我的电脑,它不会启动。所以我得到了一张 Live CD 并按照这里的步骤操作:
https://help.ubuntu.com/community/LiveCdRecovery#Update_Failure
在第 9 步
apt-get upgrade
Run Code Online (Sandbox Code Playgroud)
我收到以下消息:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... The following packages were automatically installed and are no longer required:
jmeter-help libcgmanager0:i386 libgnome-media-profiles-3.0-0 libidl-common
libidl0 libjpeg62 libmirclient7 libmirclientplatform-mesa
libmono-addins-gui0.2-cil libmono-addins0.2-cil libnih-dbus1:i386
libnih1:i386 liborbit2 python-support
Use 'apt-get autoremove' to remove them.
Done
The following packages have been kept back:
account-plugin-aim account-plugin-jabber account-plugin-salut
account-plugin-yahoo appmenu-qt5 aptdaemon bzip2 cabextract cheese
cheese-common colord compiz …Run Code Online (Sandbox Code Playgroud) 我尝试了一切,但没有任何进展。聪明的灵魂能帮上忙吗?
当然只是sudo apt-get -f install不起作用,同样的错误。
$ sudo apt-get install arping
[sudo] password for dloo:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
arping : Depends: libnet1 (>= 1.1.2.1) but it is not going to be installed
Depends: libpcap0.8 (>= 0.9.8) but it is not going to be installed
libc-dev-bin : Depends: libc6 (< 2.16) but 2.17-0ubuntu4 is to …Run Code Online (Sandbox Code Playgroud) apt-get ×10
ubuntu ×6
linux ×3
debian ×2
clang ×1
docker ×1
encryption ×1
gnupg ×1
imagemagick ×1
jenkins ×1
kali-linux ×1
security ×1
ssh ×1
ubuntu-14.04 ×1
upgrade ×1