[arch-general] strange behaviour of pacman, what did I do?

Eric Bélanger snowmaniscool at gmail.com
Tue Mar 26 10:20:08 EDT 2013


On Mon, Mar 25, 2013 at 10:38 PM, Shridhar Daithankar
<ghodechhap at ghodechhap.net> wrote:
> 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?)

"-Sc" and "-S -c" do the same thing. It's just two different ways to
write the options. It would have been better to answer no instead of
hitting ^C.

>
> And just to be sure.. I wanted to run pacman on the host again.. and eh? I lost my synced
> dbs? Thats strange..
>

That might be because of the aborted command earlier. You can use
"pacman -Syyu" if they are still broken.

> ------------------------
> [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