当我尝试执行以下操作时:
sudo apt-get update
sudo apt-get upgrade
Run Code Online (Sandbox Code Playgroud)
在我的 Ubuntu Server 10.04 安装中,它挂在以下行:
Preparing to replace mysql-server-5.1 5.1.41-3ubuntu12.1 (using .../mysql-server-5.1_5.1.41-3ubuntu12.3_i386.deb)
Run Code Online (Sandbox Code Playgroud)
我什至不能 CTRL-C 退出它!我最终不得不终止我的会话并从不同的终端登录,并且升级过程仍在运行。我已经重新启动了几次,当我回去再试时,它告诉我:
E: dpkg was interrupted, you must manually run 'sudo --configure -a' to correct the problem.
Run Code Online (Sandbox Code Playgroud)
一旦我这样做了,我就回到了第一阶段,当我尝试升级 mySQL 时它会冻结。
我想找到一个工具,它可以告诉我系统上的哪些 Debian 软件包很少或从未使用过,也许是通过查看文件列表和访问时间。这是为了从我几乎已满的硬盘驱动器中找到要删除的候选对象。我不太了解桌面 GUI 工具的丰富生态系统(我使用aptitude);有谁知道这些工具中的一个或任何其他工具是否可以识别最近使用过的软件包?
我尝试更新 Debian,但收到以下错误消息:
% sudo aptitude update
Hit http://deb.debian.org/debian bullseye InRelease
Hit http://deb.debian.org/debian-security bullseye-security InRelease
Hit http://deb.debian.org/debian bullseye-updates InRelease
Get: 1 https://cli.github.com/packages stable InRelease [3917 B]
Hit http://packages.azlux.fr/debian buster InRelease
Hit https://fasttrack.debian.net/debian-fasttrack bullseye-fasttrack InRelease
Hit https://fasttrack.debian.net/debian-fasttrack bullseye-backports-staging InRelease
Err https://cli.github.com/packages stable InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 23F3D4EA75716059
Hit https://packages.cloud.google.com/apt kubernetes-xenial InRelease
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be …Run Code Online (Sandbox Code Playgroud) 有人知道apt包附带的小型Linux发行版吗?
我尝试了 puppy linux 和 dsl,但我不喜欢其中任何一个。
我正在寻找将 LAMP 安装到带有小型 linux 的虚拟机中,并且我正在寻找带有 apt 的发行版,因为我熟悉该软件包,并且对我来说设置和升级服务器会更容易。
linux linux-distributions repository damn-small-linux aptitude
当我在 VPS 上执行“apt-get update”时,我收到很多错误消息:
Err http://ftp.debian.org lenny/volatile/main Packages
404 Not Found [IP: 130.89.149.226 80]
Err http://ftp.debian.org lenny/volatile/contrib Packages
404 Not Found [IP: 130.89.149.226 80]
Err http://ftp.debian.org lenny/volatile/non-free Packages
404 Not Found [IP: 130.89.149.226 80]
Err http://ftp.debian.org lenny/updates/main Packages
404 Not Found [IP: 130.89.149.226 80]
Err http://ftp.debian.org lenny/updates/contrib Packages
404 Not Found [IP: 130.89.149.226 80]
Err http://ftp.debian.org lenny/updates/non-free Packages
404 Not Found [IP: 130.89.149.226 80]
W: Failed to fetch http://ftp.debian.org/debian-volatile/dists/lenny/volatile/main/binary-i386/Packages 404 Not Found [IP: 130.89.149.226 80]
W: Failed to fetch http://ftp.debian.org/debian-volatile/dists/lenny/volatile/contrib/binary-i386/Packages …Run Code Online (Sandbox Code Playgroud) 我在运行以下命令时遇到问题:
root@X100e:~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
adduser apt apt-utils base-files base-passwd bash bash-completion bsdmainutils bsdutils busybox-initramfs consolekit coreutils
cpio cpp cpp-4.4 dash dbus debconf debconf-i18n debianutils diffutils dpkg e2fslibs e2fsprogs file findutils gawk gcc-4.4-base
gcc-4.5-base gpgv grep gzip hostname ifupdown initramfs-tools initramfs-tools-bin initscripts insserv klibc-utils libacl1
libattr1 libblkid1 libbz2-1.0 libc-bin libc6 libck-connector0 libcomerr2 libdb4.8 libdbus-1-3 libdbus-glib-1-2 libdconf0
libdrm-intel1 libdrm-nouveau1 libdrm-radeon1 libdrm2 …Run Code Online (Sandbox Code Playgroud) 以ibus-sunpinyin为例,在squeeze release中没有。我不打算将整个系统切换到 sid 分支,因此,我想从 sid 存储库下载单个包并像这样安装它:
# Add the sid repository
sudo mv /tmp/sid.list /etc/apt/sources.list.d/
# Error: can't install because version conflicts of libc6:
# sudo apt-get install ibus-sunpinyin
# This is ok but it will upgrade a lot of mess from sid branch:
# sudo apt-get upgrade ibus-sunpinyin
# So, instead of apt-get install/upgrade, let me download & install the single package.
# However, this errored again because of version conflicts of libc6:
# apt-get install --download-only ibus-sunpinyin
## …Run Code Online (Sandbox Code Playgroud) 当我们使用
Ubuntu apt-get
第一个过程是将所需文件下载到一个临时文件夹中
/var/cache/apt/archives
只有在此之后才会进行安装。我们能否将这些文件迁移到不同的系统,以便我们可以在不使用互联网的情况下安装这些应用程序。
即在输入以下命令时
apt-get 应用程序名称
系统应该从这个临时文件夹中获取所需的文件。
Mac OS X 上有 apt-get 版本吗?如果没有,或者不推荐,有哪些类似的安装程序?
我已被分配在服务器上执行一项工作,但不确定正在运行什么 dist。/proc/version告诉我:
Linux version 2.6.18-194.26.1.el5.028stab079.2 (root@rhel5-build-x64) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)) #1 SMP Fri Dec 17 19:25:15 MSK 2010
所以这让我想到了 Red Hat Enterprise Linux 5,但后来我尝试安装一些软件包并发现安装了 aptitude 和 apt-get 而不是 yum。我认为 aptitude 和 apt-get 属于 debian 世界。所以现在我想知道,这台服务器上运行的是什么发行版?
aptitude ×10
debian ×4
linux ×4
ubuntu ×3
installation ×1
macos ×1
repository ×1
signature ×1
ubuntu-10.04 ×1
updates ×1
verification ×1