通过 ssh 将 Lenny 升级到 Squeeze

通过 ssh 将 Lenny 升级到 Squeeze

我正在和 Lenny 一起运行 ISPConfig3 服务器,我想升级 Squeeze,但是...我不在终端机旁,而服务器在我的服务器大厅里。

我可以通过 SSH 将 Lenny 升级到 Squeeze 吗?我检查了更新列表,发现openssh-client&openssh-server都被保留了下来……但是,我不确定是否可以并且应该继续。

这是apt-get运行时显示的内容apt-get upgrade

The following packages have been kept back:
  amavisd-new apache2 apache2-mpm-prefork apache2.2-common apt apt-listchanges apt-utils aptitude autoconf automake avahi-daemon bash
  bc bind9-host binutils build-essential courier-maildrop cpio cpp cpp-4.3 cron dbus dc debianutils dhcp3-client dhcp3-common diff
  djvulibre-desktop dnsutils dpkg dpkg-dev e2fsprogs ed enscript expect findutils flex ftp g++ g++-4.3 gcc gcc-4.3 gcc-4.3-base
  gettext ghostscript gnupg gpgv grep grub grub-common html2text imagemagick info iptables ispell libaprutil1 libarchive-zip-perl
  libberkeleydb-perl libc6 libc6-dev libc6-i386 libcompress-raw-zlib-perl libcompress-zlib-perl libconvert-uulib-perl libcups2
  libcupsimage2 libcurl3 libdatetime-locale-perl libdatetime-perl libdbd-mysql-perl libdbi-perl libdevmapper1.02.1
  libdigest-sha1-perl libdjvulibre21 libedit2 libgcc1 libgdbm3 libglib2.0-0 libglib2.0-data libgomp1 libgs8 libgsf-1-114 libgtk2.0-0
  libgtk2.0-bin libhtml-parser-perl libio-compress-base-perl libio-compress-zlib-perl libkrb53 liblocale-gettext-perl
  libmail-box-perl libneon27 libneon27-gnutls libnet-dns-perl libnet-libidn-perl libnet-ssleay-perl libnetaddr-ip-perl libpango1.0-0
  libparams-validate-perl libpq5 librsvg2-2 libsasl2-2 libsasl2-modules libsasl2-modules-sql libsocket6-perl libstdc++6
  libstdc++6-4.3-dev libsvn1 libthai-data libthai0 libtool libts-0.0-0 libwv-1.2-3 libx11-6 libxcb1 libxi6 linux-image-2.6-amd64
  locales m4 man-db mc memcached mutt mysql-client nano nfs-common ntp ntpdate openssh-client openssh-server perl perl-base
  perl-modules polipo postfix postfix-mysql python python-apt python-minimal python-sqlalchemy python2.5 python2.5-minimal quota
  readline-common reportbug rpm sasl2-bin sed source-highlight subversion sysv-rc tor tor-geoipdb udev unixodbc util-linux wget wv
The following packages will be upgraded:
  acpi-support-base acpid adduser apache2-doc apache2-suexec apache2-utils apticron arj aspell aspell-de aspell-en aspell-fi
  aspell-fr aspell-nl aspell-ru aspell-sv at automake1.9 autotools-dev base-files base-passwd bash-completion bison bsd-mailx
  bsdmainutils bsdutils busybox bzip2 ca-certificates cabextract clamav clamav-base clamav-daemon clamav-docs clamav-freshclam
  clamav-testfiles console-common console-data console-tools coreutils courier-authdaemon courier-authlib courier-authlib-mysql
  courier-authlib-userdb courier-base courier-imap courier-imap-ssl courier-pop courier-pop-ssl courier-ssl curl daemon db4.6-util
  dbus-x11 debconf debconf-i18n debhelper debian-archive-keyring debian-faq defoma dictionaries-common dmidecode doc-debian e2fslibs
  eject fail2ban fakeroot fam file firmware-bnx2 fontconfig fontconfig-config gawk getmail4 gettext-base groff-base gs-common gsfonts
  gzip hicolor-icon-theme hostname iamerican ibritish ifupdown initramfs-tools initscripts installation-report iproute iputils-ping
  java-common klibc-utils laptop-detect less libacl1 libaio1 libapache2-mod-fcgid libapache2-mod-jk libapr1 libasound2 libaspell15
  libatk1.0-0 libatk1.0-data libattr1 libauthen-sasl-perl libavahi-common-data libavahi-common3 libblkid1 libbz2-1.0 libcairo2
  libcap2 libclamav6 libclass-singleton-perl libcomerr2 libconsole libconvert-asn1-perl libconvert-tnef-perl libcroco3 libcwidget3
  libdaemon0 libdatetime-timezone-perl libdb4.6 libdb4.8 libdbus-1-3 libdigest-hmac-perl libexpat1 libfam0
  libfile-copy-recursive-perl libfile-remove-perl libfontconfig1 libfontenc1 libfreetype6 libgc1c2 libgcrypt11 libgd2-xpm
  libgeoip-dev libgeoip1 libgmp3c2 libgnutls26 libgpg-error0 libgpm2 libgsf-1-common libgssglue1 libgtk2.0-common
  libhtml-template-perl libhtml-tree-perl libice6 libidn11 libilmbase6 libio-multiplex-perl libio-socket-inet6-perl
  libio-socket-ssl-perl libipc-run3-perl libjasper1 libjpeg62 libkeyutils1 libklibc liblcms1 libldap-2.4-2 liblockfile1 liblqr-1-0
  libltdl7 liblzo2-2 libmagic-dev libmagic1 libmail-sendmail-perl libmail-spf-perl libmailtools-perl libmcrypt4 libmhash2
  libmime-tools-perl libmime-types-perl libncurses5 libncursesw5 libnet-cidr-perl libnet-daemon-perl libnet-ident-perl
  libnet-ldap-perl libnewt0.52 libnfsidmap2 libnss-mdns libobject-realize-later-perl libopenexr6 libpam-modules libpam-mysql
  libpam-runtime libpam0g libpango1.0-common libpaper-utils libpaper1 libpci3 libpcre3 libpixman-1-0 libplrpc-perl libpng12-0
  libpopt0 libqdbm14 libreadline5 librpcsecgss3 libselinux1 libsepol1 libserf-0-0 libsigc++-2.0-0c2a libslang2 libsm6 libsqlite0
  libsqlite3-0 libss2 libssh2-1 libssl-dev libssl0.9.8 libsysfs2 libt1-5 libtasn1-3 libtext-charwidth-perl libtext-iconv-perl
  libtext-wrapi18n-perl libtidy-0.99-0 libtiff4 libtimedate-perl libtommath0 liburi-perl libusb-0.1-4 libuser-identity-perl libuuid1
  libwmf0.2-7 libwrap0 libwww-perl libx11-data libxau6 libxcb-render-util0 libxcb-render0 libxcomposite1 libxcursor1 libxdamage1
  libxdmcp6 libxext6 libxfixes3 libxfont1 libxft2 libxinerama1 libxml2 libxml2-dev libxmuu1 libxpm4 libxrandr2 libxrender1 libxt6
  libxtst6 linux-libc-dev lockfile-progs login logrotate lsb-base lsb-release lsof make makedev manpages mawk mcrypt mdadm mercurial
  mercurial-common mime-support mktemp mlocate mlock module-init-tools mount ncurses-base ncurses-bin ncurses-term net-tools netbase
  nomarch openbsd-inetd openssl openssl-blacklist passwd patch pciutils po-debconf portmap postfix-doc procmail procps psfontmgr
  psmisc pure-ftpd-common pure-ftpd-mysql python-beaker python-central python-support quotatool rcs rkhunter rsyslog shtool socat
  spamassassin spamc ssh ssl-cert sun-java6-bin sun-java6-jdk sun-java6-jre sysstat sysvinit sysvinit-utils tar tasksel tasksel-data
  tcl8.4 tcpd texinfo time traceroute ttf-dejavu ttf-dejavu-core ttf-dejavu-extra tzdata ucf unhide unrtf unzip update-inetd usbutils
  vim-common vim-tiny w3m wamerican webalizer whiptail whois x-ttcidfont-conf x11-common xauth xfonts-encodings xfonts-utils zip
  zlib1g zlib1g-dev zoo
343 upgraded, 0 newly installed, 0 to remove and 157 not upgraded.

我可以进行升级吗?有什么会终止我的 SSH 连接吗?我可以在后台运行它,以便即使 SSH 连接可能已被终止,升级过程仍可继续吗?

答案1

这就是上帝发明 KVM over IP 的原因。

根据我的经验,如果不是绝对必要的话,我不会这么做。如果你可以等到周末再做,我不会冒这个险。

我做过多次 lenny to squeeze 升级,在大约 30 台机器中,只有一台升级效果不佳。因此,您可以自行决定是否要冒险。通常这些升级会顺利进行。请注意,您需要重新启动机器才能完成升级,因此无论如何您都会丢失 ssh 连接。

正常情况下,从 lenny 到 squeeze 进行 dist-upgrade 时不会丢失 SSH。

相关内容