[arch-general] strange behaviour of pacman, what did I do?
Shridhar Daithankar
ghodechhap at ghodechhap.net
Mon Mar 25 22:38:09 EDT 2013
Hi
I was updating an archroot, created with mkarchroot to play with lxc. I thought following
would work but it was doing something else altogether
------------------------
[root at bheem lxc]# pacman -Su -c /var/cache/pacman/pkg/ --root=$PWD/server1
Cache directory: /var/cache/pacman/pkg/
Packages to keep:
All locally installed packages
Do you want to remove all other packages from cache? [Y/n] ^C
Interrupt signal received
------------------------
I think I lost a few packages during this because following command lead to a 30MB worth of
download.
------------------------
[root at bheem lxc]# pacman -Su --cachedir=/var/cache/pacman/pkg/ --root=$PWD/server1
------------------------
What did pacman do the first time? The man page does not have bare -c option and it wasn't
-Sc where it started cleaning the packages(or was it?)
And just to be sure.. I wanted to run pacman on the host again.. and eh? I lost my synced
dbs? Thats strange..
------------------------
[root at bheem lxc]# pacman -Syu
:: Synchronizing package databases...
error: core.db appears to be truncated: 3990/0 bytes
error: failed retrieving file 'core.db' from mirrors.kernel.org : Failed error: core.db appears to
be truncated: 3990/0 bytes
error: core.db appears to be truncated: 3990/0 bytes
error: core.db appears to be truncated: 3990/0 bytes
error: failed retrieving file 'core.db' from mirrors.easynews.com : Resolving timed out after
10000 milliseconds
core is up to date 0.0 B 0.00B/s 00:00
[---------------------------------------------------------------------] 0%
extra 1416.8 KiB 205K/s 00:07
[#####################################################################] 100%
community 1917.7 KiB 206K/s
00:09 [#####################################################################]
100%
:: Starting full system upgrade...
there is nothing to do
------------------------
--
Regards
Shridhar
More information about the arch-general
mailing list