Hi,
as non-root, the output of ls -lRa /var/lib/apt is ("Permiso denegado"
means "Permission denied" in Spanish). I thought this may be interesting
for you:

ugi@UGI:~$ ls -lRa /var/lib/apt
/var/lib/apt:
total 140
drwxr-xr-x  5 root root  4096 dic  7 22:48 .
drwxr-xr-x 66 root root  4096 nov  8 21:02 ..
-rw-r--r--  1 root root   265 abr 24  2010 cdroms.list
-rw-r--r--  1 root root   265 abr 24  2010 cdroms.list~
-rw-r--r--  1 root root 96483 dic  7 22:48 extended_states
-rw-r--r--  1 root root 12288 nov 26 17:25 listchanges.db
drwx------  3 root root  4096 dic  7 22:36 lists
drwxr-xr-x  3 root root  4096 sep  4  2010 mirrors
drwxr-xr-x  2 root root  4096 nov 11 09:13 periodic
ls: no se puede abrir el directorio /var/lib/apt/lists: Permiso denegado

/var/lib/apt/mirrors:
total 12
drwxr-xr-x 3 root root 4096 sep  4  2010 .
drwxr-xr-x 5 root root 4096 dic  7 22:48 ..
drwxr-xr-x 2 root root 4096 ago 24  2010 partial

/var/lib/apt/mirrors/partial:
total 8
drwxr-xr-x 2 root root 4096 ago 24  2010 .
drwxr-xr-x 3 root root 4096 sep  4  2010 ..

/var/lib/apt/periodic:
total 8
drwxr-xr-x 2 root root 4096 nov 11 09:13 .
drwxr-xr-x 5 root root 4096 dic  7 22:48 ..
-rw-r--r-- 1 root root    0 nov 11 09:13 update-stamp
-rw-r--r-- 1 root root    0 dic  4 15:37 update-success-stamp

The same command run as root:

root@UGI:/home/ugi# ls -lRa /var/lib/apt
/var/lib/apt:
total 140
drwxr-xr-x  5 root root  4096 dic  7 22:48 .
drwxr-xr-x 66 root root  4096 nov  8 21:02 ..
-rw-r--r--  1 root root   265 abr 24  2010 cdroms.list
-rw-r--r--  1 root root   265 abr 24  2010 cdroms.list~
-rw-r--r--  1 root root 96483 dic  7 22:48 extended_states
-rw-r--r--  1 root root 12288 nov 26 17:25 listchanges.db
drwx------  3 root root  4096 dic  7 22:36 lists
drwxr-xr-x  3 root root  4096 sep  4  2010 mirrors
drwxr-xr-x  2 root root  4096 nov 11 09:13 periodic

/var/lib/apt/lists:
total 61300
drwx------ 3 root root     4096 dic  7 22:36 .
drwxr-xr-x 5 root root     4096 dic  7 22:48 ..
-rw-r--r-- 1 root root   239355 dic  7 03:04
ftp.debian.org_debian_dists_wheezy_contrib_binary-i386_Packages
-rw-r--r-- 1 root root     2023 dic  7 03:14
ftp.debian.org_debian_dists_wheezy_contrib_binary-i386_Packages.IndexDiff
-rw-r--r-- 1 root root   183141 dic  7 03:15
ftp.debian.org_debian_dists_wheezy_contrib_source_Sources
-rw-r--r-- 1 root root     2023 dic  7 03:15
ftp.debian.org_debian_dists_wheezy_contrib_source_Sources.IndexDiff
-rw-r--r-- 1 root root   156204 dic  7 21:22
ftp.debian.org_debian_dists_wheezy_InRelease
-rw-r--r-- 1 root root 36710618 dic  7 15:19
ftp.debian.org_debian_dists_wheezy_main_binary-i386_Packages
-rw-r--r-- 1 root root     2038 dic  7 15:19
ftp.debian.org_debian_dists_wheezy_main_binary-i386_Packages.IndexDiff
-rw-r--r-- 1 root root     2045 dic  7 20:56
ftp.debian.org_debian_dists_wheezy_main_i18n_Index
-rw-r--r-- 1 root root  1652580 dic  7 14:02
ftp.debian.org_debian_dists_wheezy_main_i18n_Translation-es
-rw-r--r-- 1 root root 22772967 dic  7 15:21
ftp.debian.org_debian_dists_wheezy_main_source_Sources
-rw-r--r-- 1 root root     2038 dic  7 15:21
ftp.debian.org_debian_dists_wheezy_main_source_Sources.IndexDiff
-rw-r--r-- 1 root root   462807 dic  7 03:04
ftp.debian.org_debian_dists_wheezy_non-free_binary-i386_Packages
-rw-r--r-- 1 root root     2023 dic  7 03:14
ftp.debian.org_debian_dists_wheezy_non-free_binary-i386_Packages.IndexDiff
-rw-r--r-- 1 root root   350874 dic  7 21:05
ftp.debian.org_debian_dists_wheezy_non-free_source_Sources
-rw-r--r-- 1 root root     1265 dic  7 15:21
ftp.debian.org_debian_dists_wheezy_non-free_source_Sources.IndexDiff
-rw------- 1 root root        0 nov 23 11:02 lock
drwx------ 2 root root     4096 dic  8 00:47 partial
-rw-r--r-- 1 root root        0 dic  7 21:52
security.debian.org_dists_wheezy_updates_contrib_binary-i386_Packages
-rw-r--r-- 1 root root        0 dic  7 21:52
security.debian.org_dists_wheezy_updates_contrib_source_Sources
-rw-r--r-- 1 root root    87813 dic  7 21:52
security.debian.org_dists_wheezy_updates_InRelease
-rw-r--r-- 1 root root        0 dic  7 21:52
security.debian.org_dists_wheezy_updates_main_binary-i386_Packages
-rw-r--r-- 1 root root        0 dic  7 21:52
security.debian.org_dists_wheezy_updates_main_source_Sources
-rw-r--r-- 1 root root        0 dic  7 21:52
security.debian.org_dists_wheezy_updates_non-free_binary-i386_Packages
-rw-r--r-- 1 root root        0 dic  7 21:52
security.debian.org_dists_wheezy_updates_non-free_source_Sources

/var/lib/apt/lists/partial:
total 84
drwx------ 2 root root  4096 dic  8 00:47 .
drwx------ 3 root root  4096 dic  7 22:36 ..
-rw------- 1 root root 62499 dic  7 03:04
ftp.debian.org_debian_dists_wheezy_contrib_i18n_Index
-rw------- 1 root root   364 dic  8 00:47
ftp.debian.org_debian_dists_wheezy_InRelease
-rw------- 1 root root   364 dic  8 00:47
security.debian.org_dists_wheezy_updates_InRelease

/var/lib/apt/mirrors:
total 12
drwxr-xr-x 3 root root 4096 sep  4  2010 .
drwxr-xr-x 5 root root 4096 dic  7 22:48 ..
drwxr-xr-x 2 root root 4096 ago 24  2010 partial

/var/lib/apt/mirrors/partial:
total 8
drwxr-xr-x 2 root root 4096 ago 24  2010 .
drwxr-xr-x 3 root root 4096 sep  4  2010 ..

/var/lib/apt/periodic:
total 8
drwxr-xr-x 2 root root 4096 nov 11 09:13 .
drwxr-xr-x 5 root root 4096 dic  7 22:48 ..
-rw-r--r-- 1 root root    0 nov 11 09:13 update-stamp
-rw-r--r-- 1 root root    0 dic  4 15:37 update-success-stamp

Thanks.

2011/12/8 Sven Joachim <[email protected]>

> On 2011-12-08 01:02 +0100, Eugenio M. Vigo wrote:
>
> > running aptitude as root shows no issues at all: the cache is correctly
> > displayed on the ncurses UI and searchingugi@UGI:~$ ls -lRa /var/lib/apt
> /var/lib/apt:
> total 140
> drwxr-xr-x  5 root root  4096 dic  7 22:48 .
> drwxr-xr-x 66 root root  4096 nov  8 21:02 ..
> -rw-r--r--  1 root root   265 abr 24  2010 cdroms.list
> -rw-r--r--  1 root root   265 abr 24  2010 cdroms.list~
> -rw-r--r--  1 root root 96483 dic  7 22:48 extended_states
> -rw-r--r--  1 root root 12288 nov 26 17:25 listchanges.db
> drwx------  3 root root  4096 dic  7 22:36 lists
> drwxr-xr-x  3 root root  4096 sep  4  2010 mirrors
> drwxr-xr-x  2 root root  4096 nov 11 09:13 periodic
> ls: no se puede abrir el directorio /var/lib/apt/lists: Permiso denegado
>
> /var/lib/apt/mirrors:
> total 12
> drwxr-xr-x 3 root root 4096 sep  4  2010 .
> drwxr-xr-x 5 root root 4096 dic  7 22:48 ..
> drwxr-xr-x 2 root root 4096 ago 24  2010 partial
>
> /var/lib/apt/mirrors/partial:
> total 8
> drwxr-xr-x 2 root root 4096 ago 24  2010 .
> drwxr-xr-x 3 root root 4096 sep  4  2010 ..
>
> /var/lib/apt/periodic:
> total 8
> drwxr-xr-x 2 root root 4096 nov 11 09:13 .
> drwxr-xr-x 5 root root 4096 dic  7 22:48 ..
> -rw-r--r-- 1 root root    0 nov 11 09:13 update-stamp
> -rw-r--r-- 1 root root    0 dic  4 15:37 update-success-stamp
>  packages via 'aptitude search
> > <package>' works as expected.
> >
> > However, when running aptitude as a non-root user, the following happens:
> >
> > 1) On the ncurses UI, all installed packages are shown as local or
> > obsolete, except those in ~c status, which are listed under
> > non-installed.
> >
> > 2) When doing 'aptitude search <package>', nothing will be found except
> > those packages that happen to be in ~c status.
>
> Please show the output of "ls -lRa /var/lib/apt".
>
> Regards,
>        Sven
>

Reply via email to