"local: can only be used in a function" after update from v.6.20.6 to v.6.21.1 #2523
Labels
Solution available 🥂
Definite solution has been done
Visual 🌹
Issues affecting only the beauty of menus and output, but not the functionality
Milestone
Creating a bug report/issue
Required Information
Additional Information (if applicable)
dietpi-bugreport
ID | f21e0678-caf7-4b93-9475-08e8a85f9234Steps to reproduce
Extra details
dietpi-update
[ OK ] DietPi-Update | Root access verified.
[ OK ] DietPi-Update | RootFS R/W access verified.
DietPi-Update
─────────────────────────────────────────────────────
Mode: Checking for DietPi updates
[ INFO ] DietPi-Update | Checking mirror: https://raw.githubusercontent.com/Fourdee/DietPi/master/dietpi/server_version-6
[ OK ] DietPi-Update | Using update server: https://raw.githubusercontent.com/Fourdee/DietPi/master/dietpi/server_version-6
[ OK ] DietPi-Update | Update available
[ INFO ] DietPi-Update | Current version : v6.20.6
[ INFO ] DietPi-Update | Latest version : v6.21.1
[ OK ] DietPi-Update | DietPi-Userdata validation: /mnt/dietpi_userdata
[ OK ] DietPi-Update | Free space check: path=/ | available=55679 MB | required=100 MB
[ SUB1 ] DietPi-Services > stop
[ OK ] DietPi-Services | stop : cron
[ OK ] DietPi-Services | stop : netdata
[ OK ] DietPi-Services | stop : lighttpd
[ OK ] DietPi-Update | wget https://raw.githubusercontent.com/Fourdee/DietPi/master/dietpi/pre-patch_file -O pre-patch_file
DietPi-Pre-patch
─────────────────────────────────────────────────────
Mode: Applying critical pre-patches
[ OK ] Successfully applied critical pre-patches
[ OK ] DietPi-Update | APT update, please wait...
Get:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease [15.0 kB]
Get:2 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages [11.7 MB]
Get:3 https://archive.raspberrypi.org/debian stretch InRelease [25.4 kB]
Get:4 https://archive.raspberrypi.org/debian stretch/main armhf Packages [213 kB]
Fetched 11.9 MB in 15s (772 kB/s)
Reading package lists...
[ OK ] DietPi-Update | G_AGUP
[ OK ] DietPi-Update | APT upgrade, please wait...
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages will be upgraded:
curl libcurl3 libcurl3-gnutls
3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 741 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://ftp.gwdg.de/pub/linux/debian/raspbian/raspbian stretch/main armhf curl armhf 7.52.1-5+deb9u9 [220 kB]
Get:2 http://ftp.gwdg.de/pub/linux/debian/raspbian/raspbian stretch/main armhf libcurl3 armhf 7.52.1-5+deb9u9 [262 kB]
Get:3 http://ftp.gwdg.de/pub/linux/debian/raspbian/raspbian stretch/main armhf libcurl3-gnutls armhf 7.52.1-5+deb9u9 [260 kB]
Fetched 741 kB in 0s (1,130 kB/s)
(Reading database ... 46888 files and directories currently installed.)
Preparing to unpack .../curl_7.52.1-5+deb9u9_armhf.deb ...
Unpacking curl (7.52.1-5+deb9u9) over (7.52.1-5+deb9u8) ...
Preparing to unpack .../libcurl3_7.52.1-5+deb9u9_armhf.deb ...
Unpacking libcurl3:armhf (7.52.1-5+deb9u9) over (7.52.1-5+deb9u8) ...
Preparing to unpack .../libcurl3-gnutls_7.52.1-5+deb9u9_armhf.deb ...
Unpacking libcurl3-gnutls:armhf (7.52.1-5+deb9u9) over (7.52.1-5+deb9u8) ...
Setting up libcurl3:armhf (7.52.1-5+deb9u9) ...
Setting up libcurl3-gnutls:armhf (7.52.1-5+deb9u9) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Setting up curl (7.52.1-5+deb9u9) ...
[ OK ] DietPi-Update | G_AGUG
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 119 0 119 0 0 249 0 --:--:-- --:--:-- --:--:-- 250
100 2494k 100 2494k 0 0 1143k 0 0:00:02 0:00:02 --:--:-- 2265k
[ OK ] DietPi-Update | Unpack update archive
[ OK ] DietPi-Update | Copy DietPi core files to RAMdisk
[ OK ] DietPi-Update | Copy DietPi rootfs files in place
[ OK ] DietPi-Update | Set execute permissions for DietPi scripts
[ OK ] DietPi-Set_software | Connection test: https://raw.githubusercontent.com/Fourdee/DietPi/master/dietpi.txt
[ OK ] DietPi-Set_software | Patching dietpi.txt
[ OK ] DietPi-Set_software | Downloading current dietpi.txt
[ OK ] DietPi-Set_software | dietpi.txt verification completed
[ OK ] verify_dietpi.txt | Completed
DietPi-Update
─────────────────────────────────────────────────────
Mode: Running incremental patching
[ INFO ] DietPi-Update | Current version : v6.20.6
[ INFO ] DietPi-Update | Latest version : v6.21.1
[ INFO ] DietPi-Update | Patching 6.20.6 to 6.21
[ OK ] DietPi-Patchfile | DietPi has applied a new G_DIETPI_INSTALL_STAGE system to the device.
[ OK ] DietPi-Patchfile | Re-running DietPi-Update, to apply this new system...
[ SUB2 ] DietPi-Update > Checking for DietPi updates
[ INFO ] DietPi-Update | Checking mirror: https://raw.githubusercontent.com/Fourdee/DietPi/master/dietpi/server_version-6
[ OK ] DietPi-Update | Using update server: https://raw.githubusercontent.com/Fourdee/DietPi/master/dietpi/server_version-6
[ OK ] DietPi-Update | Update available
[ INFO ] DietPi-Update | Current version : v6.20.6
[ INFO ] DietPi-Update | Latest version : v6.21.1
[ OK ] DietPi-Update | DietPi-Userdata validation: /mnt/dietpi_userdata
[ OK ] DietPi-Update | Free space check: path=/ | available=55670 MB | required=100 MB
[ OK ] DietPi-Update | Update is being applied, please wait...
[ SUB3 ] DietPi-Services > stop
[ OK ] DietPi-Services | stop : cron
[ OK ] DietPi-Services | stop : netdata
[ OK ] DietPi-Services | stop : lighttpd
[ OK ] DietPi-Update | wget https://raw.githubusercontent.com/Fourdee/DietPi/master/dietpi/pre-patch_file -O pre-patch_file
DietPi-Pre-patch
─────────────────────────────────────────────────────
Mode: Applying critical pre-patches
[ OK ] Successfully applied critical pre-patches
[ OK ] DietPi-Update | APT update, please wait...
Hit:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease
Hit:2 https://archive.raspberrypi.org/debian stretch InRelease
Reading package lists...
[ OK ] DietPi-Update | G_AGUP
[ OK ] DietPi-Update | APT upgrade, please wait...
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[ OK ] DietPi-Update | G_AGUG
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 119 0 119 0 0 312 0 --:--:-- --:--:-- --:--:-- 312
100 2494k 100 2494k 0 0 1236k 0 0:00:02 0:00:02 --:--:-- 3297k
[ OK ] DietPi-Update | Unpack update archive
[ OK ] DietPi-Update | Copy DietPi core files to RAMdisk
[ OK ] DietPi-Update | Copy DietPi rootfs files in place
[ OK ] DietPi-Update | Set execute permissions for DietPi scripts
[ OK ] DietPi-Set_software | Connection test: https://raw.githubusercontent.com/Fourdee/DietPi/master/dietpi.txt
[ OK ] DietPi-Set_software | Patching dietpi.txt
[ OK ] DietPi-Set_software | Downloading current dietpi.txt
[ OK ] DietPi-Set_software | dietpi.txt verification completed
[ OK ] verify_dietpi.txt | Completed
[ SUB2 ] DietPi-Update > Running incremental patching
[ INFO ] DietPi-Update | Current version : v6.20.6
[ INFO ] DietPi-Update | Latest version : v6.21.1
[ INFO ] DietPi-Update | Patching 6.20.6 to 6.21
[ OK ] DietPi-Update | Patching to v6.21.1 completed
[ OK ] DietPi-Survey | Connection test: ssh.dietpi.com
[ SUB2 ] DietPi-Update > Completed
[ INFO ] DietPi-Update | Current version : v6.21.1
[ INFO ] DietPi-Update | Latest version : v6.21.1
/DietPi/dietpi/dietpi-update: line 528: local: can only be used in a function
[ OK ] DietPi-Update | systemctl restart dietpi-ramdisk
The text was updated successfully, but these errors were encountered: