Jean-Baptiste-Lasselle / virutalbox-debian-stretch

Recette de provision de VirtualBox pour une machine Debian Stretch.
0 stars 0 forks source link

CHECK_FOR_UPDATES #1

Open Jean-Baptiste-Lasselle opened 5 years ago

Jean-Baptiste-Lasselle commented 5 years ago

Réparer l' opération std d'update, en automatisant le "check for updates" :

sudo apt-get install -y dialog
sudo apt-get install -y dialog
Jean-Baptiste-Lasselle commented 5 years ago

Debian

sudo apt-get -V -s dist-upgrade \
    |grep -E "^   .*=>.*" \
    |awk 'BEGIN {
        ul=sprintf("%*s",40,""); gsub(/ /,"-",ul);
        printf "%-30s %-30s %-30s\n", "Package", "Installed", "Available";
        printf "%-30.30s %-30.30s %-30.30s\n", ul, ul, ul;
     }
     {
        printf "%-30s %-30s %-30s\n",
               $1,
               substr($2,2),
               substr($4,1,length($4)-1)
     }'
Jean-Baptiste-Lasselle commented 5 years ago

voir aussi huginn, pour faire un job qui vérifie si une URL formée à partir d'un numéro de version, permet ou non le téléchargement de N fichiers.

Jean-Baptiste-Lasselle commented 5 years ago

Procédure 'update : note rapide pour auto

# télécharger le package d'upade de virtualbox [*.deb], puis : 
sudo dpkg -i /path/to/deb/file
sudo apt-get install -f

*Sortie standard de référence :

jbl@poste-devops-jbl-16gbram:~/Downloads$ sudo dpkg -i ./virtualbox-6.0_6.0.12-133076~Debian~stretch_amd64.deb 
[sudo] password for jbl: 
(Reading database ... 192929 files and directories currently installed.)
Preparing to unpack .../virtualbox-6.0_6.0.12-133076~Debian~stretch_amd64.deb ...
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
dpkg: ... it looks like that went OK
Unpacking virtualbox-6.0 (6.0.12-133076~Debian~stretch) over (6.0.6-130049~Debian~stretch) ...
Setting up virtualbox-6.0 (6.0.12-133076~Debian~stretch) ...
addgroup: The group `vboxusers' already exists as a system group. Exiting.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxdrv.service → /lib/systemd/system/vboxdrv.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxballoonctrl-service.service → /lib/systemd/system/vboxballoonctrl-service.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxautostart-service.service → /lib/systemd/system/vboxautostart-service.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxweb-service.service → /lib/systemd/system/vboxweb-service.service.
Processing triggers for systemd (232-25+deb9u11) ...
Processing triggers for gnome-menus (3.13.3-9) ...
Processing triggers for desktop-file-utils (0.23-1) ...
Processing triggers for mime-support (3.60) ...
Processing triggers for hicolor-icon-theme (0.15-1) ...
Processing triggers for shared-mime-info (1.8-1+deb9u1) ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
jbl@poste-devops-jbl-16gbram:~/Downloads$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 105 not upgraded.