logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 31-12-2017 00:37:46

LMDE
Membre
Distrib. : Antix16 (Jessie)
Noyau : 4.4.10-antix.1-486-smp
(G)UI : openbox
Inscription : 25-11-2017

[Résolu] probleme de droits en super utilisateur root sur /var/lib/

Bonjour ,
j'ai ce message d'erreur quand  je lance cette commmande :

bash: /var/lib/dpkg/status: Permission non accordée



un chmod 777 resoudrait sans doute le problème, mais c'est une commande puissante succeptible de faire des dégats si elle est elle mal formulée  par un debutant comme moi !
je ne sais d'ailleurs pas trop quoi corriger dans les droits ci dessous? la ligne lock ? un avis éclairé serait bienvenu.

ls -l /var/lib/dpkg



total 3216
drwxr-xr-x 2 root root    4096 déc.  17 16:51 alternatives
-rw-r--r-- 1 root root  126871 juin  21  2016 available
-rw-r--r-- 1 root root       8 juin  21  2016 cmethopt
-rw-r--r-- 1 root root     817 déc.  10 00:25 diversions
-rw-r--r-- 1 root root     766 déc.   8 23:13 diversions-old
drwxr-xr-x 2 root root  282624 déc.  30 18:38 info
-rw-r----- 1 root root       0 déc.  30 18:38 lock
drwxr-xr-x 2 root root    4096 mai    3  2016 parts
-rw-r--r-- 1 root root     262 juin  26  2016 statoverride
-rw-r--r-- 1 root root 1421968 déc.  30 18:38 status
-rw-r--r-- 1 root root 1421968 déc.  30 18:38 status-old
drwxr-xr-x 2 root root    4096 déc.  10 17:54 triggers
drwxr-xr-x 2 root root    4096 déc.  30 18:38 updates



#

ls -l /var/lib/



total 208
drwxr-xr-x 2 root  root    4096 nov.  10  2014 acpi-support
drwxr-xr-x 2 root  root    4096 déc.  30 22:57 alsa
drwxr-xr-x 5 root  root    4096 déc.  30 18:38 apt
drwxr-xr-x 2 root  root    4096 juin  26  2016 aspell
drwxr-xr-x 2 root  root    4096 août  15  2014 bittorrent
drwxr-xr-x 2 root  root    4096 nov.   4  2016 dbus
drwxr-xr-x 2 root  root    4096 juin  26  2016 deborphan
drwxr-xr-x 2 root  root    4096 nov.   4  2016 dhcp
drwxr-xr-x 5 root  root    4096 juin  26  2016 dictionaries-common
drwxr-xr-x 3 root  root    4096 déc.   3 19:07 dkms
drwxr-xr-x 7 root  root    4096 déc.  30 18:38 dpkg
drwxr-xr-x 3 root  root    4096 juin  26  2016 emacsen-common
drwxr-xr-x 2 root  root    4096 déc.   3 18:34 flashplugin-nonfree
drwxr-xr-x 5 root  root    4096 juin  26  2016 gconf
drwxr-xr-x 4 root  root    4096 juin  26  2016 ghostscript
drwxr-xr-x 2 root  root    4096 nov.   8  2014 hp
drwxr-xr-x 2 root  root    4096 déc.   9 21:03 initramfs-tools
drwxr-xr-x 2 root  root    4096 avril  6  2015 initscripts
drwxr-xr-x 2 root  root    4096 avril  6  2015 insserv
drwxr-xr-x 3 root  root    4096 juin  26  2016 libreoffice
drwxr-xr-x 2 root  root    4096 nov.   8  2014 logrotate
drwxr-xr-x 2 root  root    4096 juin  21  2016 man-db
drwxr-xr-x 6 root  root    4096 déc.  10 17:54 menu-xdg
drwxr-xr-x 2 root  root    4096 mai   30  2016 misc
drwxr-xr-x 2 root  root    4096 déc.  17 16:52 mlocate
drwxr-xr-x 4 statd nogroup 4096 nov.   4  2016 nfs
drwxr-xr-x 2 root  root    4096 oct.  28  2015 ntpdate
drwxr-xr-x 2 root  root    4096 déc.  10 17:54 openbox
drwxr-xr-x 2 root  root    4096 déc.   3 19:07 os-prober
drwxr-xr-x 2 root  root    4096 déc.   3 18:39 pam
drwx------ 3 root  root    4096 juin  26  2016 polkit-1
drwxr-xr-x 2 root  root    4096 juin  26  2016 python
lrwxrwxrwx 1 root  root      18 juin  26  2016 python-support -> /usr/lib/pymodules
drwxr-xr-x 2 root  root    4096 juin  26  2016 resolvconf
drwxr-xr-x 3 root  root    4096 nov.   4  2016 samba
drwxr-xr-x 2 root  root    4096 juin  26  2016 sgml-base
drwxr-xr-x 3 root  root    4096 juin  26  2016 smartmontools
drwxr-xr-x 2 root  root    4096 avril 14  2015 snmp
drwxr-xr-x 4 root  root    4096 nov.   4  2016 sudo
drwxr-xr-x 2 root  root    4096 mai   16  2014 synaptic
drwxr-xr-x 3 root  root    4096 juin  26  2016 systemd
drwxr-xr-x 3 root  root    4096 déc.   3 22:38 ucf
drwxr-xr-x 2 root  root    4096 déc.  10 20:53 udisks
drwxr-xr-x 2 root  root    4096 nov.  23  2012 update-rc.d
drwxr-xr-x 2 root  root    4096 déc.  10 18:15 upower
drwxr-xr-x 2 root  root    4096 nov.   4  2016 urandom
drwxr-xr-x 2 root  root    4096 août  12  2014 usb_modeswitch
drwxr-xr-x 2 root  root    4096 déc.  10 01:20 usbutils
drwxr-xr-x 3 root  root    4096 juin  26  2016 vim
drwxr-xr-x 3 root  root    4096 nov.   4  2016 wicd
drwxr-xr-x 2 root  root    4096 juin  26  2016 xfonts
drwxr-xr-x 2 root  root    4096 déc.  30 22:59 xkb
drwxr-xr-x 2 root  root    4096 juin  26  2016 xml-core

/var/lib/dpkg/status

Dernière modification par LMDE (01-01-2018 22:24:53)


CLEVO Co L297p
Intel celeron 2.60GHz 751MB
Bios 12/03/2003 
1024x768 pixels X.org version 1.16.4

Hors ligne

#2 31-12-2017 00:48:59

Philou92
Adhérent(e)
Lieu : Hauts de Seine
Distrib. : Debian bookworm
Noyau : Linux 6.1.0-13-amd64
(G)UI : LightDM et Xfce4.18
Inscription : 29-04-2015

Re : [Résolu] probleme de droits en super utilisateur root sur /var/lib/

Le fichier /var/lib/dpkg/status est un fichier texte qui liste l'état de l'ensemble de tes paquets logiciel. Ce n'est pas une commande.

Je ne sais pas ce que tu comptes faire avec, normalement il n'y a pas lieu de le modifier.

Sinons tu peux toujours le lire avec la commande :

cat /var/lib/dpkg/status




ou bien avec :

less /var/lib/dpkg/status


Tousse antique Ovide !

Hors ligne

#3 31-12-2017 01:11:19

LMDE
Membre
Distrib. : Antix16 (Jessie)
Noyau : 4.4.10-antix.1-486-smp
(G)UI : openbox
Inscription : 25-11-2017

Re : [Résolu] probleme de droits en super utilisateur root sur /var/lib/

oui je souhaitais lister l'état de l'ensemble de mes paquets logiciel, mais je cherchais une commande  capable de m'indiquer précisemment si tel ou tels paquets sont bien installés . Avec les 2 commandes que tu m'as indiqué,  la réponse  :  statut des paquets cela donne "install ok  installed" .
merci , je ne vois  pas ou cliquer pour passer ce sujet en résolu ?

Dernière modification par LMDE (31-12-2017 01:28:10)


CLEVO Co L297p
Intel celeron 2.60GHz 751MB
Bios 12/03/2003 
1024x768 pixels X.org version 1.16.4

Hors ligne

#4 31-12-2017 10:18:48

Philou92
Adhérent(e)
Lieu : Hauts de Seine
Distrib. : Debian bookworm
Noyau : Linux 6.1.0-13-amd64
(G)UI : LightDM et Xfce4.18
Inscription : 29-04-2015

Re : [Résolu] probleme de droits en super utilisateur root sur /var/lib/

Voir le tuto : C'est résolu ! Bravo mais il faut l'indiquer dans l'titre.

Le lien ci-dessus te donnera la marche à suivre. smile

Tousse antique Ovide !

Hors ligne

#5 31-12-2017 11:08:52

nono47
Invité

Re : [Résolu] probleme de droits en super utilisateur root sur /var/lib/

Salut,

C'est récurent la demande de bouton " résolu " . big_smile

#6 31-12-2017 14:14:39

Philou92
Adhérent(e)
Lieu : Hauts de Seine
Distrib. : Debian bookworm
Noyau : Linux 6.1.0-13-amd64
(G)UI : LightDM et Xfce4.18
Inscription : 29-04-2015

Re : [Résolu] probleme de droits en super utilisateur root sur /var/lib/

Présence d'un bouton = plus de point choco sad

Dernière modification par Philou92 (31-12-2017 14:15:01)


Tousse antique Ovide !

Hors ligne

Pied de page des forums