You are not logged in.

#1 2013-08-25 14:16:30

rob111
Member
Registered: 2013-08-24
Posts: 15

bash: nano: command not found Solved

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

#2 2013-08-25 14:19:02

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: bash: nano: command not found Solved

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

#3 2013-08-25 14:35:37

henk
Member
From: Weert, Netherlands
Registered: 2013-01-01
Posts: 334

Re: bash: nano: command not found Solved

Have a look at this section.

Offline

#4 2013-08-25 15:03:53

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: bash: nano: command not found Solved

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

#5 2013-08-25 15:10:39

rob111
Member
Registered: 2013-08-24
Posts: 15

Re: bash: nano: command not found Solved

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

Offline

#6 2013-08-25 15:14:30

rob111
Member
Registered: 2013-08-24
Posts: 15

Re: bash: nano: command not found Solved

Trilby wrote:

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

#7 2013-08-25 16:02:25

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: bash: nano: command not found Solved

rob111 wrote:
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

#8 2013-08-25 16:05:58

henk
Member
From: Weert, Netherlands
Registered: 2013-01-01
Posts: 334

Re: bash: nano: command not found Solved

@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

#9 2013-08-25 16:25:33

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: bash: nano: command not found Solved

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.

Last edited by Trilby (2013-08-25 16:26:45)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#10 2013-08-25 16:48:17

henk
Member
From: Weert, Netherlands
Registered: 2013-01-01
Posts: 334

Re: bash: nano: command not found Solved

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

#11 2013-08-25 19:21:13

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: bash: nano: command not found Solved

henk wrote:

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

#12 2013-08-25 19:57:20

rob111
Member
Registered: 2013-08-24
Posts: 15

Re: bash: nano: command not found Solved

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.

Offline

#13 2013-08-25 20:03:47

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: bash: nano: command not found Solved

rob111 wrote:

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

#14 2013-08-25 20:04:25

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: bash: nano: command not found Solved

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

#15 2013-08-25 20:05:57

rob111
Member
Registered: 2013-08-24
Posts: 15

Re: bash: nano: command not found Solved

rob111 wrote:
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

#16 2013-08-25 20:07:09

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: bash: nano: command not found Solved

Edit the first post and it will let you edit the title.

Offline

Board footer

Powered by FluxBB