Bug#580152: dpkg: trigger - W: Unable to read /etc/apt/preferences.d/ - FileExists (2: No such file or directory)

2010-05-06 Thread David Kalnischkies
2010/5/5 Goswin von Brederlow goswin-...@web.de:
 David Kalnischkies kalnischkies+deb...@gmail.com writes:
 2010/5/4 Raphael Hertzog hert...@debian.org:
 On Mon, 03 May 2010, Jonathan Nieder wrote:
         Processing triggers for menu ...
         W: Unable to read /etc/apt/preferences.d/ - FileExists (2: No 
  such file or directory)

 At least the warning should be fixed. Is the error that it exists and
 since when is a directory a file? Or that it doesn't? The two errors
 contradict each other.

An errormessage generated by Error::Errno (or Error::WarningE) is:
E/W: generic apt error - method used (errno: strerror() with exact reason)

The plain reason is that we have a waste amount of possibilities why a file
is not readable: doesn't exist, broken link, insufficient rights, …
writing a message for all of them in APT would be insane.
On the other hand some of the error messages given by strerror() aren't
verbose and/or exact enough to be used alone, so the middle way was chosen.
(I think the Methodname is their to enable Error to do something special
with certain failures as noted in the Description of the file, but it is
unused so far - but from time to time useful to map (translated) error
messages to their untranslated equivalent in bugreports.


I have convert now this and a few other calls from FileExists() to
DirectoryExists() which was added recently to check if it is really a
directory and not a file, but this doesn't change much…

Any further suggestions?


Best regards,

David Kalnischkies



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#580152: dpkg: trigger - W: Unable to read /etc/apt/preferences.d/ - FileExists (2: No such file or directory)

2010-05-06 Thread Goswin von Brederlow
David Kalnischkies kalnischkies+deb...@gmail.com writes:

 2010/5/5 Goswin von Brederlow goswin-...@web.de:
 David Kalnischkies kalnischkies+deb...@gmail.com writes:
 2010/5/4 Raphael Hertzog hert...@debian.org:
 On Mon, 03 May 2010, Jonathan Nieder wrote:
         Processing triggers for menu ...
         W: Unable to read /etc/apt/preferences.d/ - FileExists (2: No 
  such file or directory)

 At least the warning should be fixed. Is the error that it exists and
 since when is a directory a file? Or that it doesn't? The two errors
 contradict each other.

 An errormessage generated by Error::Errno (or Error::WarningE) is:
 E/W: generic apt error - method used (errno: strerror() with exact reason)

 The plain reason is that we have a waste amount of possibilities why a file
 is not readable: doesn't exist, broken link, insufficient rights, …
 writing a message for all of them in APT would be insane.
 On the other hand some of the error messages given by strerror() aren't
 verbose and/or exact enough to be used alone, so the middle way was chosen.
 (I think the Methodname is their to enable Error to do something special
 with certain failures as noted in the Description of the file, but it is
 unused so far - but from time to time useful to map (translated) error
 messages to their untranslated equivalent in bugreports.


 I have convert now this and a few other calls from FileExists() to
 DirectoryExists() which was added recently to check if it is really a
 directory and not a file, but this doesn't change much…

 Any further suggestions?

Change it to FileExists(): (or DirectoryExists(): in this case) to
signify that the first is a location (the function causing the error)
and not the error message itself. Or:

W: Unable to read /etc/apt/preferences.d/ in FileExists(): (2) No such file or 
directory

More usefull I guess would be the name of the calling function since, as
you say, lots of places will check if a file exists.

 Best regards,

 David Kalnischkies

MfG
Goswin



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#580152: dpkg: trigger - W: Unable to read /etc/apt/preferences.d/ - FileExists (2: No such file or directory)

2010-05-05 Thread Goswin von Brederlow
David Kalnischkies kalnischkies+deb...@gmail.com writes:

 Hi *,

 2010/5/4 Raphael Hertzog hert...@debian.org:
 On Mon, 03 May 2010, Jonathan Nieder wrote:
         Processing triggers for menu ...
         W: Unable to read /etc/apt/preferences.d/ - FileExists (2: No such 
  file or directory)

At least the warning should be fixed. Is the error that it exists and
since when is a directory a file? Or that it doesn't? The two errors
contradict each other.

  Could this be caused by the fact that here the /etc/apt is a symlink and
  points to another location?

 To my untrained eye, this looks like a message from APT.  Any insights?

 But it might an apt tool called from the menu trigger processing code.

 While this would be possible it is apt's normal behavior to print errors
 and/or warnings at the end so this is to 99% an error of the main apt.

 Still, i don't know what this bugreport actually asks for:
 The directory is included in the apt package so in a normal environment
 it should be available after the correct installation of 0.7.22 and above.
 And in an unnormal environment (in which directories magically disappear)
 the warning is important… (user configuration could be disappeared too)

 A linked /etc/apt isn't a problem (at least not for me).
 The dir is btw by default empty - as is sources.list.d and trusted.gpg.d …

 Best regards,

 David Kalnischkies

MfG
Goswin



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#580152: dpkg: trigger - W: Unable to read /etc/apt/preferences.d/ - FileExists (2: No such file or directory)

2010-05-04 Thread Raphael Hertzog
Hi,

On Mon, 03 May 2010, Jonathan Nieder wrote:
 Processing triggers for menu ...
 W: Unable to read /etc/apt/preferences.d/ - FileExists (2: No such 
  file or directory)
  
  Could this be caused by the fact that here the /etc/apt is a symlink and
  points to another location?
 
 To my untrained eye, this looks like a message from APT.  Any insights?

But it might an apt tool called from the menu trigger processing code.

Cheers,
-- 
Raphaël Hertzog

Like what I do? Sponsor me: http://ouaza.com/wp/2010/01/05/5-years-of-freexian/
My Debian goals: http://ouaza.com/wp/2010/01/09/debian-related-goals-for-2010/



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#580152: dpkg: trigger - W: Unable to read /etc/apt/preferences.d/ - FileExists (2: No such file or directory)

2010-05-04 Thread Bill Allombert
On Tue, May 04, 2010 at 10:23:06AM +0200, Raphael Hertzog wrote:
 Hi,
 
 On Mon, 03 May 2010, Jonathan Nieder wrote:
  Processing triggers for menu ...
  W: Unable to read /etc/apt/preferences.d/ - FileExists (2: No such 
   file or directory)
   
   Could this be caused by the fact that here the /etc/apt is a symlink and
   points to another location?
  
  To my untrained eye, this looks like a message from APT.  Any insights?
 
 But it might an apt tool called from the menu trigger processing code.

I checked all the menu-methods in Debian and none of them are calling
an apt tool, but you can try to run update-menus as root to see if that 
displays this warning.

Cheers,
-- 
Bill. ballo...@debian.org

Imagine a large red swirl here. 



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#580152: dpkg: trigger - W: Unable to read /etc/apt/preferences.d/ - FileExists (2: No such file or directory)

2010-05-04 Thread David Kalnischkies
Hi *,

2010/5/4 Raphael Hertzog hert...@debian.org:
 On Mon, 03 May 2010, Jonathan Nieder wrote:
         Processing triggers for menu ...
         W: Unable to read /etc/apt/preferences.d/ - FileExists (2: No such 
  file or directory)
 
  Could this be caused by the fact that here the /etc/apt is a symlink and
  points to another location?

 To my untrained eye, this looks like a message from APT.  Any insights?

 But it might an apt tool called from the menu trigger processing code.

While this would be possible it is apt's normal behavior to print errors
and/or warnings at the end so this is to 99% an error of the main apt.

Still, i don't know what this bugreport actually asks for:
The directory is included in the apt package so in a normal environment
it should be available after the correct installation of 0.7.22 and above.
And in an unnormal environment (in which directories magically disappear)
the warning is important… (user configuration could be disappeared too)

A linked /etc/apt isn't a problem (at least not for me).
The dir is btw by default empty - as is sources.list.d and trusted.gpg.d …

Best regards,

David Kalnischkies



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#580152: dpkg: trigger - W: Unable to read /etc/apt/preferences.d/ - FileExists (2: No such file or directory)

2010-05-03 Thread Jari Aalto
Package: dpkg
Version: 1.15.7.1
Severity: normal


During upgrade under unstable:

   Processing triggers for menu ...
   W: Unable to read /etc/apt/preferences.d/ - FileExists (2: No such file 
or directory)

Could this be caused by the fact that here the /etc/apt is a symlink and
points to another location?

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.33-2-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages dpkg depends on:
ii  coreutils 8.5-1  GNU core utilities
ii  libbz2-1.01.0.5-4high-quality block-sorting file co
ii  libc6 2.10.2-6   Embedded GNU C Library: Shared lib
ii  libselinux1   2.0.94-1   SELinux runtime shared libraries
ii  xz-utils  4.999.9beta+20100307-1 XZ-format compression utilities
ii  zlib1g1:1.2.3.4.dfsg-3   compression library - runtime

dpkg recommends no packages.

Versions of packages dpkg suggests:
ii  apt   0.7.25.3   Advanced front-end for dpkg

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#580152: dpkg: trigger - W: Unable to read /etc/apt/preferences.d/ - FileExists (2: No such file or directory)

2010-05-03 Thread Jonathan Nieder
reassign 580152 apt apt/0.7.25.3
thanks

Hi APT team,

Jari Aalto wrote:

 During upgrade under unstable:
 
Processing triggers for menu ...
W: Unable to read /etc/apt/preferences.d/ - FileExists (2: No such 
 file or directory)
 
 Could this be caused by the fact that here the /etc/apt is a symlink and
 points to another location?

To my untrained eye, this looks like a message from APT.  Any insights?

Full system information is at http://bugs.debian.org/580152

Thanks,
Jonathan



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org