You are not logged in.
Pages: 1
Hi
I got this problem during installation. Unfortunately I didn't find any recommendation how I can solve it.
I have downloaded and almost install but when I came inside I can't set up hostname and timezone.
[root@archiso /]# nano etc/hostname
bash: nano: command not found
[root@archiso /]# pacman -S nano
resolving dependencies...
looking for inter-conflicts...
Packages (1): nano-2.2.6-2
Total Download Size: 0.29 MiB
Total Installed Size: 1.49 MiB
: : Proceed with installation? [Y/n] y
: : Retrieving packages ...
nano-2.2.6-2-i686 294.8 KiB 493K/s 00:01 [############################] 100%
(1/1) checking keys in keyring [############################] 100%
(1/1) checking package integrity [############################] 100%
error: nano: signature from "Andreas Radke <andyrtr@archlinux.org>" is unknown trust
: : File /var/cache/pacman/pkg/nano-2.2.6-2-i686.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.
[root@archiso /]# pacstrap -i /mnt base base-devel
bash: pacstrap: command not found
I spend half day to find some solutions that related with my problem. Could somebody help me to understand what I am doing wrong.
Thank you in advance for your help.
Last edited by rob111 (2013-08-25 20:34:02)
Offline
If the package is corrupted, you probably do want to delete it. That way it will be redownloaded (hopefully successfully this time) and installed.
FWIW, I used to be a nano user, thinking that vi/vim was just far too complex to be practical… but then I gave in, learned vim, and now I have actually removed nano from my system, and most of the applications I choose have vim keybindings. So if you have the spare time to go through vimtutor real quick, it could change your computing life!
Offline
Have a look at this section.
Offline
The above points are correct for fixing the nano problem, but this seems to be a single symptom of a different underlying problem which is confirmed by the pacstrap not found error: you are not running in a (current nor even relatively recent) arch iso.
Where did you get that iso?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Have a look at this section.
I can't enter in pacman's config file
[root@archiso /]# /etc/pacman.conf
bash: /etc/pacman.conf: Permission denied
Offline
The above points are correct for fixing the nano problem, but this seems to be a single symptom of a different underlying problem which is confirmed by the pacstrap not found error: you are not running in a (current nor even relatively recent) arch iso.
Where did you get that iso?
I downloaded it from wiki.archlinux.org site
archlinux-2013.08.01-dual.iso
Offline
henk wrote:Have a look at this section.
I can't enter in pacman's config file
[root@archiso /]# /etc/pacman.conf bash: /etc/pacman.conf: Permission denied
It's a text file, use an editor to edit it.
Offline
@Trilby, pacstrap only works if not chrooted in.
@rob111 You don't have to be in pacman.conf.
Set your time and set/refresh your keys as stated in the link.
Offline
@Trilby, pacstrap only works if not chrooted in.
The OP still trying to install base and base-devel suggested he had not yet chrooted. The hostname of the prompt also supports this.
@ OP, can you clarify: have you already chrooted into the installed system? Had you previously successfully ran the pacstrap command?
Even if this is after the chroot, if the proper steps were followed, nano would be installed.
Last edited by Trilby (2013-08-25 16:26:45)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Setting the hostname and timezone is normally done after chrooting; the prompt is correct, normally when not chrooted in
you have a prompt with "livecd" or something similair.
Even if this is after the chroot, if the proper steps were followed, nano would be installed.
You are right on the spot there.
There is a possibility that with using the command
pacstrap -i /mnt base base-devel
if the follow up is not correct not all packages will be downloaded/installed. Happenend to me at one of my
first attempts. By ommiting "-i" all packages will be downloaded automatically.
Last edited by henk (2013-08-25 16:58:19)
Offline
Setting the hostname and timezone is normally done after chrooting; the prompt is correct, normally when not chrooted in
you have a prompt with "livecd" or something similair.
But if the OP is not using the '-i' switch with pacstrap, then when the install gets to the nano package, it would simply fail to install anything, wouldn't it? So it would seem that unless the OP has explicitly chosen not to install nano, then he/she would still be at the point on an empty partition.
I am fairly certain that the prompt contains the hostname of the live media, since it is just a vanilla grml-zsh-config setup. Adn the live media definitely has a hostname of 'archiso'.
Offline
henk wrote:@Trilby, pacstrap only works if not chrooted in.
The OP still trying to install base and base-devel suggested he had not yet chrooted. The hostname of the prompt also supports this.
@ OP, can you clarify: have you already chrooted into the installed system? Had you previously successfully ran the pacstrap command?
Even if this is after the chroot, if the proper steps were followed, nano would be installed.
I am already chrooted into the installed system as said tutorial and previously I ran pacstrap command.
I can't figure out if I write command with root@archiso ~ # nano it is working but if I tried call [root@archiso /]# nano when I into system it is not working.
Offline
I can't figure out if I write command with root@archiso ~ # nano it is working but if I tried call [root@archiso /]# nano when I into system it is not working.
This is really hard to parse. Can you explain what this means (ideally with more than one sentence and actual punctuation)?
Offline
I just booted the 0801 iso to see what the prompts looked like. The prompt seen at first boot looks like this:
root@archiso ~ #
the word "root" is red, and there are no brackets around the prompt (the OP is showing brackets around the prompt). If I run "arch-chroot .mnt" without specifying /bin/bash, the prompt becomes simply "#". If I run "arch-chroot /mnt /bin/bash" the prompt looks like this:
root@archiso:/#
all white, again no brackets, but with a colon after the "archiso" and no space between the working directory and the #.
Based on what the OP is showing (there is no colon after the "archiso" in his prompt) it does look like he is not in the chroot. But I'm confused about the brackets.
(edit) oh never mind, he solved it. that was a waste of time.
Last edited by 2ManyDogs (2013-08-25 20:07:31)
Offline
Trilby wrote:henk wrote:@Trilby, pacstrap only works if not chrooted in.
The OP still trying to install base and base-devel suggested he had not yet chrooted. The hostname of the prompt also supports this.
@ OP, can you clarify: have you already chrooted into the installed system? Had you previously successfully ran the pacstrap command?
Even if this is after the chroot, if the proper steps were followed, nano would be installed.
I am already chrooted into the installed system as said tutorial and previously I ran pacstrap command.
I can't figure out if I write command with root@archiso ~ # nano it is working but if I tried call [root@archiso /]# nano when I into system it is not working.
Thank you Trilby thank you guys. I solved problem after I verified master key. Hey guys how I can mark this post as "Solved"
Offline
Edit the first post and it will let you edit the title.
Offline
Pages: 1