[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#832901: apt: "apt upgrade -s" tries to remove a file



Control: severity -1 minor

On Fri, Jul 29, 2016 at 03:41:37PM +0200, Vincent Lefevre wrote:
> Package: apt
> Version: 1.3~pre2
> Severity: grave
> Justification: causes non-serious data loss
> (well, not when run as a normal user, but it would when run as root)

Not really, no.

> 
> "apt upgrade -s" should be non-destructive, but it tries to remove a
> file (here, it couldn't, but just because I didn't run it as root):
[...]
> a strace shows:
> 
> [...]
> 16759 stat("/var/log/apt/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
> 16759 unlink("/var/log/apt/eipp.log.xz") = -1 EACCES (Permission denied)
> 16759 open("/var/log/apt/eipp.log.xz", O_WRONLY|O_CREAT|O_EXCL, 0644) = -1 EEXIST (File exists)

This is an internal file that dumps the latest installation
ordering scenario. I'm not sure if it makes sense to dump simulated
scenarios, but there are definitely some advantages.

Having the error messages displayed is a minor UX inconvenience,
though.

-- 
Debian Developer - deb.li/jak | jak-linux.org - free software dev

When replying, only quote what is necessary, and write each reply
directly below the part(s) it pertains to (`inline'). Thank you.


Reply to: