Solved Two freebsd-update fetch problems: non-responding END & double slash in jails

I have two very strange deviances regarding patching 12.0-RELEASE.

1. When I run freebsd-update fetch it ended up with END in the end of the screen and I can't get it over. I have read a couple threads here that suggested to press q or :q. But in my case it could't help. After each ':q' ('q' doesn't respond at all) the prompt goes back to END sign. The first ':q' resulted with the line /usr/share/zoneinfo/Asia/Qostanay and then nothing. After several repeated ':q' (I guess 5-7) the prompt came back and I could proceed with freebsd-update install. Frankly, I was so afraid to ruin my brand-new 6-jail-in-a-box installation, that I chose to repeat the freebsd-update fetch with idiotic hope on another outcome. On some keys (e.g. space bar) it showed a column of '~' on the left (like when I faced the vi editor the very first time). There was a lot bells on other keys...
Nevertheless I can't imaging why this happens while it's my first update with FreeBSD. Any thoughts and suggestions?

2. The stranger goes with jail. In addition to the problem 1 (and it's worse when I tried fetch install - it simply stuck and the ^С was only solution) I got the following:
Code:
17:14 /root # freebsd-update -f /etc/jail-freebsd-update.conf -b /jail/mariadb --currently-running `jexec -l mariadb freebsd-version` install
Installing updates...mtree: /jail/mariadb//boot/kernel: No such file or directory
cd: /jail/mariadb//boot/kernel: No such file or directory
install: /jail/mariadb//usr/share/zoneinfo/Asia/Qostanay: No such file or directory
chflags: /jail/mariadb//usr/share/zoneinfo/Asia/Qostanay: No such file or directory
17:15 /root #
I was astonished to see a double slash between jail and new file paths.

I'm a newbie to FreeBSD (and to UNIX for that matter...) and probably there is a simple explanation for both my problem (I guess they are related somehow). Anyway, any thoughts and help are really welcome.

Edit: While I was waiting for a reply here, I figured out the problem 1. The issue was with PAGER env in .cshrc and .profile. When I tried to get rid of the PAGER after my first hopeless try with fetch the system probably replaced it with vi. After I set the PAGER in .cshrc and .profile back the 'q' works (I still have to press it several times though, but at least it works without a deviance). The second problem still on the way...
 
It's embarrassing... It was simple typo in /jail/mariadb. It should be /jails/mariadb, but since I copy-pasted this line from a guide... You know... I figured that out when took a look on root dir. Obviously the system tried to create this new dir and that is why the update of the jail failed.

As for the pager during update it was quite string up experience, while this update was my very first in FreeBSD world. I ended up with following in ~/.cshrc
Code:
setenv  PAGER   less
setenv  LESS    -iFM
This allows me to see that the output is from the PAGER, to see where I am on the output.
 
Back
Top