[code]claireantoine01@mx1:~/Bureau/Pilotes-imprimante-canon-PIXMA-MX475/cnijfilter-mx470series-4.10-1-deb
$ sudo ./install.sh
-
C_version=4.10-1
-
C_copyright_end=2014
-
C_default_system=deb
-
L_INST_COM_01_01=‘Command executed = %s\n’
-
L_INST_COM_01_02=‘An error occurred. The package management system cannot be identified.\n’
-
L_INST_COM_01_03=‘An error occurred. A necessary package could not be found in the proper location.\n’
-
L_INST_COM_01_04=‘Installation has been completed.\n’
-
L_INST_COM_01_05=‘An error occurred. Your environment cannot be identified as 32-bit or 64-bit.\nTry to install again by using the following command.\n’
-
L_INST_COM_01_06=‘An error occurred. The specified environment differs from your environment.\nTry to install again by using the following command.\n’
-
L_INST_COM_02_01=‘Usage: %s\n’
-
L_INST_COM_02_02=‘Uninstallation has been completed.\n’
-
L_INST_COM_03_01=’[Package]\n’
-
L_INST_PRN_00_01=‘Canon Inkjet Printer Driver’
-
L_INST_PRN_00_02=‘Version %s’
-
L_INST_PRN_00_03=‘Copyright CANON INC. %s-%s’
-
L_INST_PRN_01_01=‘Register Printer\n’
-
L_INST_PRN_01_02=‘Next, register the printer to the computer.\n’
-
L_INST_PRN_01_03=‘Connect the printer, and then turn on the power.\nTo use the printer on the network, connect the printer to the network.\nWhen the printer is ready, press the Enter key.\n’
-
L_INST_PRN_01_04=‘Connection Method\n’
-
L_INST_PRN_01_05=‘USB\n’
-
L_INST_PRN_01_06=‘Network\n’
-
L_INST_PRN_01_07=‘Select the connection method.%s’
-
L_INST_PRN_01_08=‘Searching for printers…\n’
-
L_INST_PRN_01_09=‘Select Printer\n’
-
L_INST_PRN_01_10=‘Select the printer.\nIf the printer you want to use is not listed, select Update [0] to search again.\nTo cancel the process, enter [Q].\n’
-
L_INST_PRN_01_11=Update
-
L_INST_PRN_01_12=‘Target printers detected (MAC address IP address)\n’
-
L_INST_PRN_01_13=‘Other printers detected (MAC address IP address)\n’
-
L_INST_PRN_01_14=‘Target printers detected\n’
-
L_INST_PRN_01_15=‘Other printers detected\n’
-
L_INST_PRN_01_16=‘Currently selected:%s %s\n’
-
L_INST_PRN_01_17=‘Enter the value.’
-
L_INST_PRN_01_18=‘Could not detect the target printer.\n’
-
L_INST_PRN_01_19=‘Register Printer\n’
-
L_INST_PRN_01_20=‘Enter the printer name.%s’
-
L_INST_PRN_01_21=‘The printer name you entered already exists. Do you want to overwrite it?\nEnter [y] for Yes or [n] for No.%s’
-
L_INST_PRN_01_22=‘The printer name is invalid.\nYou can only use the following characters for the printer name:\n alphanumeric characters (a-z, A-Z, 0-9), “.”, “-”, “_”, “+”, “@”\n’
-
L_INST_PRN_01_23=‘Set as Default Printer\n’
-
L_INST_PRN_01_24=‘Do you want to set this printer as the default printer?\nEnter [y] for Yes or [n] for No.%s’
-
L_INST_PRN_01_25=‘Printer Name : %s\n’
-
L_INST_PRN_01_26=‘Select this printer name for printing.\n’
-
L_INST_PRN_01_27=‘The printer registration has not been completed.\nRegister the printer manually by using the lpadmin command.\n’
-
L_INST_PRN_02_01=‘Uninstall Printer\n’
-
L_INST_PRN_02_02=‘All printer registration for this model will be deleted.\n’
-
L_INST_PRN_02_03=‘Do you want to continue?\nEnter [y] for Yes or [n] for No.%s’
-
L_INST_PRN_02_04=‘Failed to delete [%s].\nAfter the uninstall process is finished, delete this printer manually by using the lpadmin command.\n’
-
L_INST_PRN_02_05=‘Failed to delete printers.\nAfter the uninstall process is finished, delete these printers manually by using the lpadmin command.\n’
-
C_main_module=cnijfilter
-
C_copyright_start=2001
-
C_function01=P_FUNC_MAIN_make_queue
-
C_function02=P_FUNC_MAIN_delete_all_queue
-
C_function03=P_FUNC_show_copyright
-
P_entry_list_path=
-
P_entry_list_path_rpm=/usr/local/share/
-
P_entry_list_path_deb=/usr/share/
-
P_entry_list_dir=cnijfilter/
-
P_entry_list_name=cnij_entry
-
P_cupsd_command_1=/etc/init.d/cups
-
P_cupsd_command_2=/etc/init.d/cupsys
-
P_cupsd_command_current=
-
P_lpadmin_command_full=/usr/sbin/lpadmin
-
P_lpadmin_command_current=
-
P_is_std_usb_backend=0
-
P_ppd_install_path=/usr/share/cups/model/
-
C_ERR_CODE=128
-
C_big=50
-
C_equal=40
-
C_small=30
-
C_common=common
-
C_system=
-
C_arch=
-
C_arch32=
-
C_arch64=
-
C_err=no_error
-
C_err_unknown=err_unknown
-
C_err_mismatch=err_mismatch
-
C_err_usage=err_usage
-
C_install_script_fname=install.sh
-
C_config_path_rpm=/usr/local/bin
-
C_config_path_deb=/usr/bin
-
C_copyrightb===================================================
-
C_arg_inst=’[ --bit32 | --bit64 ]’
-
C_arg_pkg=’[ --uninstall | --version ]’
-
‘[’ install.sh = install.sh ‘]’
-
C_argment=
+++ dirname ./install.sh
++ echo .
-
C_local_path_inst=./resources
-
C_FUNC_localize ./resources
-
local lc_file_dir=./resources
++ tr ‘[:upper:]’ ‘[:lower:]’
++ echo fr_FR.UTF-8
-
local current_lang=fr_fr.utf-8
-
local driver=
-
‘[’ cnijfilter = cnijfilter ‘]’
-
driver=printer
-
local lc_file=nolocalize
-
case “${current_lang##*.}” in
-
case “${current_lang%%.*}” in
-
lc_file=printer_fr_utf8.lc
-
‘[’ printer_fr_utf8.lc ‘!=’ nolocalize ‘]’
-
‘[’ -f ./resources/printer_fr_utf8.lc ‘]’
-
source ./resources/printer_fr_utf8.lc
++ L_INST_PRN_00_01=‘Pilote d’’‘imprimante Canon Inkjet’
++ L_INST_PRN_00_02=‘Version %s’
++ L_INST_PRN_00_03=‘Copyright CANON INC. %s-%s’
++ L_INST_PRN_01_01=‘Enregistrer l’’‘imprimante\n’
++ L_INST_PRN_01_02=‘Ensuite, enregistrez l’’‘imprimante sur l’’‘ordinateur.\n’
++ L_INST_PRN_01_03=‘Branchez l’’‘imprimante et mettez-la sous tension.\nPour utiliser l’’‘imprimante en réseau, connectez-la au réseau.\nLorsque l’’‘imprimante est prête, appuyez sur la touche Entrée.\n’
++ L_INST_PRN_01_04=‘Méthode de connexion\n’
++ L_INST_PRN_01_05=‘USB\n’
++ L_INST_PRN_01_06=‘Réseau\n’
++ L_INST_PRN_01_07=‘Sélectionnez la méthode de connexion.%s’
++ L_INST_PRN_01_08=‘Recherche des imprimantes en cours…\n’
++ L_INST_PRN_01_09=‘Sélectionner une imprimante\n’
++ L_INST_PRN_01_10=‘Sélectionnez l’’‘imprimante.\nSi l’’‘imprimante à utiliser ne figure pas dans la liste, sélectionnez Mettre à jour [0] pour lancer de nouveau la recherche.\nPour annuler le processus, entrez [Q].\n’
++ L_INST_PRN_01_11=‘Mettre à jour’
++ L_INST_PRN_01_12=‘Imprimantes cibles détectées (adresse MAC adresse IP)\n’
++ L_INST_PRN_01_13=‘Autres imprimantes détectées (adresse MAC adresse IP)\n’
++ L_INST_PRN_01_14=‘Imprimantes cibles détectées\n’
++ L_INST_PRN_01_15=‘Autres imprimantes détectées\n’
++ L_INST_PRN_01_16=‘Sélection actuelle : %s %s\n’
++ L_INST_PRN_01_17=‘Entrez la valeur.’
++ L_INST_PRN_01_18=‘Impossible de détecter l’’‘imprimante cible.\n’
++ L_INST_PRN_01_19=‘Enregistrer l’’‘imprimante\n’
++ L_INST_PRN_01_20=‘Entrez le nom de l’’‘imprimante.%s’
++ L_INST_PRN_01_21=‘Le nom de l’’‘imprimante que vous avez entré existe déjà. Voulez-vous l’’‘écraser ?\nEntrez [y] pour Oui ou [n] pour Non.%s’
++ L_INST_PRN_01_22=‘Le nom de l’’‘imprimante n’’‘est pas valide.\nVous ne pouvez utiliser que les caractères suivants pour le nom de l’’‘imprimante :\n caractères alphanumériques (a-z, A-Z, 0-9), “.”, “-”, “_”, “+”, “@”\n’
++ L_INST_PRN_01_23=‘Définir l’’‘imprimante par défaut\n’
++ L_INST_PRN_01_24=‘Voulez-vous définir cette imprimante par défaut ?\nEntrez [y] pour Oui ou [n] pour Non.%s’
++ L_INST_PRN_01_25=‘Nom de l’’‘imprimante : %s\n’
++ L_INST_PRN_01_26=‘Sélectionnez le nom de cette imprimante pour l’’‘impression.\n’
++ L_INST_PRN_01_27=‘L’’‘enregistrement de l’’‘imprimante n’’‘est pas terminée.\nEnregistrez l’’‘imprimante manuellement à l’’‘aide de la commande lpadmin.\n’
++ L_INST_PRN_02_01=‘Désinstaller l’’‘imprimante\n’
++ L_INST_PRN_02_02=‘L’’‘enregistrement de toutes les imprimantes de ce modèle sera supprimé.\n’
++ L_INST_PRN_02_03=‘Voulez-vous continuer ?\nEntrez [y] pour Oui ou [n] pour Non.%s’
++ L_INST_PRN_02_04=‘Echec de la suppression de [%s].\nA l’’‘issue du processus de désinstallation, supprimez cette imprimante manuellement à l’’‘aide de la commande lpadmin.\n’
++ L_INST_PRN_02_05=‘Echec de la suppression des imprimantes.\nA l’’‘issue du processus de désinstallation, supprimez ces imprimantes manuellement à l’’‘aide de la commande lpadmin.\n’
++ L_INST_COM_01_01=‘Commande exécutée = %s\n’
++ L_INST_COM_01_02=‘Une erreur s’’‘est produite. Impossible d’’‘identifier le gestionnaire de paquets.\n’
++ L_INST_COM_01_03=‘Une erreur s’’‘est produite. Impossible de trouver un paquet requis à l’’‘emplacement approprié.\n’
++ L_INST_COM_01_04=‘L’’‘installation est terminée.\n’
++ L_INST_COM_01_05=‘Une erreur s’’‘est produite. Impossible d’’‘identifier votre environnement comme 32 bits ou 64 bits.\nEssayez à nouveau d’’‘installer à l’’‘aide de la commande suivante :\n’
++ L_INST_COM_01_06=‘Une erreur s’’‘est produite. Votre environnement ne correspond pas à l’’‘environnement spécifié.\nEssayez à nouveau d’’‘installer à l’’‘aide de la commande suivante :\n’
++ L_INST_COM_02_01=‘Syntaxe : %s\n’
++ L_INST_COM_02_02=‘La désinstallation est terminée.\n’
++ L_INST_COM_03_01=’[Paquet]\n’
-
return 0
-
C_FUNC_get_system
-
local c_system_rpm=
-
local c_system_deb=
-
rpm --version
-
c_system_rpm=127
-
dpkg --version
-
c_system_deb=0
-
‘[’ 127 ‘!=’ 0 -a 0 ‘!=’ 0 ‘]’
-
‘[’ 127 = 0 -a 0 = 0 ‘]’
-
test 127 -eq 0
-
C_system=deb
-
‘[’ deb = rpm ‘]’
-
C_arch32=i386
-
C_arch64=amd64
-
return 0
-
‘[’ 0 -eq 0 ‘]’
-
‘[’ deb = rpm ‘]’
-
sudo echo
-
‘[’ 0 -ne 0 ‘]’
-
echo ==================================================
==================================================
-
echo
-
P_FUNC_show_copyright 4.10
-
printf ‘Pilote d’’'imprimante Canon Inkjet\n’
Pilote d’imprimante Canon Inkjet
-
printf ‘Version %s\n’ 4.10
Version 4.10
-
printf ‘Copyright CANON INC. %s-%s\n’ 2001 2014
Copyright CANON INC. 2001-2014
-
echo
-
echo ==================================================
==================================================
-
‘[’ 0 -eq 1 ‘]’
-
‘[’ 0 -ne 0 ‘]’
-
‘[’ no_error = err_usage ‘]’
-
C_FUNC_get_system
-
local c_system_rpm=
-
local c_system_deb=
-
rpm --version
-
c_system_rpm=127
-
dpkg --version
-
c_system_deb=0
-
‘[’ 127 ‘!=’ 0 -a 0 ‘!=’ 0 ‘]’
-
‘[’ 127 = 0 -a 0 = 0 ‘]’
-
test 127 -eq 0
-
C_system=deb
-
‘[’ deb = rpm ‘]’
-
C_arch32=i386
-
C_arch64=amd64
-
return 0
-
‘[’ 0 -ne 0 ‘]’
-
C_FUNC_get_bitconf
-
local c_bit_conf=
-
local c_sudo_command=
-
local c_arg1=
-
‘[’ deb = deb ‘]’
-
c_sudo_command='sudo ’
-
getconf LONG_BIT
-
‘[’ 0 -eq 0 ‘]’
++ getconf LONG_BIT
-
c_bit_conf=64
-
‘[’ -z ‘]’
-
‘[’ -z 64 ‘]’
-
‘[’ 64 = 32 ‘]’
-
‘[’ 64 = 64 ‘]’
-
C_arch=amd64
-
‘[’ no_error = err_mismatch ‘]’
-
‘[’ no_error = err_unknown ‘]’
-
return 0
-
‘[’ 0 -ne 0 ‘]’
+++ dirname ./install.sh
++ echo .
-
C_pkg_path=./packages
-
‘[’ ‘!’ -d ./packages ‘]’
-
C_file_cnt=0
-
C_files=’./packages/amd64’
-
for filename in ‘$C_files’
-
‘[’ ./packages/cnijfilter-common_4.10-1_amd64.deb ‘!=’ ./packages ‘]’
++ expr 0 + 1
-
C_file_cnt=1
++ echo cnijfilter-common_4.10-1_amd64.deb
-
C_onlyfname=cnijfilter-common_4.10-1_amd64.deb
++ echo deb
++ echo cnijfilter
-
‘[’ deb ‘!=’ deb -o cnijfilter ‘!=’ cnijfilter ‘]’
++ echo common_4.10-1_amd64.deb
-
C_tmpstr=common_4.10-1_amd64.deb
-
‘[’ deb = rpm ‘]’
++ echo common
-
‘[’ common ‘!=’ common ‘]’
-
for filename in ‘$C_files’
-
‘[’ ./packages/cnijfilter-mx470series_4.10-1_amd64.deb ‘!=’ ./packages ‘]’
++ expr 1 + 1
-
C_file_cnt=2
++ echo cnijfilter-mx470series_4.10-1_amd64.deb
-
C_onlyfname=cnijfilter-mx470series_4.10-1_amd64.deb
++ echo deb
++ echo cnijfilter
-
‘[’ deb ‘!=’ deb -o cnijfilter ‘!=’ cnijfilter ‘]’
++ echo mx470series_4.10-1_amd64.deb
-
C_tmpstr=mx470series_4.10-1_amd64.deb
-
‘[’ deb = rpm ‘]’
++ echo mx470series
-
‘[’ mx470series ‘!=’ common ‘]’
++ echo mx470series
-
C_device=mx470series
-
‘[’ 2 -ne 2 ‘]’
-
C_pkgname_common=cnijfilter-common
-
C_pkgname_depend=cnijfilter-mx470series
-
‘[’ deb = rpm ‘]’
-
C_fpath_common=./packages/cnijfilter-common_4.10-1_amd64.deb
-
C_fpath_depend=./packages/cnijfilter-mx470series_4.10-1_amd64.deb
-
‘[’ ‘!’ -f ./packages/cnijfilter-common_4.10-1_amd64.deb ‘]’
-
‘[’ ‘!’ -f ./packages/cnijfilter-mx470series_4.10-1_amd64.deb ‘]’
-
‘[’ deb = rpm ‘]’
-
C_install_process=C_FUNC_deb_install_process
-
C_uninstall_command=‘sudo dpkg -P’
-
C_script_path=/usr/bin
-
C_sudo_command=sudo
-
C_FUNC_deb_install_process ./packages/cnijfilter-common_4.10-1_amd64.deb cnijfilter-common
-
local c_fpath_pkg_name=./packages/cnijfilter-common_4.10-1_amd64.deb
-
C_FUNC_show_and_exec ‘sudo dpkg -iG ./packages/cnijfilter-common_4.10-1_amd64.deb’
-
printf ‘Commande exécutée = %s\n’ 'sudo dpkg -iG ./packages/cnijfilter-common_4.10-1_amd64.deb’
Commande exécutée = sudo dpkg -iG ./packages/cnijfilter-common_4.10-1_amd64.deb
-
sudo dpkg -iG ./packages/cnijfilter-common_4.10-1_amd64.deb
(Lecture de la base de données… 222379 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de …/cnijfilter-common_4.10-1_amd64.deb …
Dépaquetage de cnijfilter-common (4.10-1) sur (4.10-1) …
Paramétrage de cnijfilter-common (4.10-1) …
Traitement des actions différées (« triggers ») pour libc-bin (2.19-18+deb8u10) …
-
‘[’ 0 ‘!=’ 0 ‘]’
-
return 0
-
‘[’ 0 -ne 0 ‘]’
-
C_FUNC_deb_install_process ./packages/cnijfilter-mx470series_4.10-1_amd64.deb cnijfilter-mx470series
-
local c_fpath_pkg_name=./packages/cnijfilter-mx470series_4.10-1_amd64.deb
-
C_FUNC_show_and_exec ‘sudo dpkg -iG ./packages/cnijfilter-mx470series_4.10-1_amd64.deb’
-
printf ‘Commande exécutée = %s\n’ 'sudo dpkg -iG ./packages/cnijfilter-mx470series_4.10-1_amd64.deb’
Commande exécutée = sudo dpkg -iG ./packages/cnijfilter-mx470series_4.10-1_amd64.deb
-
sudo dpkg -iG ./packages/cnijfilter-mx470series_4.10-1_amd64.deb
(Lecture de la base de données… 222379 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de …/cnijfilter-mx470series_4.10-1_amd64.deb …
Dépaquetage de cnijfilter-mx470series (4.10-1) sur (4.10-1) …
Paramétrage de cnijfilter-mx470series (4.10-1) …
Traitement des actions différées (« triggers ») pour libc-bin (2.19-18+deb8u10) …
-
‘[’ 0 ‘!=’ 0 ‘]’
-
return 0
-
‘[’ 0 -ne 0 ‘]’
-
C_pkgconfig_fname=cnijfilter-mx470series-pkgconfig.sh
-
C_pkgconfig_dname=cnijfilter-mx470series-pkgconfig
-
cnijfilter-mx470series-pkgconfig.sh --pkgconfig
-
‘[’ 0 -ne 0 ‘]’
++ cnijfilter-mx470series-pkgconfig.sh --pkgconfig
-
C_installed_config_ver=4.10-1
-
C_FUNC_version_comp 4.10-1 4.10-1
-
local c_tmpstr=
-
local c_ver1=
-
local c_ver2=
-
local c_rela1=
-
local c_reln1=
-
local c_rela2=
-
local c_reln2=
++ echo 4.10
-
c_tmpstr=4.10
++ echo 4
++ echo 10
-
c_ver1=410
++ echo 4.10
-
c_tmpstr=4.10
++ echo 4
++ echo 10
-
c_ver2=410
-
‘[’ 410 -gt 410 ‘]’
-
‘[’ 410 -lt 410 ‘]’
++ echo 1
-
c_tmpstr=1
++ echo
-
c_rela1=
++ echo 1
-
c_reln1=1
++ echo 1
-
c_tmpstr=1
++ echo
-
c_rela2=
++ echo 1
-
c_reln2=1
-
‘[’ -z ‘’ ‘]’
-
‘[’ -n ‘’ ‘]’
-
‘[’ -n ‘’ ‘]’
-
‘[’ -n ‘’ ‘]’
-
‘[’ 1 -gt 1 ‘]’
-
‘[’ 1 -lt 1 ‘]’
-
return 40
-
‘[’ 40 -lt 40 ‘]’
-
P_FUNC_MAIN_make_queue ‘L’’‘installation est terminée.\n’ mx470series deb
-
IFS_ORG=’
’
-
P_printer_device=mx470series
-
‘[’ deb = rpm ‘]’
-
P_printer_sudo_command='sudo ’
-
P_entry_list_path=/usr/share/cnijfilter/
-
‘[’ ‘!’ -d /usr/share/cnijfilter/ ‘]’
-
P_entry_list_fullname=/usr/share/cnijfilter/cnij_entry_mx470series
-
sudo touch /usr/share/cnijfilter/cnij_entry_mx470series
-
p_FUNC_get_cupsd_command
-
local p_local_service_command_tmp=
-
local p_local_service_command=
-
local p_local_systemctl_command_tmp=
-
local p_local_systemctl_command=
++ whereis -b systemctl
-
p_local_systemctl_command_tmp=‘systemctl: /bin/systemctl’
++ echo -n systemctl: /bin/systemctl
++ cut -s '-d ’ -f2
-
p_local_systemctl_command=/bin/systemctl
-
‘[’ -n /bin/systemctl ‘]’
-
/bin/systemctl status cups.service
Failed to get D-Bus connection: Erreur inconnue -1
-
‘[’ 1 -eq 0 ‘]’
++ whereis -b service
-
p_local_service_command_tmp=‘service: /usr/sbin/service’
++ cut -s '-d ’ -f2
++ echo -n service: /usr/sbin/service
-
p_local_service_command=/usr/sbin/service
-
‘[’ -n /usr/sbin/service ‘]’
-
/usr/sbin/service cups status
-
‘[’ 0 -eq 0 ‘]’
-
P_cupsd_command_current=‘sudo /usr/sbin/service cups restart’
-
return 0
-
‘[’ 0 -ne 0 ‘]’
-
p_FUNC_get_lpadmin_command
-
‘[’ -f /usr/sbin/lpadmin ‘]’
-
P_lpadmin_command_current=‘sudo /usr/sbin/lpadmin’
-
return 0
-
‘[’ 0 -ne 0 ‘]’
-
p_FUNC_execute_prepare_process
-
local p_local_command=
++ cut '-d ’ -f2
++ whereis -b ldconfig
-
p_local_command=/sbin/ldconfig
++ sudo /sbin/ldconfig
-
printf ‘\n’
-
printf ‘#=========================================================#\n’
#=========================================================#
-
printf ‘# Enregistrer l’’‘imprimante\n’