Pacstrap fails

I managed to break my system by replacing nouveau with nvidia recently and saw no better way to fix it than a fresh install. (I know, Windows mentality, but at least it never fails right? right?)
I ran "pacstrap /mnt base base-devel"like I usually do
and got
warning: skipping target: file
warning: skipping target: findutils
warning: skipping target: gawk
warning: skipping target: gettext
warning: skipping target: grep
warning: skipping target: gzip
warning: skipping target: libutil-linux
warning: skipping target: pacman
warning: skipping target: sed
warning: skipping target: texinfo
warning: skipping target: util-linux
warning: skipping target: which
But paid no heed and just allowed pacstrap to keep running since it did list these packages as targets and also seemed to be downloading them.
It got ti checking package integrity (133/133) and then
error: dhcpcd: key "B02854ED753E0F1F" is unknown
error: key "B02854ED753E0F1F" could not be looked up remotely
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.
==> ERROR: Failed to install packages to new root
What do I do?
Edit: Solved it by
pacman-key --keyserver hkp://pgp.mit.edu -r <key_id>
(key id in this case: B02854ED753E0F1F)
But just to be sure, are the warnings I posted at the start of this post something for me to worry about? or are they safe to ignore?
Edit 2: Not quite solved, next time i tried to use pacman to install opencl-nvidia i got
downloading required keys...
error: key "..." could not be looked up remotely
error: required key missing from keyring
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.
Edit 3: I think this solved it
Last edited by rabcor (2014-05-01 06:27:34)

rat5 wrote:
Yes, this is bad and dangerus,
but as it was mentioned before, it was made during the installation and it impact only in "livecd" and as I said before after installation the problem back - > that mean the pacman.conf  from the system was in orginal form and as I said before the pernamently solution for this problem is install this package
archlinux-keyring
The big problem here is that Archlinux Live CD is a READ ONLY system and it is impossible to edit "/etc/pacman.conf" - So the real question here is: "How to import keys during an installation through Live CD where CD can't be altered.".
Every time this happens (and it does happen a lot) I can only get to a point where I had to mount partitions with a file system already set up. Then at the point where I should use command pacstrap and install Arch Linux to a new root I get into a dead end. There is no solution here. I can't install packages to a new root and because of this I can't use arch-chroot to move into new root and edit pacman.conf for the new root... DEAD END.
What I tried was to install only package base, but even this package requires keys which are not supported. THIS IS JUST RIDICULOUS AND A BIG PROBLEM FOR ARCH LINUX FOR SO LONG NOW. Sometimes it works to only restart a PC and repeat installation and for some strange bizzare reason it will work and import keys...
Last edited by 71GA (2014-11-04 08:11:29)

Similar Messages

  • Pacstrap failed. Now I have a read-only filesystem that is unusable

    Hello,
    I have been using Linux for the past few years (primarily Ubuntu and Fedora), and have used the command line a lot.
    I was just following the instructions on the Beginners guide. I set up wifi, and partitioned the disk using gdisk (all my computers since late 2009 have not used MBR). I then set up my mirrorlist (left the first one, and added my university as second).
    When I ran pacstrap (without -i), it started downloading everything. I think it finished most of it. The kernel had been downloaded, and the filesystem supposedly set up. Then, I got an error. (I am not sure where it was, and I wasn't logging the output. There were many many lines of:
    [timestamp] EXT4-fs (sda1): ext4_da_writepages: jpd2_start:8192 pages, ino xxxxxxx; err -30
    Then:
    [timestamp] EXT4-fs error (device sda1): ext4_journal_start_sb:370: [timestamp] EXT4-fs error (device sda1): ext4_journal_start_sb:370: [timestamp] EXT4-fs error (device sda1): Remounting filesystem read-only
    error: command failed to execute correctly
    error: could not create directory /mnt/var/lib/pacman/local/groff-1.21-2/: Read-only file system
    error: could not commit transaction
    error: failed to commit transaction (transaction aborted)
    Errors occured, no packages were upgraded.
    warning: could not remove lock file /mnt/var/lib/pacman/db.lck
    ==> ERROR: Failed to install packages to new root
    pacstrap /mnt base base-devel 35.27s user 6.19s system 3% cpu 17:34.81 total
    Trying to rerun pacstrap gets me an error that the lockfile still exists. I cannot remove it because it is a "read-only filesystem". Its permissions are 000, and the folder it is in (pacman) has 755.
    I also cannot make an fstab or continue with the installation.
    I tried to run the setup again, and it kept failing. (MBR failed too, with the same error.)
    What do you think caused it, and what could I do to resolve it. I couldn't find anything like that in the forums, or on google.
    Last edited by masasin (2012-10-27 03:18:37)

    Are the ext4 errors not a dead giveaway that the FS (or physical disk) are misbehaving? It's remounted itself read-only to prevent further damage.

  • [Solved] pacstrap fails on invalid signature for glibc

    I'm trying a fresh install of Arch, but while following the beginner's guide, I encounter an issue when running `pacstrap /mnt base base-devel`.
    When it has downloaded all packages and it finishes checking package integrity, I keep getting this:
    error: glibc: signature from "Allan McRae <..>" is invalid
    I have already tried `pacman-key --init` and `pacman-key --populate archlinux`. But that doesn't solve the issue.
    I have also tried a different mirror, but that too didn't solve the issue.
    What am I doing wrong? And how can I solve this problem.
    *EDIT* Solved, I found out that pacstrap stored the database on /mnt/var/, by removing it and redownloading the packages, it solved my issue.
    Last edited by madjo (2012-09-25 10:18:28)

    For future reference, you don't have to delete the whole cache, just the package that is corrupt. (in /mnt/var/cache/pacman/pkg/)

  • [SOLVED] Pacstrap fails retrieving *any* file...

    Hi guys; I'm new here & kind of ashamed to open a thread because of the probably real stupid error I get.
    (Yes, I read the wiki and searched inside the forum&google.)
    I trying to install Arch in a Virtualbox VM; but I can't get past the initial pacstrap.
    All I get is:
    http://i.minus.com/igwm6vXdLZqPE.jpg
    http://i.minus.com/iGEBrUyZ3JoxH.jpg
    It always stops at about 88-90%.
    Network is working (at least pinging google etc.)
    I tried changing the mirror list (one of the mirrors is just 1km away and probably in the same university network as me... -.-)
    Manually downloading the databases via wget (found links somewhere here...) so the "warning: database file does not exist" error stopped coming, but that was the only thing that changed.
    I'm real perplexed about what's wrong. I'd be glad if you helped me^^
    edit: Sorry about the images.
    -- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --
    Last edited by Freierfall (2012-09-08 09:50:29)

    That was already the chosen option I've never changed anything there.
    Last night I also thought that may have to do something withe a misconfiguration of Virtualbox, so i downloaded the trial version of parallels, nothing changed.
    Err.. the only factor that hasn't changed is my network here. But I've never mentioned any problems with it in regular use; and It seems that syncing of the core-pacage has no such problems?

  • [SOLVED] Cannot install base

    Hello guys,
    I try to install Arch linux on my new laptop but pacstrap fails and returns the following error:
    Netcfg and netctl are in conflict.
    How the hell on earth I remove netcfg ? Is there a way to switch off community repo or to skip that package ( netcfg ) ?
    Thanx.
    Last edited by xfce (2013-07-16 11:19:50)

    xfce wrote:
    pacstram -i /mnt base
    returns netcfg in community repo if I remember right.
    I can take a picture of my screen.
    Dont you think that should be
    pacstrap -i /mnt base
    instead of pacstram
    and other thing you know you can remove netcfg by
    pacman -Rns netcfg
    and yes
    lolilolicon wrote:Why is netcfg installed in the first place?
    or
    you can try a netinstall "via netboot".
    Last edited by arcon (2013-07-16 11:12:11)

  • [SOLVED] /mnt and /mnt/boot on seperate partitions?

    I'd like to keep /mnt/boot on my ssd, and keep /mnt on my hdd. I know it's possible to keep /mnt on one partition, and /mnt/home on another, because I've done it on another computer. When I tried to do this new setup, pacstrap failed to install.
    Here's what I did
    mkdir /mnt/boot
    mount /dev/sda7 /mnt/boot #a logical partition on my ssd
    mount /dev/sdb3 /mnt #a large partition on my hdd
    Any suggestions?
    Last edited by cu3ba11 (2013-11-02 21:03:05)

    The mount point for / during installation is arbitrary. What you need to be asking is "Can / and /boot be on separate partitions?" And the answer is yes.
    However, the real problem is that you created and mounted /mnt/boot before mounting /mnt. This is pretty basic stuff, so I suggest you try to figure out why that can't work.
    Last edited by alphaniner (2013-11-01 21:01:31)

  • `pacstrap -i /mnt base` fails because of linux 'leftovers' [SOLVED]

    Hi,
    In the process of trying to install Arch (on Acer Aspire V3, UEFI Bios, dual-boot with win 8.1) I accidentally skipped the step of manually creating a configuration file to add an entry for Arch Linux to the gummiboot manager. As a result I could not boot into arch and also failed chrooting into it. I then tried to wipe out the linux partitions (root and home) and reinstall the base system, but after wiping them out and loading again arch from the live USB and running
    pacstrap -i /mnt base base-devel
    I got the following error:
    error: failed to commit transaction (conflicting files)
    linux: mnt/boot/vmlinuz-linux exists in filesystem
    I tried looking it up online but the only similar thing I could find was the Beginners guide entry saying I should run:
    pacman-key --init && pacman-key --populate archlinux
    I ran it but it didn't help me.
    I also ran
    efibootmgr -B -b <number>
    to delete the linux entry but that did not help either (i.e. the linux entry is gone, but I still get that error message).
    I'd like to wipe out any remaining 'leftovers' of the old linux installation and make a new one, without damaging my windows installation (which I assume should mean without wiping out the EFI partition).
    How can I achieve that?
    Last edited by rangel (2014-02-25 09:45:31)

    I have root and home on two separate partitions. I wiped them by deleting the partitions and making new ones using cgdisk. According to this I mounted the EFI system (which is on a separate partition, which came with the win installation) on /mnt/boot using:
    mkdir -p /mnt/boot
    mount /dev/sdXY /mnt/boot
    I assume (but not entirely sure) that I should delete whatever's left in the EFI partition, but I'd like to do it 'surgically' and not wipe it out (so as not to damage the win installation).

  • [SOLVED] Installation problem with pacstrap

    Hi guys, I am a new user of Arch Linux.
    I wanted to try this operating system then I decided to install that on my Asus F200MA. Unfortunately, when I try to install ArchLinux, I get an error while downloading the base packages with pacstrap.
    My HDD is made by 3 partitions:
    /dev/sda1 - 51200 MB: This is the root partition
    /dev/sda2 - 411690 MB: This is the home partition
    /dev/sda3 - 4096 MB: This is the swap partition
    After mounting these partitions, after using the pacstrap command and after the end of the download process, I get a few error messages:
    error: failed to commit transaction (invalid or corrupted package)
    Errors occurred, no packages were upgraded.
    ==> ERROR: Failed to install packages to new root
    I really can't understand the reason of these errors, how can I solve the problem?
    For formatting and mounting the partitions I used these commands:
    # mkfs.ext4 /dev/sda1
    # mkfs.ext4 /dev/sda2
    # mkswap /dev/sda3
    # swapon /dev/sda3
    # mount /dev/sda1 /mnt
    # mkdir /mnt/home
    # mount /dev/sda2 /mnt/home
    and then I used this command:
    pacstrap /mnt base base-devel
    Photo of the errors: http://i.imgur.com/4BRhlC7.jpg
    P.S.: Can you also explain me the reason of the signature's errors?
    Thanks for all
    Last edited by xRedFox (2015-04-10 21:59:20)

    Do you use the most recent installation disc image?

  • Can't boot after update, getting "microcode: failed to load" error

    After restarting my computer, it's no longer able to boot, and just prints a continuous stream of errors. The first error it gives is "microcode: failed to load", and I looked it up and found that I should just have to install amd-ucode. Easy enough, except I can't boot. I tried booting into the latest live-usb image, and after connecting to the internet, mounting the partition to /mnt, and running
    # arch-chroot /mnt pacman -S amd-ucode
    I get the following error
    error: amd-ucode: signature from "Allan McRae <[email protected]>" is invalid
    error: failed to commit transaction (invalid or corrupted package (PGP signature))
    Errors occurred, no packages were upgraded.
    I'm not very familiar with how chrooting works, especially not arch-chroot, so I don't trust myself to fix the problem without breaking something. I was thinking of just putting the package on a flashdrive and installing it with
    # arch-chroot /mnt pacman -U amd-ucode-package-name
    Should I do it this way or am I misunderstanding how arch-chroot works?
    By the way, this is an issue with my desktop. startx stopped working on my laptop right before I went to use my desktop and rebooted it, so after this issue is fixed I'll be making another thread about my laptop >_> Any help is much appreciated.

    Ok, so I managed to install amd-ucode with pacstrap. That got rid of the microcode error, but I'm still getting
    /dev/sdc1 contains a filesystem with errors. Forcing check
    And then it just repeats the error message
    [60.50342] ata5.00: failed command: READ FPDMA QUEUED
    [60.51345] ata5.00: cmd 60/<long number that's formatted similarly to a MAC address>/40 tag 0 ncq 131072 in
    [60.51743] res 40/<the same number>/40 Emask 0x10 (ATA bus error)
    [60.62421] ata5.00: status: { DRDY }
    The numbers on the left just keep counting up, but the repeating error message stays mostly the same. What's odd about this error is that the disc it says it has a problem with isn't even the disc with the OS on it. When I have time I'm going to try physically removing /dev/sdc from my computer to see if the error stops.
    Oh and there won't be any thread about my laptop issues. Turns out I filled my whole HDD, which was causing startx to fail.

  • Installation via pacman instead of pacstrap

    I am having problems with installing arch.
    Having downloaded various iso, I keep getting hit by problems with my CPU hanging at
    various stages in the pacstrap process.
    This happens when I use an older arch too (i.e. 2012.06-1-archboot-i686) which still has
    the graphical installer.
    At the moment I am settled on booting a liveCD giving me # uname -a
    Linux archiso 3.4.4-3-ARCH #1 SMP PREEMPT Tue Jul 3 15:13:13 UTC 2012 i686 GNU/Linux
    Although setting up my network using # dhcpcd eth0
    works fine, I have now created myself a mirror of all the base .tar.xz files
    Once I have replicated the base .tar.xz to /var/cache/pacman/pkg
    running # pacman -S base
    goes fairly successfully for a while, but eventually falls over with CPU hangs as well.
    # pacstrap
    seems unable to use my pkg cache though.
    Is it possible to adapt pacman so that it can do the job of pacstrap? (Or perhaps be
    more successful with # pacstrap -c )
    And what might be causing the CPU hangs?
    Thanks,
    Derek
    p.s.
    Doing these steps:
    mount /dev/sda3 /mnt
    mount /dev/sda5 /mnt/home
    mount /dev/sda6 /mnt/pkg
    cp /mnt/pkg/mirrorlist /etc/pacman.d/mirrorlist
    mkdir -p /var/lib/pacman/sync/{core,extra,community}
    tar xzf /mnt/pkg/dbs/core.db.tar.gz -C /var/lib/pacman/sync/core
    tar xzf /mnt/pkg/dbs/community.db.tar.gz -C /var/lib/pacman/sync/community
    tar xzf /mnt/pkg/dbs/extra.db.tar.gz -C /var/lib/pacman/sync/extra
    actually this time it fell over at untaring community.db.tar.gz
    BUG: soft lockup - CPU#1 stuck for 23s! [loop2:151]
    Process loop2...
    perhaps I should have kept this in noobie

    I am trying to do two things...
    1) install a version of arch on my computer as the bootable o/s (on HDD)
    2) save bandwidth as i am on a limited tarrif, and as pacstrap normally fails part way through the downloading packages stage it makes sense to be able to continue from the place i have already got to ( and hopefully get further ).
    3) was hoping that step 2) could be eliminated by installing from a local cache/mirror - but this seems to be only possible with pacmap, not pacstrap
    =========
    more info relating to my h/w
    Have run 30+ passes of memtest86 with no errors
    have done HDD self tests using smartctl (and both long and short diagnoses), again with no errors
    If i add kernel options to the netinst liveCD (nomodeset and/or force=mwdma2) then the pacstrap process still freezes, but there are no longer any informative (yet unhelpful) kernel errors like ...failed common READ DMA..... WRITE DMA... cpu lockup
    =========
    the kernel freezing is the biggest problem as it is only after this point that i can see how far things have got, but cannot use the computer to capture it
    And finally to answer the original question - why would i not want to update my pacman db? mainly because i cannot achieve 1) at the moment. Am more than happy to update and fix my system once i can get it to install and run.
    Derek

  • Error: failed tetrieving file 'core.db'

    I'm trying to install Arch on a VM and after I do a
    pacstrap -i /mnt base
    I get
    error: failed tetrieving file 'core.db' from archlinux.cu.be : Resolving timed out after 10520 milliseconds
    and it's the same for all the other mirrors.
    I tried to Google an answer for no avail. Any hint?
    Thanks

    bbao5 wrote:
    In that thread the solution is:
    I added a ipv6.disable=1 to the boot parameters and a noipv6rs to the /etc/dhcpcd file, and everything turned ou to work ok!
    But I don't know how it's possible to boot with parameters a live CD.
    Press [Tab] on the Live CD menu to edit the selected boot options, and then add 'ipv6.disable=1' (with no quotes) to the end of the line that appears.
    bbao5 wrote:
    I tried booting with
    -ipv6.disable=1
    but I don't know how I'm supposed to add a "noipv6rs" to the /etc/dhcpcd file"...
    Give an
    echo "noipv6rs" >> /etc/dhcpcd.conf
    from the live cd. Mind the double redirection (>>), a single one will overwrite the whole file.
    Alternatively, you can give a
    echo "noipv6rs" | tee -a /etc/dhcpcd.conf
    Mind the '-a' (--add) option.
    You'll have to do this again for the new installation, otherwise you'll have the same problem.
    Last edited by fkol-k4 (2013-12-26 20:42:29)

  • [solved] cannot install pacstrap /mnt base to UEFI without internet

    Hello everybody.
    Today I decided to install ArchLinux because of some problems on my Linux Mint System.
    On my laptop Lenovo yoga 13  while using Mint I installed Wi-Fi drivers after installation. It is not working out of the box.
    There is no Ethernet port on this laptop.
    In Begginer's Guide I have read that internet may be set up later. Ok, I skipped it and do next steps as in manual.
    When I go to step of installing base system the following happens
    # pacstrap /mnt base base-devel
    Error strings are running: could not get file ... from ... Could not resolve host ...
    And at the end:
    Cannot synchronize any database
    Cannot start request (error in boot library)
    Error ==> Failed to install pakages to new root
    I stopped here. Why it tries to connect to internet?
    P.S. I am installing from fresh iso from 2014.05.01 via LiveUSB.
    Please tell me what should I do?
    [Sorry if my English is bad ]
    Last edited by agent0 (2014-05-13 15:40:31)

    Sorry, forget to write. I have tested to execute pacman with -U option too. Here is its output:
    загрузка пакетов... (English: loading packages)
    разрешение зависимостей... (English: solving dependencies)
    проверка на взаимную несовместимость... (English: check for incompatibiility)
    Packets (12): binutils-2.24-3 cloog-0.18.1-2 dkms-2.2.0.3-14 gcc-4.9.0-1 guile-2.0.11-1 isl-0.12.2-1 libltdl-2.4.2-13 libmpc-1.0.2-2 linux-headers-3.14.2-1 make-4.0-2 patch-2.7.1-2 dkms-8723au-git-0.1-0
    It will be loaded: 35,83 MiB
    It will be installed: 165,54 MiB
    :: Start installing? [Y/n] _
    What packages does it mean: dependent pkgs or pkgs that will be downloaded?
    Again, I cannot download anything, so I need to install theese packages the same way as I try to install this one for wifi?
    And for installing theese pkgs, perhaps, I will need to install packages, dependent on theese? Oh... Recursion.
    What should I do?

  • Error: failed to commit transaction (failed to retrieve some files)

    Hello, I am trying to get a fresh install of arch linux going, but,
    When I exectute pacstrap -i /mnt base base-devel, I get an error:
    warning: failed to retrieve some files
    error: failed to commit transaction (failed to retrieve some files)
    Errors occured, no packages were updraded
    ==> EDDOR: Failed to install packages to new root
    I have no clue what is wrong, I tried changing my nameserver, updating the keyrings, and updating the system. How can I fix this?
    Thanks!
    Last edited by Whiskertoes (2015-02-03 02:46:53)

    Yeah, right before this it gives the same error multiple times:
    error: could not open file /mnt/var/cache/pacman/pkg/vi-1:05325-4-x86-64.pkg.tar.xz.part: Invalid argument
    This error fills the entire screen, I am relatively new to arch, please help

  • [SOLVED] install arch VM with pacstrap

    Dear all,
    I am installing a Arch VM on my Arch host. The host is up-to-date, well configured (at least I think) in a vanilla manner (no suspicious hacks).
    # pacstrap -i -c -d /dahlia base base-devel
    is installing all packages but gives me this error many times:
    /usr/bin/bash: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory
    error: command failed to execute correctly
    Googling this error returns lot of topics but I couldn't find a clear answer. I do not want to start with a semi-broken arch VM, so I want to solve this issue before going further.
    Thank you
    Last edited by gabx (2014-02-10 13:22:42)

    # pacstrap -i -c -d /dahlia base base-devel readline lib32-ncurses ncurses acl attr gettext
    did the trick

  • [SOLVED]Pacstrap causing error "bad interpreter"

    Hi,
    I am not "extremely" new to Arch as I've installed Arch on a machine(not mine) a couple of years back. But I don't exactly remember the steps. I used Lubuntu in my machine(HP dm1z) for a long time and I can be considered as a newbie here. So I went through the Installation Guide and started installing. Intro over.
    So the problem is when I try to install the base system using pacstrap:
    pacstrap /mnt base
    it gives me the error
    zsh: /usr/bin/pacstrap: bad interpreter: /bin/bash: no such file or directory
    The installation media I use is a USB stick and I used Win32DiskImager to burn the image on to it. I tried the iso on vmplayer in my windows machine and was able to install it successfully.
    What could be the issue?
    Last edited by jrbalu (2013-06-02 03:56:39)

    I failed to mention it but I was checking the beginner's guide also. There seems to be not much help in the beginner's guide too, if the error I mentioned above occurs. I googled as vast as I can but failed to find a solution.

Maybe you are looking for

  • Repository Creation Utility Portal schema for 11g creation fails

    I run RCU for database 11g 11.1.0.7 64bit created portal schema show error: in portal.log file:* PL/SQL procedure successfully completed. No errors. Create navigation page for shared page group. ERROR: Creating the Navigation Objects Internal error U

  • Ora-12514

    I have installed oracle xe on ubuntu. When i tried to connect to sqlplus, I got the following error: TNS: listener does not currently know of service requested in connect descriptor. Then I add parameters for static service registration to listener.o

  • SELECT-OPTIONS and data collection

    Hi All, I have one inputfield (say users) via SELECT-OPTIONS and it goes to an internal table called "userlist" with values USER1, USER2 etc...(Example) Now, when I query the database with "userlist" as the input, I'm not able to do so because SELECT

  • Adding custom fields to standard Asset Accounting  ALV reports

    Hello, I have recently added some fields to the Asset Master table ANLU using the customizing include CI_ANLU.  I have also added some fields using an append structure to ANLZ.  I now need to have these fields available in the standard reports for As

  • Warehouse builder download

    hi all where can i download the warehouse builder verison 9.2 as there is no verison available on the otn