Accueil > ... > Forum 6

Conception d’un script

24 août, 13:58, par Antoine

J’ai fait un premier test pas concluant. Je te met mon script en PJ : les logiciels en question ne se sont pas désinstallé, les autres pas installés. J’ai du mal à trouver les noms réèls des logiciels, le gestionnaire de paquets synaptic n’est pas présent sous Zorin, je l’ai installé mais je ne trouve pas tous les logiciels.

Contenu du script

# !/bin/bash

# verrou exclusif / OK
sudo dpkg —configure -a

# supprimer des logiciels / OK
sudo apt-get purge -y -autoremove libreoffice* evolution konqueror photos contacts

# Update et Upgrade / OK
sudo apt-get update && sudo apt-get upgrade -y

# install prefered software / OK
sudo apt-get intell -y thunderbird firefox onlyoffice-desktopeditors nextcloud-desktop nautilus-nextcloud ttf-mscorefonts-installer Screenshot

sudo fc-cache -f -v

Message en réponse du script

dpkg: error: dpkg frontend lock was locked by another process with pid 4794
Note: removing the lock file is always wrong, can damage the locked area
and the entire system. See <https://wiki.debian.org/Teams/Dpkg/FAQ#db-lock>.
E: Command line option 'a' [from -autoremove] is not understood in combination with the other options.
Hit:1 http://fr.archive.ubuntu.com/ubuntu noble InRelease
Hit:2 http://fr.archive.ubuntu.com/ubuntu noble-updates InRelease              
Hit:3 http://security.ubuntu.com/ubuntu noble-security InRelease               
Hit:4 http://fr.archive.ubuntu.com/ubuntu noble-backports InRelease            
Hit:5 https://brave-browser-apt-release.s3.brave.com stable InRelease          
Hit:6 https://ppa.launchpadcontent.net/zorinos/apps/ubuntu noble InRelease     
Hit:7 https://ppa.launchpadcontent.net/zorinos/drivers/ubuntu noble InRelease
Hit:8 https://ppa.launchpadcontent.net/zorinos/patches/ubuntu noble InRelease
Hit:9 https://ppa.launchpadcontent.net/zorinos/stable/ubuntu noble InRelease
Hit:10 https://packages.zorinos.com/stable noble InRelease                  
Hit:11 https://packages.zorinos.com/patches noble InRelease
Hit:12 https://packages.zorinos.com/apps noble InRelease
Hit:13 https://packages.zorinos.com/drivers noble InRelease
Reading package lists... Done
E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 4794 (unattended-upgr)
N: Be aware that removing the lock file is not a solution and may break your system.
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
E: Invalid operation intell
Font directories:
	/root/.local/share/fonts
	/usr/local/share/fonts
	...
	/usr/share/fonts/X11/encodings/large
	/usr/share/fonts/truetype/roboto/unhinted
	/usr/share/fonts/truetype/roboto/unhinted/RobotoTTF
/root/.local/share/fonts: skipping, no such directory
/usr/local/share/fonts: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts: caching, new cache contents: 0 fonts, 7 dirs
/usr/share/fonts/X11: caching, new cache contents: 0 fonts, 4 dirs
/usr/share/fonts/X11/Type1: caching, new cache contents: 43 fonts, 0 dirs
/usr/share/fonts/X11/encodings: caching, new cache contents: 0 fonts, 1 dirs
/usr/share/fonts/X11/encodings/large: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/X11/misc: caching, new cache contents: 89 fonts, 0 dirs
/usr/share/fonts/X11/util: caching, new cache contents: 0 fonts, 0 dirs
...
/usr/share/fonts/type1/urw-base35: skipping, looped directory detected
/usr/share/fonts/woff/opendyslexic: skipping, looped directory detected
/usr/share/fonts/X11/encodings/large: skipping, looped directory detected
/usr/share/fonts/truetype/roboto/unhinted: skipping, looped directory detected
/usr/share/fonts/truetype/roboto/unhinted/RobotoTTF: skipping, looped directory detected
/var/cache/fontconfig: cleaning cache directory
/root/.cache/fontconfig: not cleaning non-existent cache directory
/root/.fontconfig: not cleaning non-existent cache directory
fc-cache: succeeded

Un message, un commentaire ?

Qui êtes-vous ?
Se connecter | S’inscrire
Il est possible de poster un message sans se connecter.
Votre message

Pour créer des paragraphes, laissez simplement des lignes vides.