Your message dated Fri, 19 Jan 2018 15:32:20 +0100
with message-id <[email protected]>
and subject line Re: [Aptitude-devel] Bug#887732: non-root user sacrifices half
of disk to download one little package
has caused the Debian Bug report #887732,
regarding non-root user sacrifices half of disk to download one little package
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
887732: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=887732
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: aptitude
Version: 0.8.10-6
With plenty of disk space,
jidanni1@ps11007:/tmp$ df .
Filesystem 1K-blocks Used Available Use% Mounted on
none 131072 2976 128096 3% /tmp
our regular (non-root) user thinks "I'll use the power of aptitude to
download a package and any other required packages!"
jidanni1@ps11007:/tmp$ aptitude -o Debug::NoLocking=true -o Dir::Cache=/tmp
--download-only install libbest-perl
The following NEW packages will be installed:
libbest-perl
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 15.0 kB of archives. After unpacking 65.5 kB will be used.
Get: 1 http://mirror.newdream.net/ubuntu/ trusty/universe libbest-perl all
0.15-1 [15.0 kB]
Fetched 15.0 kB in 0s (1,096 kB/s)
"Hmmm, 15.0 kB, 65.5 kB, whatever. OK Good."
jidanni1@ps11007:/tmp$ df .
Filesystem 1K-blocks Used Available Use% Mounted on
none 131072 60280 70792 46% /tmp
"Holy smokes, what happened? It ate half my disk space!"
jidanni1@ps11007:/tmp$ ls -Sog|head
-rw-r--r-- 1 29352344 01-19 21:19 pkgcache.bin
-rw-r--r-- 1 29311314 01-19 21:19 srcpkgcache.bin
"What do you want me to do, not set Dir?"
jidanni1@ps11007:/tmp$ aptitude -o Debug::NoLocking=true --download-only
install libbest-perl
The following NEW packages will be installed:
libbest-perl
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 15.0 kB of archives. After unpacking 65.5 kB will be used.
Err http://mirror.newdream.net/ubuntu/ trusty/universe libbest-perl all 0.15-1
Could not open file
/var/cache/apt/archives/partial/libbest-perl_0.15-1_all.deb - open (13:
Permission denied)
0% [Working]E: Failed to fetch
http://mirror.newdream.net/ubuntu/pool/universe/libb/libbest-perl/libbest-perl_0.15-1_all.deb:
Could not open file
/var/cache/apt/archives/partial/libbest-perl_0.15-1_all.deb - open (13:
Permission denied)
E: Some files failed to download
"All I wanted was one measly package."
"Now I have to clean up the mess left behind each time."
(Same problem with current Debian aptitude.)
Anyway do document on the man page, at --download-only, do document all
the things non-root people need to do...
--- End Message ---
--- Begin Message ---
Hi Jidanni,
積丹尼 Dan Jacobson wrote:
> jidanni1@ps11007:/tmp$ aptitude -o Debug::NoLocking=true -o Dir::Cache=/tmp
> --download-only install libbest-perl
> The following NEW packages will be installed:
> libbest-perl
> 0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
> Need to get 15.0 kB of archives. After unpacking 65.5 kB will be used.
> Get: 1 http://mirror.newdream.net/ubuntu/ trusty/universe libbest-perl all
> 0.15-1 [15.0 kB]
Ehm, that's doesn't look like a Debian system, but like an Ubuntu.
> Fetched 15.0 kB in 0s (1,096 kB/s)
>
> "Hmmm, 15.0 kB, 65.5 kB, whatever. OK Good."
Please read what's written. One size is the download size (the size of
the .deb, which uses compression), one is the size on disk of the
unpacked and installed package.
> jidanni1@ps11007:/tmp$ df .
> Filesystem 1K-blocks Used Available Use% Mounted on
> none 131072 60280 70792 46% /tmp
>
> "Holy smokes, what happened? It ate half my disk space!"
No, it ate half of your temporary file system in RAM. No disk
involved.
> jidanni1@ps11007:/tmp$ ls -Sog|head
> -rw-r--r-- 1 29352344 01-19 21:19 pkgcache.bin
> -rw-r--r-- 1 29311314 01-19 21:19 srcpkgcache.bin
>
> "What do you want me to do, not set Dir?"
You've set Dir::Cache explicitly to /tmp/, so it uses that. I don't
see anything wrong here.
And those files are the very same cache that the root user has in
/var/cache/apt/. It's not even aptitude-specific. It's apt's cache
which gets regenerated rather often and usually uses up between 20 and
maybe 100 MB depending on the amount of APT repos in your
/etc/apt/sources.list, if deb-src lines are present in there, too, and
the amount of packages in these repos.
> jidanni1@ps11007:/tmp$ aptitude -o Debug::NoLocking=true --download-only
> install libbest-perl
> The following NEW packages will be installed:
> libbest-perl
> 0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
> Need to get 15.0 kB of archives. After unpacking 65.5 kB will be used.
> Err http://mirror.newdream.net/ubuntu/ trusty/universe libbest-perl all 0.15-1
> Could not open file
> /var/cache/apt/archives/partial/libbest-perl_0.15-1_all.deb - open (13:
> Permission denied)
> 0% [Working]E: Failed to fetch
> http://mirror.newdream.net/ubuntu/pool/universe/libb/libbest-perl/libbest-perl_0.15-1_all.deb:
> Could not open file
> /var/cache/apt/archives/partial/libbest-perl_0.15-1_all.deb - open (13:
> Permission denied)
> E: Some files failed to download
Sure. You told aptitude to everything to _install_ a package except
doing the installation in the end. And so did aptitude.
Why didn't you just use just the subcommand "download"?
→ aptitude download libbest-perl
Executing 'apt download libbest-perl'
Get:1 https://debian.ethz.ch/debian sid/main amd64 libbest-perl all
0.15-1 [15.8 kB]
Fetched 15.8 kB in 0s (250 kB/s)
> "All I wanted was one measly package."
Then why the hell add additional complexity which does not do what you
think it does? You have so many well documented choices to do so:
* apt download
* aptitude download (a wrapper around the latter)
* apt-get download
* dget
* ...
> "Now I have to clean up the mess left behind each time."
Yes. Not our problem.
> (Same problem with current Debian aptitude.)
Then why didn't you use the Debian example to report a bug against Debian?
> Anyway do document on the man page, at --download-only, do document all
> the things non-root people need to do...
Not necessary IMHO. First hit for "download" in aptitude(8) is:
aptitude [<options>...] {build-dep | build-depends | changelog |
download | forbid-version
Hence closing. Not a bug.
Regards, Axel
--
,''`. | Axel Beckert <[email protected]>, https://people.debian.org/~abe/
: :' : | Debian Developer, ftp.ch.debian.org Admin
`. `' | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5
`- | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE
--- End Message ---
_______________________________________________
Aptitude-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/aptitude-devel