Ssh
升級 Lenny 以通過 ssh 擠壓
我正在使用 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 連接可能已被終止?
這就是上帝發明 KVM over IP 的原因。
根據我的經驗,如果不是絕對必要,我不會這樣做。如果你可以等到週末後再做,我不會冒險。
我做了多次 lenny 來擠壓升級,在大約 30 台機器中,我只有一台效果不佳。因此,是否可以冒險由您決定。通常,這些升級進展順利。請注意,您需要重新啟動機器才能完成升級,因此無論如何您都會失去 ssh 連接。
通常,從 lenny 升級到擠壓時,您不會失去 SSH。