Re: Error: system: command not found.

2018-06-28 Thread swedebugia



On June 28, 2018 11:06:38 PM GMT+02:00, Jone  wrote:
>> Can you not choose an earlier profile in grub and go from there?
>
>Here is my mistake: I decided that old profiles are not needed and
>clear
>them.

So did you learn something the hard way? 

>Well, I was not happy with my config also. Now - satisfied. So it is
>not so
>important,
>only the cost of processor time. That's why I want to get a good
>0-profile.

I do not understand how only relying on one profile relates to processor time. 

-- 
Cheers Swedebugia



Re: Error: system: command not found.

2018-06-28 Thread Jone
> Can you not choose an earlier profile in grub and go from there?

Here is my mistake: I decided that old profiles are not needed and clear
them.
Well, I was not happy with my config also. Now - satisfied. So it is not so
important,
only the cost of processor time. That's why I want to get a good 0-profile.


Re: Error: system: command not found.

2018-06-28 Thread swedebugia
Hi.


On June 28, 2018 5:25:25 PM GMT+02:00, Jone  wrote:
>Thanks, Swedebugia.
>
>> You probably like Pierre missed the warning about setting
>> the correct path after the first guix pull.
>
>Yep, maybe. But while I was messing with the system, I globally
>rewrote the system config. And now is difficult to combine it with
>current state of the system.. I think that it will be easier
>to completely reinstall =)

If you reconfigure once with a good guix you should be in the clear.
Can you not choose an earlier profile in grub and go from there?
-- 
Cheers Swedebugia 

Re: Error: system: command not found.

2018-06-28 Thread Jone
Thanks, Swedebugia.

> You probably like Pierre missed the warning about setting
> the correct path after the first guix pull.

Yep, maybe. But while I was messing with the system, I globally
rewrote the system config. And now is difficult to combine it with
current state of the system.. I think that it will be easier
to completely reinstall =)


Re: Error: system: command not found.

2018-06-28 Thread swedebugia
Hi

On June 28, 2018 4:11:14 PM GMT+02:00, Jone  wrote:
>> When I had problems they were caused by wrong path.
>
>Not sure, it seems the main problem is a broken 'guix pull' in root
>guix
>instance,
>and I can not do anything further, deadlock!

I thought that too. Keep calm. You most probably have multiple well working 
guix in the store. 

>
>Output:
>
>## user
>
>ls -l .config/guix/
>total 0
>lrwxrwxrwx 1 jone users 58 May 20 23:29 latest ->
>/gnu/store/9247gcx6ircqypbv8l157c5wvwm0wjkh-guix-d8ac79870
>
>echo $PATH
>/home/jone/.guix-profile/bin:/home/jone/.guix-profile/sbin:/run/setuid-programs:/run/current-system/profile/bin:/run/current-system/profile/sbin:/home/jone/bin
>
>## root
>
>ls -l /root/.config/guix/
>total 4
>lrwxrwxrwx 1 root root 33 Jun 27 18:25 current ->
>/root/.config/guix/current-5-link
>lrwxrwxrwx 1 root root 51 Jun 27 03:00 current-1-link ->
>/gnu/store/awhkhxxlkfq67yza628wcbnldsj48kly-profile
>lrwxrwxrwx 1 root root 51 Jun 27 14:01 current-2-link ->
>/gnu/store/h5l5qv5wqfpx0dszhms56xjzsqnacc11-profile
>lrwxrwxrwx 1 root root 51 Jun 27 14:21 current-3-link ->
>/gnu/store/4ismmx7j2xl5wiy6y941br387m2shqj3-profile
>lrwxrwxrwx 1 root root 51 Jun 27 17:12 current-4-link ->
>/gnu/store/j8jrbdynjnl6wm7i0mr3mxfxyx93s886-profile
>lrwxrwxrwx 1 root root 51 Jun 27 18:25 current-5-link ->
>/gnu/store/c9qimm831w3rlqmsaq0n5qlw68bkg4cl-profile

These profiles could be corrupt because you generated them with an old guix. 
With a good guix you can generate a good one. See below. 

>lrwxrwxrwx 1 root root 66 Jun 27 02:53 latest ->
>/gnu/store/g42p8f30ihr4ni5anmw5029gd29gky52-guix-2a09df43e-modules
>
>echo $PATH
>/run/setuid-programs:/run/current-system/profile/bin:/run/current-system/profile/sbin

This is NOT correct. You probably like Pierre missed the warning about setting 
the correct path after the first guix pull. 

.config/guix/current/bin should be first in path. 

You have at least 2 new guix that compiled correctly below in zzz-guix-command. 
They should be linked to from the current profile in .config/ 


>
>
>ls -l /gnu/store | grep guix
>-r--r--r--  2 root root1437 Jan  1  1970
>0qfcnbk19fycgygwc8s8k8k01yn6xyzi-guix-command.drv
>-r--r--r--  2 root root 943 Jan  1  1970
>0x5a9hm8mgbx73hl0hsbw4yyngb31ads-shepherd-guix-daemon.scm.drv
>dr-xr-xr-x  3 root root4096 Jan  1  1970
>0zadksf076a2l3gbimgl7phwcwbkd8kr-guix-packages-base-source
>dr-xr-xr-x  5 root root4096 Jan  1  1970
>14bkn25rih8y8j5n848i6xq0qfg8x5nc-guix-69390e29d
>-r--r--r--  2 root root1504 Jan  1  1970
>1cam9k64c56fksva4nmv1rabx2xqkc17-guix-config-builder
>-r--r--r--  2 root root1210 Jan  1  1970
>1ciw7ib9cvw3vm92xxv8aw2r6azsv3s9-guix-b7238c3d6-builder
>-r--r--r--  2 root root7324 Jan  1  1970
>1f7ll8gbpbj0hkm194aq73b77vxjfa8c-guix-packages-builder
>-r--r--r--  2 root root2900 Jan  1  1970
>1fn8gnq2kcynxiqz54xhl6ywfvya6s4h-guix-0.14.0-11.ab85cf7.drv
>-r--r--r--  2 root root 876 Jan  1  1970
>1s2yal3ia5zlifv5p1v38ndzv6mfxfb1-guix-core.drv
>-r--r--r--  2 root root2051 Jan  1  1970
>1v4nsr0v16qfgb1ik8viyhh05fs0n3bq-guix-cli.drv
>-r--r--r--  2 root root4712 Jan  1  1970
>1vskak06b635sjrg0lrb7iy15qp70jnf-guix-0.14.0-11.ab85cf7.drv
>dr-xr-xr-x  4 root root4096 Jan  1  1970
>230n6p7pns43dbaq3pwk9glfvx23zm10-guix-extra
>-r--r--r--  2 root root4383 Jan  1  1970
>2b9485z1qfz4g6arfm9r4snp718f2wki-guix-system-builder
>-r--r--r--  2 root root   11217 Jan  1  1970
>2h4wcl2wj162hs84s0bkcip73s2b24zx-guix-packages-source.drv
>-r--r--r--  2 root root 886 Jan  1  1970
>3fgl1fqhb4xx10spyvgjjha5isj4fcph-guix-config.drv
>dr-xr-xr-x  3 root root4096 Jan  1  1970
>3pw07filsg47yppwsha5qsbgk129iwhx-guix-cli
>dr-xr-xr-x  4 root root4096 Jan  1  1970
>40cmqfwwaj8pbqzrjqz6nhdi6s67gc22-guix-69390e29d-modules
>-r--r--r--  2 root root   11217 Jan  1  1970
>43kzipbzaq1wh3icv48b6k6inqvsvdsd-guix-packages-source.drv
>-r-xr-xr-x  2 root root2240 Jan  1  1970
>455rs0xq4k132gfnygqzm04xjn60d47d-guix-command
>-r--r--r--  2 root root  113238 Jan  1  1970
>49m6iw9s2hyd1kfmkvv7jl3dvngywgnb-guix-packages-base-source-builder
>-r--r--r--  2 root root2051 Jan  1  1970
>4axxyw1dg4bfbbwvjr0sqslxd7h7mxag-guix-cli.drv
>-r--r--r--  2 root root1036 Jan  1  1970
>4ds0lrwsyn1biwg8a3cq4dci690fpfw2-guix-manual.drv
>-r--r--r--  2 root root1383 Jan  1  1970
>4jbkhyldzv1g59vic674qh9jrfghmgii-guix-e96ba83fa-modules.drv
>-r--r--r--  2 root root2391 Jan  1  1970
>4n0yh5fqq7kv95zvmkq7z6balwb6pzcl-guix-command-builder
>dr-xr-xr-x  2 root root4096 Jan  1  1970
>4n42yg0rbymgdgay8yfvry6dfvh3yy1c-guix
>-r--r--r--  2 root root 925 Jan  1  1970
>4sl7dwq7aps8jj956fbag6km6wyjq8yv-guix-config-source.drv
>-r--r--r--  2 root root1437 Jan  1  1970
>4w20qm92l8jm3v2nxd25qgvhdpqskxk6-guix-command.drv
>-r--r--r--  2 root root1915 Jan  1  1970
>4wv5kk02cza1f36jy2mpp3in6gdrn7jd-guix-system.drv
>-r--r--r--  2 root root4383 Jan  1  1970
>556r1dakqa40nrjszxxzsqqf736ym96z-guix-system-builder
>dr-xr-xr-x  4 

Re: Error: system: command not found.

2018-06-28 Thread Jone
> When I had problems they were caused by wrong path.

Not sure, it seems the main problem is a broken 'guix pull' in root guix
instance,
and I can not do anything further, deadlock!

Output:

## user

ls -l .config/guix/
total 0
lrwxrwxrwx 1 jone users 58 May 20 23:29 latest ->
/gnu/store/9247gcx6ircqypbv8l157c5wvwm0wjkh-guix-d8ac79870

echo $PATH
/home/jone/.guix-profile/bin:/home/jone/.guix-profile/sbin:/run/setuid-programs:/run/current-system/profile/bin:/run/current-system/profile/sbin:/home/jone/bin

## root

ls -l /root/.config/guix/
total 4
lrwxrwxrwx 1 root root 33 Jun 27 18:25 current ->
/root/.config/guix/current-5-link
lrwxrwxrwx 1 root root 51 Jun 27 03:00 current-1-link ->
/gnu/store/awhkhxxlkfq67yza628wcbnldsj48kly-profile
lrwxrwxrwx 1 root root 51 Jun 27 14:01 current-2-link ->
/gnu/store/h5l5qv5wqfpx0dszhms56xjzsqnacc11-profile
lrwxrwxrwx 1 root root 51 Jun 27 14:21 current-3-link ->
/gnu/store/4ismmx7j2xl5wiy6y941br387m2shqj3-profile
lrwxrwxrwx 1 root root 51 Jun 27 17:12 current-4-link ->
/gnu/store/j8jrbdynjnl6wm7i0mr3mxfxyx93s886-profile
lrwxrwxrwx 1 root root 51 Jun 27 18:25 current-5-link ->
/gnu/store/c9qimm831w3rlqmsaq0n5qlw68bkg4cl-profile
lrwxrwxrwx 1 root root 66 Jun 27 02:53 latest ->
/gnu/store/g42p8f30ihr4ni5anmw5029gd29gky52-guix-2a09df43e-modules

echo $PATH
/run/setuid-programs:/run/current-system/profile/bin:/run/current-system/profile/sbin


ls -l /gnu/store | grep guix
-r--r--r--  2 root root1437 Jan  1  1970
0qfcnbk19fycgygwc8s8k8k01yn6xyzi-guix-command.drv
-r--r--r--  2 root root 943 Jan  1  1970
0x5a9hm8mgbx73hl0hsbw4yyngb31ads-shepherd-guix-daemon.scm.drv
dr-xr-xr-x  3 root root4096 Jan  1  1970
0zadksf076a2l3gbimgl7phwcwbkd8kr-guix-packages-base-source
dr-xr-xr-x  5 root root4096 Jan  1  1970
14bkn25rih8y8j5n848i6xq0qfg8x5nc-guix-69390e29d
-r--r--r--  2 root root1504 Jan  1  1970
1cam9k64c56fksva4nmv1rabx2xqkc17-guix-config-builder
-r--r--r--  2 root root1210 Jan  1  1970
1ciw7ib9cvw3vm92xxv8aw2r6azsv3s9-guix-b7238c3d6-builder
-r--r--r--  2 root root7324 Jan  1  1970
1f7ll8gbpbj0hkm194aq73b77vxjfa8c-guix-packages-builder
-r--r--r--  2 root root2900 Jan  1  1970
1fn8gnq2kcynxiqz54xhl6ywfvya6s4h-guix-0.14.0-11.ab85cf7.drv
-r--r--r--  2 root root 876 Jan  1  1970
1s2yal3ia5zlifv5p1v38ndzv6mfxfb1-guix-core.drv
-r--r--r--  2 root root2051 Jan  1  1970
1v4nsr0v16qfgb1ik8viyhh05fs0n3bq-guix-cli.drv
-r--r--r--  2 root root4712 Jan  1  1970
1vskak06b635sjrg0lrb7iy15qp70jnf-guix-0.14.0-11.ab85cf7.drv
dr-xr-xr-x  4 root root4096 Jan  1  1970
230n6p7pns43dbaq3pwk9glfvx23zm10-guix-extra
-r--r--r--  2 root root4383 Jan  1  1970
2b9485z1qfz4g6arfm9r4snp718f2wki-guix-system-builder
-r--r--r--  2 root root   11217 Jan  1  1970
2h4wcl2wj162hs84s0bkcip73s2b24zx-guix-packages-source.drv
-r--r--r--  2 root root 886 Jan  1  1970
3fgl1fqhb4xx10spyvgjjha5isj4fcph-guix-config.drv
dr-xr-xr-x  3 root root4096 Jan  1  1970
3pw07filsg47yppwsha5qsbgk129iwhx-guix-cli
dr-xr-xr-x  4 root root4096 Jan  1  1970
40cmqfwwaj8pbqzrjqz6nhdi6s67gc22-guix-69390e29d-modules
-r--r--r--  2 root root   11217 Jan  1  1970
43kzipbzaq1wh3icv48b6k6inqvsvdsd-guix-packages-source.drv
-r-xr-xr-x  2 root root2240 Jan  1  1970
455rs0xq4k132gfnygqzm04xjn60d47d-guix-command
-r--r--r--  2 root root  113238 Jan  1  1970
49m6iw9s2hyd1kfmkvv7jl3dvngywgnb-guix-packages-base-source-builder
-r--r--r--  2 root root2051 Jan  1  1970
4axxyw1dg4bfbbwvjr0sqslxd7h7mxag-guix-cli.drv
-r--r--r--  2 root root1036 Jan  1  1970
4ds0lrwsyn1biwg8a3cq4dci690fpfw2-guix-manual.drv
-r--r--r--  2 root root1383 Jan  1  1970
4jbkhyldzv1g59vic674qh9jrfghmgii-guix-e96ba83fa-modules.drv
-r--r--r--  2 root root2391 Jan  1  1970
4n0yh5fqq7kv95zvmkq7z6balwb6pzcl-guix-command-builder
dr-xr-xr-x  2 root root4096 Jan  1  1970
4n42yg0rbymgdgay8yfvry6dfvh3yy1c-guix
-r--r--r--  2 root root 925 Jan  1  1970
4sl7dwq7aps8jj956fbag6km6wyjq8yv-guix-config-source.drv
-r--r--r--  2 root root1437 Jan  1  1970
4w20qm92l8jm3v2nxd25qgvhdpqskxk6-guix-command.drv
-r--r--r--  2 root root1915 Jan  1  1970
4wv5kk02cza1f36jy2mpp3in6gdrn7jd-guix-system.drv
-r--r--r--  2 root root4383 Jan  1  1970
556r1dakqa40nrjszxxzsqqf736ym96z-guix-system-builder
dr-xr-xr-x  4 root root4096 Jan  1  1970
56ax0y84liv7nl5kyzyy718m5a34259l-guix-system-source
-r--r--r--  2 root root1196 Jan  1  1970
56j1ssh1mhngw3jnrwa57hwlbfgj006x-guix-b7238c3d6.drv
-r--r--r--  2 root root1437 Jan  1  1970
5g25x81yhvs0wgch63xzbvh5d1x6spgy-guix-command.drv
-r--r--r--  2 root root 979 Jan  1  1970
5h841f21ilgqhv3dcc43xlaa1rxi7lmj-guix-locale-guix-packages.drv
-r--r--r--  2 root root5029 Jan  1  1970
5ib5f94aksrnrjfmpaihld5vyfc3bnkd-guix-system-source.drv
-r--r--r--  2 root root 886 Jan  1  1970
5imji0m667fcbn8ddplpby9lgc1zvjsl-guix-config.drv
-r--r--r--  2 root root1196 Jan  1  1970
5mnc810vhw2wyrbhywsbd3v8cn6j0jkm-guix-bc1d26e39.drv
-r--r--r--  2 root root7324 Jan  1  1970

Re: Error: system: command not found.

2018-06-28 Thread swedebugia
Hi

Could you send the output of the following:
ls -l .config/guix/
ls -l /root/.config/guix/
echo $PATH as both user and root

Even
ls -l /gnu/store |grep guix

When I had problems they were caused by wrong path. 
-- 
Cheers Swedebugia 

Re: Error: system: command not found.

2018-06-28 Thread Jone
> We recommend not to add user packages to the “packages” field of your
> operating system configuration.

Ricardo, there are listed only base system-wide packages! I even deleted
'icecat' and some others,
but this almost did not change the reconfigure time.

By the way, in the new system generation (after reconfigure) the same
problems, well, it was expected.
But if I launch 'sudo -E guix pull', then .. ?


Re: Error: system: command not found.

2018-06-28 Thread Jone
My situation is worse, installation of guile-sqlite3 does not solve the
problem. And brocken 'guix pull' in root instance of guix - can't
update. After reconfigure with 'sudo -E guix ..' the same problems
remained..

2018-06-28 4:05 GMT+00:00 Leo Famulari :

> On Wed, Jun 27, 2018 at 09:48:23PM -0400, Mike Gerwitz wrote:
> > On Wed, Jun 27, 2018 at 14:53:50 +, Jone wrote:
> > > I have a problem: can not run system reconfigure.
> > > root@guix ~# guix system --help
> > > guix: system: command not found
> >
> > I had the same problem last night and I found (via strace) that it was
> > looking for an sqlite3 guile library.  Installing guile-sqlite3 into
> > root's profile fixed the problem for me.
> >
> > I just didn't have the chance to report the issue yet.
>
> I think this is fixed in some recent commit. I had this issue but no
> longer need to explicitly install guile-sqlite3 to work around it.
>


Re: Error: system: command not found.

2018-06-27 Thread Leo Famulari
On Wed, Jun 27, 2018 at 09:48:23PM -0400, Mike Gerwitz wrote:
> On Wed, Jun 27, 2018 at 14:53:50 +, Jone wrote:
> > I have a problem: can not run system reconfigure.
> > root@guix ~# guix system --help
> > guix: system: command not found
> 
> I had the same problem last night and I found (via strace) that it was
> looking for an sqlite3 guile library.  Installing guile-sqlite3 into
> root's profile fixed the problem for me.
> 
> I just didn't have the chance to report the issue yet.

I think this is fixed in some recent commit. I had this issue but no
longer need to explicitly install guile-sqlite3 to work around it.


signature.asc
Description: PGP signature


Re: Error: system: command not found.

2018-06-27 Thread Mike Gerwitz
On Wed, Jun 27, 2018 at 14:53:50 +, Jone wrote:
> I have a problem: can not run system reconfigure.
>   root@guix ~# guix system --help
>   guix: system: command not found

I had the same problem last night and I found (via strace) that it was
looking for an sqlite3 guile library.  Installing guile-sqlite3 into
root's profile fixed the problem for me.

I just didn't have the chance to report the issue yet.

-- 
Mike Gerwitz
Free Software Hacker+Activist | GNU Maintainer & Volunteer
GPG: D6E9 B930 028A 6C38 F43B  2388 FEF6 3574 5E6F 6D05
https://mikegerwitz.com


signature.asc
Description: PGP signature


Re: Error: system: command not found.

2018-06-27 Thread Ricardo Wurmus


Jone  writes:

> And the current results:
> during reconfigure were built from source samba, ffmpeg, icecat (now)
> and I do not know what else and how long it will be.
> Theoretically, berlin.guixsd.org repository is enabled:
>
> (modify-services %desktop-services
> ...
>   (substitute-urls (list "https://berlin.guixsd.org;
>  "https://mirror.hydra.gnu.org;)))
>
> but I don't understand why these "heavy" packages are being built.

I suspect that they are listed in the “packages” field of your
configuration.  There has been a change to the icecat package about 19
hours ago.

We recommend not to add user packages to the “packages” field of your
operating system configuration.

--
Ricardo




Re: Error: system: command not found.

2018-06-27 Thread Jone
And the current results:
during reconfigure were built from source samba, ffmpeg, icecat (now)
and I do not know what else and how long it will be.
Theoretically, berlin.guixsd.org repository is enabled:

(modify-services %desktop-services
...
  (substitute-urls (list "https://berlin.guixsd.org;
 "https://mirror.hydra.gnu.org;)))

but I don't understand why these "heavy" packages are being built.



Re: Error: system: command not found.

2018-06-27 Thread Jone
Thanks. I already wrote this, but I was not sure that nothing would break in 
the system.



Re: Error: system: command not found.

2018-06-27 Thread Ricardo Wurmus


Pierre Neidhardt  writes:

> If you run guix as root, then you must run `guix pull` as root as well.
> I find it simpler to use the `sudo` command to execute your user's "guix" with
> additional privileges.  For instance,
>
>   sudo guix system reconfigure ...
>
> should work.

You can also use “sudo -E guix system reconfigure” to keep the current
user’s environment.

-- 
Ricardo




Re: Error: system: command not found.

2018-06-27 Thread Jone
Works as
sudo -E guix system --help
but I can not imagine what will happen as a result with 'sudo -E' and 'system 
reconfigure'.



Re: Error: system: command not found.

2018-06-27 Thread Jone
> If you run guix as root, then you must run `guix pull` as root as
> well.
Yes, that's exactly what I did.

> sudo guix system reconfigure
> should work.
But:
sudo guix system --help
Password: 
guix: system: command not found
Try `guix --help' for more information.

Checked again - but alas.. Amusing situation)) I can not roll back
system (there is only the current generation) and can not reconfigure..



Re: Error: system: command not found.

2018-06-27 Thread Pierre Neidhardt
If you run guix as root, then you must run `guix pull` as root as well.
I find it simpler to use the `sudo` command to execute your user's "guix" with
additional privileges.  For instance,

  sudo guix system reconfigure ...

should work.

-- 
Pierre Neidhardt

You'd like to do it instantaneously, but that's too slow.


signature.asc
Description: PGP signature