['Arch Updates' Gnome Extension] j'ai affiché 4 mises à jour

Xorg, Compiz, KDE / Gnome / Xfce / Fluxbox / e17 / fvwm ... GDM/KDM/XDM...
Répondre
Avatar de l’utilisateur
Paullux
yeomen
Messages : 222
Inscription : dim. 18 sept. 2016, 19:09
Localisation : Tours
Contact :

['Arch Updates' Gnome Extension] j'ai affiché 4 mises à jour

Message par Paullux »

Bonsoir,

Je suis sous Gnome 3.24, j'ai l'extension Gnome 'Arch Updates' qui me permet d'afficher et d'installer les mises à jour de mon système.

Mais là il me dit que j'ai 4 mises à jour à installer, alors que Pacman, Yaourt ou Pacaur me disent que mon système est à jour, jusqu'à présent ça marchait nickel.

J'ai besoin d'un peu d'aide pour résoudre le problème, quelqu'un peut il m'aider ?

Pour info, ma configuration de l'extension :

Code : Tout sélectionner

Commande pour rechercher les mises à jour de paquets :
/usr/bin/sh -c "/usr/bin/checkupdates; /usr/bin/checkupdates-aur"

Commande pour mettre à jour les paquets :
tilix -e 'sh -c  "yaourt -Syu --aur --noconfirm; echo; echo Transaction terminée... appuyer sur entrée pour fermer la fenêtre.; read" '

Dossier local de Pacman - Pour détecter quand des pacquets sont installés :
/var/lib/pacman/local
/usr/bin/checkupdates :

Code : Tout sélectionner

#!/usr/bin/bash
#
#   checkupdates: Safely print a list of pending updates.
#
#   Copyright (c) 2013 Kyle Keen <keenerd@gmail.com>
#
#   This program is free software; you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by
#   the Free Software Foundation; either version 2 of the License, or
#   (at your option) any later version.
#
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU General Public License for more details.
#
#   You should have received a copy of the GNU General Public License
#   along with this program.  If not, see <http://www.gnu.org/licenses/>.
#

declare -r myname='checkupdates'
declare -r myver='5.0.1'

plain() {
	(( QUIET )) && return
	local mesg=$1; shift
	printf "${BOLD}    ${mesg}${ALL_OFF}\n" "$@" >&1
}

msg() {
	(( QUIET )) && return
	local mesg=$1; shift
	printf "${GREEN}==>${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&1
}

msg2() {
	(( QUIET )) && return
	local mesg=$1; shift
	printf "${BLUE}  ->${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&1
}

ask() {
	local mesg=$1; shift
	printf "${BLUE}::${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}" "$@" >&1
}

warning() {
	local mesg=$1; shift
	printf "${YELLOW}==> $(gettext "WARNING:")${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&2
}

error() {
	local mesg=$1; shift
	printf "${RED}==> $(gettext "ERROR:")${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&2
}

# check if messages are to be printed using color
unset ALL_OFF BOLD BLUE GREEN RED YELLOW
if [[ -t 2 && ! $USE_COLOR = "n" ]]; then
	# prefer terminal safe colored and bold text when tput is supported
	if tput setaf 0 &>/dev/null; then
		ALL_OFF="$(tput sgr0)"
		BOLD="$(tput bold)"
		BLUE="${BOLD}$(tput setaf 4)"
		GREEN="${BOLD}$(tput setaf 2)"
		RED="${BOLD}$(tput setaf 1)"
		YELLOW="${BOLD}$(tput setaf 3)"
	else
		ALL_OFF="\e[1;0m"
		BOLD="\e[1;1m"
		BLUE="${BOLD}\e[1;34m"
		GREEN="${BOLD}\e[1;32m"
		RED="${BOLD}\e[1;31m"
		YELLOW="${BOLD}\e[1;33m"
	fi
fi
readonly ALL_OFF BOLD BLUE GREEN RED YELLOW


if (( $# > 0 )); then
	echo "${myname} (pacman) v${myver}"
	echo
	echo "Safely print a list of pending updates"
	echo
	echo "Usage: ${myname}"
	echo
	echo 'Note: Export the "CHECKUPDATES_DB" variable to change the path of the temporary database.'
	exit 0
fi

if ! type -P fakeroot >/dev/null; then
	error 'Cannot find the fakeroot binary.'
	exit 1
fi

if [[ -z $CHECKUPDATES_DB ]]; then
	CHECKUPDATES_DB="${TMPDIR:-/tmp}/checkup-db-${USER}/"
fi

trap 'rm -f $CHECKUPDATES_DB/db.lck' INT TERM EXIT

DBPath="${DBPath:-/var/lib/pacman/}"
eval $(awk -F' *= *' '$1 ~ /DBPath/ { print $1 "=" $2 }' /etc/pacman.conf)

mkdir -p "$CHECKUPDATES_DB"
ln -s "${DBPath}/local" "$CHECKUPDATES_DB" &> /dev/null
fakeroot -- pacman -Sy --dbpath "$CHECKUPDATES_DB" --logfile /dev/null &> /dev/null
pacman -Qu --dbpath "$CHECKUPDATES_DB" 2> /dev/null | grep -v '\[.*\]'

exit 0

# vim: set noet:
/usr/bin/checkupdates-aur :

Code : Tout sélectionner

#!/usr/bin/perl
use v5.16;
use strict;
use warnings;

use OS::CheckUpdates::AUR;
use Try::Tiny;

my $cua = OS::CheckUpdates::AUR->new;

if (" @ARGV " =~ / -(h|-help) /) {
	say("USAGE:\n    checkupdates-aur\n\nMORE INFO:\n    See man page...");
	exit 0;
}

try {
	$cua->print();
} catch {
	$ENV{CHECKUPDATES_DEBUG}
		and print STDERR $_;

	exit $!;
}

__END__

=head1 NAME

checkupdates-aur - checkupdates for aur

=head1 VERSION

Version 0.04

=cut

=head1 SYNOPSIS

Prints updates for AUR in checkupdates format...

Hint: Should be useful in "ArchLinux Updates Indicator" addon for Gnome-Shell.

=cut

=head1 USAGE

To run normally:

	checkupdates-aur

To run in debug mode:

	CHECKUPDATES_DEBUG=1 checkupdates-aur

Debug mode require Smart::Comments

=cut

=head1 AUTHOR

3ED, C<< <krzysztof1987 at gmail.com> >>

=head1 BUGS

Please report any bugs or feature requests to C<bug-checkupdates-aur at rt.cpan.org>, or through
the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=OS-CheckUpdates-AUR>.  I will be notified, and then you'll
automatically be notified of progress on your bug as I make changes.




=head1 SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc OS::CheckUpdates::AUR


You can also look for information at:

=over 4

=item * RT: CPAN's request tracker (report bugs here)

L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=OS-CheckUpdates-AUR>

=item * AnnoCPAN: Annotated CPAN documentation

L<http://annocpan.org/dist/OS-CheckUpdates-AUR>

=item * CPAN Ratings

L<http://cpanratings.perl.org/d/OS-CheckUpdates-AUR>

=item * Search CPAN

L<http://search.cpan.org/dist/OS-CheckUpdates-AUR/>

=back


=head1 ACKNOWLEDGEMENTS


=head1 LICENSE AND COPYRIGHT

Copyright 2016 3ED.

This program is free software; you can redistribute it and/or modify it
under the terms of the the Artistic License (2.0). You may obtain a
copy of the full license at:

L<http://www.perlfoundation.org/artistic_license_2_0>

Any use, modification, and distribution of the Standard or Modified
Versions is governed by this Artistic License. By using, modifying or
distributing the Package, you accept this license. Do not use, modify,
or distribute the Package, if you do not accept this license.

If your Modified Version has been derived from a Modified Version made
by someone other than you, you are nevertheless required to ensure that
your Modified Version complies with the requirements of this license.

This license does not grant you the right to use any trademark, service
mark, tradename, or logo of the Copyright Holder.

This license includes the non-exclusive, worldwide, free-of-charge
patent license to make, have made, use, offer to sell, sell, import and
otherwise transfer the Package with respect to any patent claims
licensable by the Copyright Holder that are necessarily infringed by the
Package. If you institute patent litigation (including a cross-claim or
counterclaim) against any party alleging that the Package constitutes
direct or contributory patent infringement, then this Artistic License
to you shall terminate on the date that such litigation is filed.

Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER
AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY
YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR
CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR
CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


=cut
Actuellement je bosse avec toute une petite équipe de bénévoles a essayé d'adapter Kubuntu aux personne en situation de handicap.
La distribution d'appelle DVKBuntu, en voici se site web : https://www.handy-open-source.org/
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17186
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: ['Arch Updates' Gnome Extension] j'ai affiché 4 mises à jour

Message par benjarobin »

Bonjour,
Et donc quelle est la sortie des 2 scripts (checkupdates-aur et checkupdates) ?
Zsh | KDE | PC fixe : core i7, carte nvidia
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
Avatar de l’utilisateur
Paullux
yeomen
Messages : 222
Inscription : dim. 18 sept. 2016, 19:09
Localisation : Tours
Contact :

Re: ['Arch Updates' Gnome Extension] j'ai affiché 4 mises à jour

Message par Paullux »

Code : Tout sélectionner

 paul  ~ /usr/bin/checkupdates
libgadu 1.12.2-2 -> 1.12.2-3
libphonenumber 8.4.1-2 -> 8.4.1-3
protobuf 3.2.1-1 -> 3.3.1-1
protobuf-c 1.2.1-5 -> 1.2.1-6
 paul  ~ /usr/bin/checkupdates-aur

Code : Tout sélectionner

 paul  ~  sudo pacman -S libgadu libphonenumber protobuf protobuf-c
avertissement : libgadu-1.12.2-2 est à jour -- réinstalle
avertissement : libphonenumber-8.4.1-2 est à jour -- réinstalle
avertissement : protobuf-3.2.1-1 est à jour -- réinstalle
avertissement : protobuf-c-1.2.1-5 est à jour -- réinstalle
résolution des dépendances...
recherche des conflits entre paquets...

Paquets (4) libgadu-1.12.2-2  libphonenumber-8.4.1-2
            protobuf-3.2.1-1  protobuf-c-1.2.1-5

Taille totale installée :     23,94 MiB
Taille de mise à jour nette :   0,00 MiB

:: Procéder à l’installation ? [O/n] 
(4/4) vérification des clés dans le trousseau      [###] 100%
(4/4) vérification de l’intégrité des paquets      [###] 100%
(4/4) chargement des fichiers des paquets          [###] 100%
(4/4) analyse des conflits entre fichiers          [###] 100%
(4/4) vérification de l’espace disque disponible   [###] 100%
:: Traitement des changements du paquet...
(1/4) réinstallation protobuf                      [###] 100%
(2/4) réinstallation protobuf-c                    [###] 100%
(3/4) réinstallation libgadu                       [###] 100%
(4/4) réinstallation libphonenumber                [###] 100%
:: Exécution des crochets de post-transaction...
(1/1) Arming ConditionNeedsUpdate...
Dernière modification par Paullux le ven. 19 mai 2017, 22:16, modifié 1 fois.
Actuellement je bosse avec toute une petite équipe de bénévoles a essayé d'adapter Kubuntu aux personne en situation de handicap.
La distribution d'appelle DVKBuntu, en voici se site web : https://www.handy-open-source.org/
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17186
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: ['Arch Updates' Gnome Extension] j'ai affiché 4 mises à jour

Message par benjarobin »

Euh, je ne comprends pas trop le but de la commande pacman que tu viens de donner, je ne vois vraiment pas ce que cela prouve
Pourquoi tu liste ainsi les paquets, pour une mise à jour tu ne devrais pas faire cela, et cela ne risque pas de force une mise à jour

Quelle est la sortie de : pacman -Syu
Zsh | KDE | PC fixe : core i7, carte nvidia
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
Avatar de l’utilisateur
Paullux
yeomen
Messages : 222
Inscription : dim. 18 sept. 2016, 19:09
Localisation : Tours
Contact :

Re: ['Arch Updates' Gnome Extension] j'ai affiché 4 mises à jour

Message par Paullux »

c'était juste pour donnée la version installé et qui est à jour, alors que le script affiche une version plus récente de ses paquets.

Code : Tout sélectionner

 paul  ~  sudo pacman -Syu
[sudo] Mot de passe de paul : 
:: Synchronisation des bases de données de paquets...
 core est à jour
 extra est à jour           0,0   B  0,00B/s 00:00 [---]   0%
 community                  3,8 MiB  1904K/s 00:02 [###] 100%
 multilib est à jour        0,0   B  0,00B/s 00:00 [---]   0%
:: Début de la mise à jour complète du système...
 il n’y a rien à faire
Actuellement je bosse avec toute une petite équipe de bénévoles a essayé d'adapter Kubuntu aux personne en situation de handicap.
La distribution d'appelle DVKBuntu, en voici se site web : https://www.handy-open-source.org/
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17186
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: ['Arch Updates' Gnome Extension] j'ai affiché 4 mises à jour

Message par benjarobin »

Euh, tu es en effet pas à jour...
Zsh | KDE | PC fixe : core i7, carte nvidia
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
Avatar de l’utilisateur
Paullux
yeomen
Messages : 222
Inscription : dim. 18 sept. 2016, 19:09
Localisation : Tours
Contact :

Re: ['Arch Updates' Gnome Extension] j'ai affiché 4 mises à jour (RÉSOLU)

Message par Paullux »

Ce matin la mise à jour à eu lieu... Bizarre...
Actuellement je bosse avec toute une petite équipe de bénévoles a essayé d'adapter Kubuntu aux personne en situation de handicap.
La distribution d'appelle DVKBuntu, en voici se site web : https://www.handy-open-source.org/
bobo
Elfe
Messages : 593
Inscription : mar. 08 avr. 2014, 22:47

Re: ['Arch Updates' Gnome Extension] j'ai affiché 4 mises à jour

Message par bobo »

Avec fakeroot, pacman se lance-t-il en utilisant bien /etc/pacman.conf et utilise-t-il la liste de miroirs ?
dwm — BÉPO — vim — “more is less !”
Avatar de l’utilisateur
Paullux
yeomen
Messages : 222
Inscription : dim. 18 sept. 2016, 19:09
Localisation : Tours
Contact :

Re: ['Arch Updates' Gnome Extension] j'ai affiché 4 mises à jour

Message par Paullux »

Comment faut-il faire pour lancer pacman avec fakeroot ? Fakeroot ce n'est pas lié à makepkg ?
Actuellement je bosse avec toute une petite équipe de bénévoles a essayé d'adapter Kubuntu aux personne en situation de handicap.
La distribution d'appelle DVKBuntu, en voici se site web : https://www.handy-open-source.org/
lemust83
yeomen
Messages : 206
Inscription : ven. 11 déc. 2015, 21:20

Re: ['Arch Updates' Gnome Extension] j'ai affiché 4 mises à jour

Message par lemust83 »

Oui, fakeroot simule un environnement root lors de la création du paquet. Il n'est pas invoqué pour le téléchargement des sources.
Extrait de la description du paquet de Debian.org.
outil de simulation des privilèges superutilisateur

Le programme fakeroot fournit un environnement root factice en trompant LD_PRELOAD et SysV IPC (ou TCP). Il ajoute un enrobage autour de getuid(), chown(), stats() et d'autres fonctions de manipulations de fichiers. Ainsi, des utilisateurs non privilégiés peuvent, par exemple, construire une archive .deb avec des fichiers appartenant à root. De nombreux outils de construction utilisent fakeroot pour cela par défaut.

Ce paquet fournit la commande fakeroot et le démon qui mémorise les droits et permissions factices des fichiers manipulés par les processus fakeroot.
Les détails du paquet Archlinux:
Tour: Arch (Xfce) 64 Testing: 6-Core: AMD Ryzen 5 2600X type: MT MCP speed: 2152 MHz min/max: 2200/3600 MH
UEFI: American Megatrends v: 3803 date: 01/22/2018
Graphics:
Device-1: AMD Baffin [Radeon RX 460/560D / Pro
450/455/460/555/555X/560/560X]
driver: amdgpu v: kernel
Display: server: X.Org 1.20.8 driver: amdgpu,ati unloaded: modesetting
resolution: 1920x1080~60Hz
OpenGL: renderer: Radeon RX 560 Series
Manjaro en Dual (grub).
Répondre