User Tools

Site Tools


informatica:servidor_internet_2009_debian_9

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
informatica:servidor_internet_2009_debian_9 [2022/08/04 13:30]
miquel [apt-get upgrade & apt-get dist-upgrade]
informatica:servidor_internet_2009_debian_9 [2022/08/10 15:45] (current)
miquel [apt-get dist-upgrade]
Line 163: Line 163:
 ==== Còpies de seguretat ==== ==== Còpies de seguretat ====
  
-Guardo a ///home/sermnadmin/Documents/Upgrade-from-Debian7-to-Debian8// una còpia de seguretat de les següents carpetes i fitxers:+Guardo a ///home/sermnadmin/Documents/Upgrade-from-Debian8-to-Debian9// una còpia de seguretat de les següents carpetes i fitxers:
  
   * /etc  ->  etc   * /etc  ->  etc
Line 213: Line 213:
 $ dpkg --get-selections "*" > ./dpkg--get-selections.txt $ dpkg --get-selections "*" > ./dpkg--get-selections.txt
 </file> </file>
-==== apt-get upgrade & apt-get dist-upgrade ====+==== apt-get update ====
  
-Modifico els fitxers a ''/etc/apto/sources.d'' i substitueixo //wheezy// per //jessie// per tal d'emprar els magatzems de la versió 8.+Modifico els fitxers a ''/etc/apto/sources.d'' i substitueixo //jessie// per //stretch// per tal d'emprar els magatzems de la versió 9.
  
 Llavors executo la comanda "apt-get update" i em surt el següent error, Llavors executo la comanda "apt-get update" i em surt el següent error,
Line 283: Line 283:
 </file> </file>
  
 +==== apt-get upgrade ====
  
 Llavors executo primer la comanda ''apt-get upgrade'' per fer una actualització mínima abans de fer la gran actualització de Debian amb la comanda ''apt-get dist-upgrade''. Llavors executo primer la comanda ''apt-get upgrade'' per fer una actualització mínima abans de fer la gran actualització de Debian amb la comanda ''apt-get dist-upgrade''.
 +
 +Primer faig una simulació,
 +
 +<file>
 +$ apt-get -s upgrade
 +NOTE: This is only a simulation!
 +      apt-get needs root privileges for real execution.
 +      Keep also in mind that locking is deactivated,
 +      so don't depend on the relevance to the real current situation!
 +Reading package lists... Done
 +Building dependency tree
 +Reading state information... Done
 +Calculating upgrade... The following packages were automatically installed and are no longer required:
 +  docutils-common docutils-doc libegl1-mesa-drivers libelfg0 libmono-corlib4.0-cil libopenvg1-mesa libqt4-dbus libqt4-xml libqtcore4 libqtdbus4 libqtgui4 python-dbus-dev python-docutils python-pygments
 +  python-roman qdbus qt-at-spi qtchooser qtcore4-l10n
 +Use 'apt-get autoremove' to remove them.
 +Done
 +The following packages have been kept back:
 +  adwaita-icon-theme apache2 apache2-bin apache2-data apache2-utils apachetop
 +  ...
 +  xserver-xorg-video-vmware xwayland yelp zeitgeist-core zenity zenity-common
 +The following packages will be upgraded:
 +  accountsservice acl acpi acpi-support-base acpid adduser aisleriot alsa-utils
 +  ...
 +  xorg-docs-core xserver-common xterm xz-utils yelp-xsl zip zlib1g                       
 +1068 upgraded, 0 newly installed, 0 to remove and 681 not upgraded.                                                                                                                                              
 +Inst base-files [8+deb8u11] (9.9+deb9u13 Debian:9.13/oldoldstable [amd64])                                                                                                                                     
 +Conf base-files (9.9+deb9u13 Debian:9.13/oldoldstable [amd64])                                                                                                                                            
 +...
 +Conf uptimed (1:0.4.0+git20150923.6b22106-1.1 Debian:9.13/oldoldstable [amd64])
 +Conf yelp-xsl (3.20.1-2 Debian:9.13/oldoldstable [all])
 +</file>
 +
 +i llavors executo la comanda,
 +
 +<file>
 +$ sudo apt-get upgrade                                                                                                                    
 +Reading package lists... Done                                                                                                                                                                              
 +Building dependency tree                                                                                                                                                                                   
 +Reading state information... Done                                                                                                                                                                           
 +Calculating upgrade... The following packages were automatically installed and are no longer required:                                                                                                           
 +  docutils-common docutils-doc libegl1-mesa-drivers libelfg0 libmono-corlib4.0-cil libopenvg1-mesa libqt4-dbus libqt4-xml libqtcore4 libqtdbus4 libqtgui4 python-dbus-dev python-docutils python-pygments   
 +  python-roman qdbus qt-at-spi qtchooser qtcore4-l10n                                                                                                                                                          
 +Use 'apt-get autoremove' to remove them.                                                                                                                                                                       
 +Done                                                                                                                                                                                                    
 +The following packages have been kept back:                                                                                                                                                               
 +  adwaita-icon-theme apache2 apache2-bin
 +  ...
 +  xserver-xorg-video-vmware xwayland yelp zeitgeist-core zenity zenity-common
 +The following packages will be upgraded:
 +  accountsservice acl acpi acpi-support-base 
 +  ...
 +  xserver-common xterm xz-utils yelp-xsl zip zlib1g
 +1068 upgraded, 0 newly installed, 0 to remove and 681 not upgraded.
 +Need to get 392 MB of archives.
 +After this operation, 71.4 MB of additional disk space will be used.
 +Do you want to continue? [Y/n] Y
 +Get:1 http://security.debian.org/ stretch/updates/main libbsd0 amd64 0.8.3-1+deb9u1 [82.9 kB]
 +Get:2 http://security.debian.org/ stretch/updates/main tar amd64 1.29b-1.1+deb9u1 [760 kB]
 +Get:3 http://ftp.es.debian.org/debian/ stretch/main base-files amd64 9.9+deb9u13 [67.6 kB]
 +...
 +Get:1067 http://ftp.es.debian.org/debian/ stretch/main uptimed amd64 1:0.4.0+git20150923.6b22106-1.1 [45.0 kB]                                                                                                    
 +Get:1068 http://ftp.es.debian.org/debian/ stretch/main yelp-xsl all 3.20.1-2 [474 kB]                                                                                                                             
 +Fetched 392 MB in 2min 41s (2,433 kB/s) 
 +Reading changelogs... Done
 +apt-listchanges: Mailing root: apt-listchanges: news for sermnserver
 +Extracting templates from packages: 100%                                                                                                    
 +Preconfiguring packages ...                                                                          
 +(Reading database ... 197306 files and directories currently installed.)                                                                
 +Preparing to unpack .../base-files_9.9+deb9u13_amd64.deb ...                                      
 +Unpacking base-files (9.9+deb9u13) over (8+deb8u11) ... 
 +...
 +aspell-autobuildhash: processing: en [en_US-w_accents-only].
 +aspell-autobuildhash: processing: en [en_US-wo_accents-only].
 +Processing triggers for ca-certificates (20200601~deb9u2) ...
 +Updating certificates in /etc/ssl/certs...
 +0 added, 0 removed; done.
 +Running hooks in /etc/ca-certificates/update.d...
 +
 +done.
 +done.
 +</file>
 +
 +Comprovo i actualitzo els nous fitxers de configuració:
 +
 +  * :ok: nanorc
 +  * :ok: bootlogd
 +  * :ok: stop-bootlogd
 +  * :ok: stop-bootlogd-single
 +  * :ok: sysstat
 +  * :ok: apt.conf.d/50-unattended-upgrades
 +  * :ok: init.d/unattended-upgrades
 +
 +
 +==== apt-get dist-upgrade ====
 +
 +Finalment executo la comanda ``apt-get dist-upgrade`` per actualitzar la resta de paquets i completar la instal·lació de 9.13 "stretch".
 +
 +
 +Primer faig una simulació amb ''sudo apt-get -s dist-upgrade'' i després executo la comanda:
 +
 +<file>
 +$ sudo apt-get dist-upgrade                                                                
 +[sudo] password for sermnadmin:                                                                                                                            
 +Reading package lists... Done                                                                                                                             
 +Building dependency tree                                                                                                                                      
 +Reading state information... Done                                                                                                                       
 +Calculating upgrade... The following packages were automatically installed and are no longer required:                                                    
 +  aptdaemon aptdaemon-data docutils-common docutils-doc g++-4.9 gir1.2-clutter-gst-2.0 gir1.2-gconf-2.0 gir1.2-gkbd-3.0 gir1.2-javascriptcoregtk-3.0       
 +  ...
 +  python3-aptdaemon.gtk3widgets python3-defer python3-jinja2 python3-markupsafe qdbus qt-at-spi qtchooser qtcore4-l10n
 +Use 'apt-get autoremove' to remove them.
 +Done
 +The following packages will be REMOVED:
 +  apache2-mpm-prefork fonts-droid gir1.2-gdm3 gir1.2-gpaste-2.0 gir1.2-panelapplet-4.0 gnome-media gnuplot-tex grilo-plugins-0.2 gstreamer0.10-plugins-good
 +  libasprintf0c2 libatkmm-1.6-1 libboost-date-time1.55.0 libcairomm-1.0-1 libcheese-gtk23 libcheese7 libcwidget3 libebook-1.2-14 libebook-contacts-1.2-0
 +  ...
 +  openjdk-7-jre openjdk-7-jre-headless perl-modules php5-imagick pulseaudio-module-x11 python-cupshelpers python3.4 python3.4-minimal tracker-utils
 +  tzdata-java xserver-xorg-input-vmmouse xserver-xorg-video-modesetting
 +The following NEW packages will be installed:
 +  appstream blt ca-certificates-mono cpp-6 dbconfig-mysql dbus-user-session default-mysql-server dh-strip-nondeterminism dirmngr distro-info-data
 +  ...
 +  qemu-efi seahorse-daemon socat speech-dispatcher-espeak-ng system-config-printer-common tex-common tk8.6-blt2.5 ttf-bitstream-vera vdpau-driver-all
 +  xserver-xorg-input-libinput xserver-xorg-legacy xserver-xorg-video-amdgpu xxd
 +The following packages have been kept back:
 +  chromium
 +The following packages will be upgraded:
 +  adwaita-icon-theme apache2 apache2-bin apache2-data apache2-utils apachetop apt apt-file apt-listchanges apt-utils aptitude aptitude-common argyll aspell bc
 +  bind9-host bluez bluez-obexd bogofilter-bdb bridge-utils browser-plugin-gnash build-essential cdrdao cheese cheese-common cpp crda cups cups-browsed
 +  ...
 +  xserver-xorg-video-siliconmotion xserver-xorg-video-sisusb xserver-xorg-video-tdfx xserver-xorg-video-trident xserver-xorg-video-vesa
 +  xserver-xorg-video-vmware xwayland yelp zeitgeist-core zenity zenity-common
 +680 upgraded, 477 newly installed, 81 to remove and 1 not upgraded.
 +Need to get 791 MB of archives.
 +After this operation, 1,388 MB of additional disk space will be used.
 +Do you want to continue? [Y/n]
 +Get:1 http://security.debian.org/ stretch/updates/main libssl1.0.2 amd64 1.0.2u-1~deb9u7 [1,305 kB]
 +Get:2 http://ftp.es.debian.org/debian/ stretch/main locales all 2.24-11+deb9u4 [3,289 kB]
 +Get:3 http://security.debian.org/ stretch/updates/main wpasupplicant amd64 2:2.4-1+deb9u9 [975 kB]
 +...
 +Get:1155 http://ftp.es.debian.org/debian/ stretch/main virt-viewer amd64 5.0-1 [336 kB]
 +Get:1156 http://ftp.es.debian.org/debian/ stretch/main virtinst all 1:1.4.0-5 [177 kB]
 +Get:1157 http://ftp.es.debian.org/debian/ stretch/main xbrlapi amd64 5.4-7+deb9u1 [130 kB]
 +Fetched 791 MB in 3min 7s (4,220 kB/s)
 +Reading changelogs... Done
 +apt-listchanges: Mailing root: apt-listchanges: news for sermnserver
 +Extracting templates from packages: 100%                                               
 +Preconfiguring packages ...                                                                
 +Determining localhost credentials from /etc/mysql/debian.cnf: succeeded.                                
 +setting xserver-xorg-legacy/xwrapper/allowed_users from configuration file                                   
 +(Reading database ... 199607 files and directories currently installed.)                                         
 +Preparing to unpack .../locales_2.24-11+deb9u4_all.deb ...                                            
 +Unpacking locales (2.24-11+deb9u4) over (2.19-18+deb8u10) ...                                                        
 +...
 +Processing triggers for libapache2-mod-php7.0 (7.0.33-0+deb9u12) ...
 +Processing triggers for menu (2.1.47+b1) ...
 +N: Ignoring file '50unattended-upgrades.ucf-dist' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension
 +
 +
 +$ sudo apt-get dist-upgrade
 +[sudo] password for sermnadmin:
 +Reading package lists... Done
 +Building dependency tree       
 +Reading state information... Done
 +Calculating upgrade... Done
 +The following packages were automatically installed and are no longer required:
 +  aptdaemon aptdaemon-data chromium-inspector docutils-common docutils-doc g++-4.9 gir1.2-clutter-gst-2.0 gir1.2-gconf-2.0 gir1.2-gkbd-3.0 gir1.2-javascriptcoregtk-3.0 gir1.2-vte-2.90
 +  gir1.2-webkit-3.0 gir1.2-xkl-1.0 gnome-accessibility-themes gnome-icon-theme-symbolic gnome-packagekit-session gnome-themes-standard gstreamer0.10-ffmpeg gstreamer0.10-gconf
 +  ...
 +  python-ndg-httpsclient python-ntdb python-pexpect python-pil python-ply python-ptyprocess python-pycparser python-pygments python-renderpm python-reportlab python-reportlab-accel
 +  python-roman python-smbc python-soappy python-urlgrabber python-wstools python3-aptdaemon python3-aptdaemon.gtk3widgets python3-defer python3-jinja2 python3-markupsafe qdbus
 +  qt-at-spi qtchooser qtcore4-l10n
 +Use 'sudo apt autoremove' to remove them.
 +The following packages will be REMOVED:
 +  libavformat56 libgegl-0.2-0 libgnutls-deb0-28 libhogweed2 libimobiledevice4 libnettle4
 +The following packages will be upgraded:
 +  chromium
 +1 upgraded, 0 newly installed, 6 to remove and 0 not upgraded.
 +Need to get 57.5 MB of archives.
 +After this operation, 18.6 MB of additional disk space will be used.
 +Do you want to continue? [Y/n] Y
 +Get:1 http://ftp.es.debian.org/debian stretch/main amd64 chromium amd64 73.0.3683.75-1~deb9u1 [57.5 MB]
 +Fetched 57.5 MB in 8s (6,881 kB/s)                                                                                                                                                      
 +Reading changelogs... Done
 +(Reading database ... 218438 files and directories currently installed.)
 +Removing libgegl-0.2-0:amd64 (0.2.0-7+b1) ...
 +Removing libavformat56:amd64 (6:11.12-1~deb8u9) ...
 +Removing libimobiledevice4:amd64 (1.1.6+dfsg-3.1+deb8u1) ...
 +Removing libgnutls-deb0-28:amd64 (3.3.30-0+deb8u1) ...
 +Removing libhogweed2:amd64 (2.7.1-5+deb8u2) ...
 +Removing libnettle4:amd64 (2.7.1-5+deb8u2) ...
 +(Reading database ... 218251 files and directories currently installed.)
 +Preparing to unpack .../chromium_73.0.3683.75-1~deb9u1_amd64.deb ...
 +Unpacking chromium (73.0.3683.75-1~deb9u1) over (57.0.2987.98-1~deb8u1) ...
 +Processing triggers for mime-support (3.60) ...
 +Processing triggers for desktop-file-utils (0.23-1) ...
 +Processing triggers for menu (2.1.47+b1) ...
 +Setting up chromium (73.0.3683.75-1~deb9u1) ...
 +Processing triggers for man-db (2.7.6.1-2) ...
 +Processing triggers for gnome-menus (3.13.3-9) ...
 +Processing triggers for hicolor-icon-theme (0.15-1) ...
 +</file>
 +
 +i elimino tots els paquets que ja no es fan servir,
 +
 +<file>
 +$ sudo apt autoremove
 +Reading package lists... Done
 +Building dependency tree       
 +Reading state information... Done
 +The following packages will be REMOVED:
 +  aptdaemon aptdaemon-data chromium-inspector docutils-common docutils-doc g++-4.9 gir1.2-clutter-gst-2.0 gir1.2-gconf-2.0 gir1.2-gkbd-3.0 gir1.2-javascriptcoregtk-3.0 gir1.2-vte-2.90
 +  gir1.2-webkit-3.0 gir1.2-xkl-1.0 gnome-accessibility-themes gnome-icon-theme-symbolic gnome-packagekit-session gnome-themes-standard gstreamer0.10-ffmpeg gstreamer0.10-gconf
 +  ...
 +  python-roman python-smbc python-soappy python-urlgrabber python-wstools python3-aptdaemon python3-aptdaemon.gtk3widgets python3-defer python3-jinja2 python3-markupsafe qdbus
 +  qt-at-spi qtchooser qtcore4-l10na
 +0 upgraded, 0 newly installed, 241 to remove and 0 not upgraded.
 +After this operation, 238 MB disk space will be freed.
 +Do you want to continue? [Y/n]
 +(Reading database ... 218253 files and directories currently installed.)
 +Removing aptdaemon (1.1.1-4+deb8u1) ...
 +Removing python3-aptdaemon.gtk3widgets (1.1.1-4+deb8u1) ...
 +Removing aptdaemon-data (1.1.1-4+deb8u1) ...
 +...
 +Removing libmusicbrainz5-1:amd64 (5.1.0-2) ...
 +Removing php5-mysql (5.6.40+dfsg-0+deb8u12) ...
 +php5_invoke prerm: Disable module mysql for cli SAPI
 +php5_invoke prerm: Disable module mysql for apache2 SAPI
 +php5_invoke prerm: Disable module mysqli for cli SAPI
 +php5_invoke prerm: Disable module mysqli for apache2 SAPI
 +php5_invoke prerm: Disable module pdo_mysql for cli SAPI
 +php5_invoke prerm: Disable module pdo_mysql for apache2 SAPI
 +Removing libmysqlclient18:amd64 (5.5.62-0+deb8u1) ...
 +...
 +Removing libxtables10 (1.4.21-2+b1) ...
 +Removing php5-pgsql (5.6.40+dfsg-0+deb8u12) ...
 +php5_invoke prerm: Disable module pgsql for cli SAPI
 +php5_invoke prerm: Disable module pgsql for apache2 SAPI
 +php5_invoke prerm: Disable module pdo_pgsql for cli SAPI
 +php5_invoke prerm: Disable module pdo_pgsql for apache2 SAPI
 +Removing pkg-config (0.29-4+b1) ...
 +...
 +Processing triggers for shared-mime-info (1.8-1+deb9u1) ...
 +Processing triggers for dbus (1.10.32-0+deb9u1) ...
 +Processing triggers for hicolor-icon-theme (0.15-1) ...
 +
 +</file>
 +
  
informatica/servidor_internet_2009_debian_9.1659612617.txt.gz · Last modified: 2022/08/04 13:30 by miquel