/srv/irclogs.ubuntu.com/2016/04/20/#ubuntu-quality.txt

=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
jibelpitti, we're short on system disk space on the phone, do we need /var/cache/apt/*.bin for apport?08:44
jibelthere are src and binaries indexes and it takes 50MB or os08:45
jibelso*08:45
jibelthey cannot be regenerated since the fs is ro08:45
pitti/var/cache/ is r/o?08:45
pittijibel: well, I'd say kill them -- as you can't change packages in the system image anyway, it's fairly irrelevant for apport08:46
pittiand as soon as you switch to r/w and run apt-get update, the cache will come back08:46
pittijibel: I'm not 100% sure, let me test this a bit08:47
jibelpitti, already saved 100MB by stripping dekko and scopes and removing various logs generated at build time.08:48
pittijibel: I don't even have a /var/cache/apt/*.bin08:48
jibelpitti, on the phone?08:48
pittiI mean on a normal xenial desktop08:48
jibelpitti, did you configure apt to not generate them maybe?08:49
jibelI found a wiki page from you where you explain how to do it08:49
pittiright, that was some "how to downsize your raring install" for an OEM project08:50
jibelhttps://wiki.ubuntu.com/ReducingDiskFootprint#Disable_apt_caches08:50
pittinot knowingly on my system, but apt may have changed between vivid and xeniall08:50
jibelI've these files on xenial08:50
jibeland they are recent08:50
pittijibel: anyway, apport doesn't directly use the cache; and if apt doesn't have it, it'll read the _Packages lists, which is just slower, but works08:51
pittijibel: so, kill'em08:51
pittiunless you *also* removed /var/lib/apt/lists/ of course08:51
jibellet me check08:52
jibelyeah it's empty08:52
pittijibel: it's quite easy to test too -- run "apport-cli unity8" and see if you get proper Dependencies: or an error08:52
jibelokay I'll try that08:53
pittiwithout either the cache or the lists it should have some trouble08:53
pittiget_dependencies() uses python-apt right now08:54
pittiit could possibly be rewritten to call dpkg instead08:54
pitti(which is slower with lots of dependencies, but doesn't need the apt infos then)08:54
jibelpitti, apport is the only thing that needs these packages afaik. I'll start by removing obvious cruft, then we'll see what we can do with this if we need to reclaim more space08:56
jibelthese files*08:56
pittijibel: does it freak out without the *.bin?08:57
jibelpitti, trying now08:57
pittijibel: yeah, and it's also relatively pointless -- the system image channel/version is enough, we don't really need the precise Dependencies: at report time if we have a way to reconstruct them later08:57
jibelpitti, apparently it doesn't really matter for apport. Here is a test https://bugs.launchpad.net/ubuntu/+source/unity8/+bug/157245509:03
ubot5`Launchpad bug 1572455 in unity8 (Ubuntu) "[TESTING ONLY] Testing apport without apt indexes" [Undecided,New]09:03
pittijibel: ah, very nice; so I guess apt.Cache() is clever enough to fall back to querying dpkg09:07
pittijibel: that actually makes sense; use dpkg's database for installed packages, and apt's caches/lists for candidates09:11
=== chihchun is now known as chihchun_afk
=== shuduo is now known as shuduo-afk
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!