Re: strange behaviour of pacman, what did I do?

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



On Mon, Mar 25, 2013 at 10:38 PM, Shridhar Daithankar
<ghodechhap@xxxxxxxxxxxxxx> 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@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@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@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


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux