Bug#808802: #808802 synaptic: Can't drop privileges for downloading as file '/var/lib/apt/lists/partial/ftp.fr.debian.org_debian_dists_testing_InRelease'

2016-01-28 Thread Tsu Jan

I was wrong. The problem still persists :(



Bug#808802: #808802 synaptic: Can't drop privileges for downloading as file '/var/lib/apt/lists/partial/ftp.fr.debian.org_debian_dists_testing_InRelease'

2016-01-28 Thread Tsu Jan
It seems that this issue is fixed by apt-1.2 but it's replaced by 
another message:


The method driver /usr/lib/apt/methods/https could not be found. I hope 
the latter will be fixed by apt-1.2.1, which I haven't tried yet.




Bug#808802: #808802 synaptic: Can't drop privileges for downloading as file '/var/lib/apt/lists/partial/ftp.fr.debian.org_debian_dists_testing_InRelease'

2016-01-25 Thread Tsu Jan

On Mon, 25 Jan 2016 12:17:45 +0100 Michael Vogt  wrote:
> This is a bug indeed, the question is how it got triggered, that dir
> should be owend by the _apt user.
>
> What is the output of:
> $ ls -dl /var/cache/apt/archives/partial/
>
> Thanks,
> Michael

That directory has been owned by root from time immemorial. I've never 
had an "_apt" user/group and no update created such a user/group. In 
other words, this is a *new* problem that started after a recent update 
(of apt?).


The output of "ls -dl":

drwxr-xr-x 2 root root 4096 Jan 25 13:20 /var/cache/apt/archives/partial/

Thanks!



Bug#808802: #808802 synaptic: Can't drop privileges for downloading as file '/var/lib/apt/lists/partial/ftp.fr.debian.org_debian_dists_testing_InRelease'

2016-01-25 Thread Michael Vogt
On Mon, Jan 25, 2016 at 06:02:22PM +0330, Tsu Jan wrote:
> On Mon, 25 Jan 2016 12:17:45 +0100 Michael Vogt  wrote:
> > This is a bug indeed, the question is how it got triggered, that dir
> > should be owend by the _apt user.
> >
> > What is the output of:
> > $ ls -dl /var/cache/apt/archives/partial/
> >
> > Thanks,
> > Michael
> 
> That directory has been owned by root from time immemorial. I've never had
> an "_apt" user/group and no update created such a user/group. In other
> words, this is a *new* problem that started after a recent update (of apt?).
[..]

Thanks! If you do not have an _apt user, that appears to be the
problem. If I do:

  $ grep -B2 _apt /var/lib/dpkg/info/apt.postinst

I see that the postinst tries to create such a user. Is there anything
unusual about your system that might prevent creating this user? 

Thanks,
 Michael



Bug#808802: #808802 synaptic: Can't drop privileges for downloading as file '/var/lib/apt/lists/partial/ftp.fr.debian.org_debian_dists_testing_InRelease'

2016-01-25 Thread Tsu Jan

On Mon, 25 Jan 2016 17:03:36 +0100 Michael Vogt  wrote:
>
> Thanks! If you do not have an _apt user, that appears to be the
> problem. If I do:
>
> $ grep -B2 _apt /var/lib/dpkg/info/apt.postinst
>
> I see that the postinst tries to create such a user. Is there anything
> unusual about your system that might prevent creating this user?
>
> Thanks,
> Michael
>

Nothing unusual about my system, as far as I know. As you can see, 
similar reports are posted by others (I didn't open this bug report 
either). This is the output for me:


# add unprivileged user for the apt methods

adduser --force-badname --system --home /nonexistent \

--no-create-home --quiet _apt || true

# Fixup any mistake in the home directory of the _apt user

if dpkg --compare-versions "$2" lt-nl 1.1~exp10~; then

usermod --home /nonexistent _apt



Bug#808802: #808802 synaptic: Can't drop privileges for downloading as file '/var/lib/apt/lists/partial/ftp.fr.debian.org_debian_dists_testing_InRelease'

2016-01-25 Thread Michael Vogt
On Tue, Jan 05, 2016 at 01:58:12PM +0330, Tsu Jan wrote:
> On Wed, 23 Dec 2015 11:01:29 +0100 Alexandre Detiste
>  wrote:
> > This is likely a duplicate of this (read from #15), IE, not a bug:
> 
> For me, in Debian Testing, the message is:
> 
> 
> W: Can't drop privileges for downloading as file
> '/var/cache/apt/archives/partial/PACKAGE' couldn't be accessed by user
> '_apt'. - pkgAcquire::Run (13: Permission denied)
> 
> This IS a bug for, at least, two reasons:
> 
> (1) The Synaptic user encounters such an unhelpful message after the
> download is complete;
> 
> (2) The message is not only unhelpful but also meaningless TO THE END USER
> because there's no '/var/cache/apt/archives/partial/PACKAGE' when the
> download in complete.

This is a bug indeed, the question is how it got triggered, that dir
should be owend by the _apt user.

What is the output of:
$ ls -dl /var/cache/apt/archives/partial/

Thanks,
 Michael



Bug#808802: #808802 synaptic: Can't drop privileges for downloading as file '/var/lib/apt/lists/partial/ftp.fr.debian.org_debian_dists_testing_InRelease'

2016-01-05 Thread Tsu Jan
On Wed, 23 Dec 2015 11:01:29 +0100 Alexandre Detiste 
 wrote:

> This is likely a duplicate of this (read from #15), IE, not a bug:

For me, in Debian Testing, the message is:


W: Can't drop privileges for downloading as file 
'/var/cache/apt/archives/partial/PACKAGE' couldn't be accessed by user 
'_apt'. - pkgAcquire::Run (13: Permission denied)


This IS a bug for, at least, two reasons:

(1) The Synaptic user encounters such an unhelpful message after the 
download is complete;


(2) The message is not only unhelpful but also meaningless TO THE END 
USER because there's no '/var/cache/apt/archives/partial/PACKAGE' when 
the download in complete.




Bug#808802: #808802 synaptic: Can't drop privileges for downloading as file '/var/lib/apt/lists/partial/ftp.fr.debian.org_debian_dists_testing_InRelease'

2015-12-23 Thread Alexandre Detiste
Hi,

This is likely a duplicate of this (read from #15), IE, not a bug:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=805069#15 


Bonne journée