Update Failed to 24.7.12

Started by cardins2u, February 06, 2025, 02:39:26 AM

Previous topic - Next topic
I'm having problem updating. Can someone help?


**GOT REQUEST TO UPDATE***
Currently running OPNsense 24.7.11_2 (amd64) at Wed Feb  5 17:35:56 PST 2025
Updating OPNsense repository catalogue...
OPNsense repository is up to date.
All repositories are up to date.
Updating OPNsense repository catalogue...
OPNsense repository is up to date.
All repositories are up to date.
Checking for upgrades (45 candidates): .......... done
Processing candidates (45 candidates): .......... done
Checking integrity... done (0 conflicting)
The following 46 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
   py311-typing-extensions: 4.12.2

Installed packages to be UPGRADED:
   boost-libs: 1.86.0 -> 1.86.0_1
   crowdsec: 1.6.3_3 -> 1.6.4
   curl: 8.11.0_1 -> 8.11.1_1
   e2fsprogs-libuuid: 1.47.1 -> 1.47.2
   gettext-runtime: 0.22.5 -> 0.23.1
   libltdl: 2.4.7 -> 2.5.4
   libpfctl: 0.14 -> 0.15
   lighttpd: 1.4.76 -> 1.4.76_1
   log4cplus: 2.1.1 -> 2.1.2
   nettle: 3.10_1 -> 3.10.1
   ntp: 4.2.8p18 -> 4.2.8p18_1
   oniguruma: 6.9.9 -> 6.9.10
   openvpn: 2.6.12 -> 2.6.13
   opnsense: 24.7.11_2 -> 24.7.12_4
   opnsense-update: 24.7.10_1 -> 24.7.12
   os-mdns-repeater: 1.1_1 -> 1.2
   php82: 8.2.26 -> 8.2.27
   php82-ctype: 8.2.26 -> 8.2.27
   php82-curl: 8.2.26 -> 8.2.27
   php82-dom: 8.2.26 -> 8.2.27
   php82-filter: 8.2.26 -> 8.2.27
   php82-gettext: 8.2.26 -> 8.2.27
   php82-ldap: 8.2.26 -> 8.2.27
   php82-mbstring: 8.2.26 -> 8.2.27
   php82-pcntl: 8.2.26 -> 8.2.27
   php82-pdo: 8.2.26 -> 8.2.27
   php82-session: 8.2.26 -> 8.2.27
   php82-simplexml: 8.2.26 -> 8.2.27
   php82-sockets: 8.2.26 -> 8.2.27
   php82-sqlite3: 8.2.26 -> 8.2.27
   php82-xml: 8.2.26 -> 8.2.27
   php82-zlib: 8.2.26 -> 8.2.27
   py311-anyio: 4.6.2 -> 4.7.0
   py311-attrs: 24.2.0 -> 24.3.0
   py311-certifi: 2024.8.30 -> 2024.12.14
   py311-charset-normalizer: 3.4.0 -> 3.4.1_1
   py311-httpx: 0.27.2 -> 0.28.1
   py311-numexpr: 2.10.1 -> 2.10.2
   py311-six: 1.16.0_1 -> 1.17.0
   py311-sqlite3: 3.11.10_7 -> 3.11.11_7
   py311-trio: 0.27.0 -> 0.28.0
   python311: 3.11.10 -> 3.11.11
   qemu-guest-agent: 9.1.1 -> 9.2.0
   sudo: 1.9.16p2 -> 1.9.16p2_1
   zip: 3.0_3 -> 3.0_4

Number of packages to be installed: 1
Number of packages to be upgraded: 45

The operation will free 3 MiB.
[1/46] Upgrading python311 from 3.11.10 to 3.11.11...
[1/46] Extracting python311-3.11.11: .......... done
python311-3.11.10: missing file /usr/local/lib/python3.11/lib2to3/Grammar3.11.10.final.0.pickle
python311-3.11.10: missing file /usr/local/lib/python3.11/lib2to3/PatternGrammar3.11.10.final.0.pickle
python311-3.11.10: missing file /usr/local/share/licenses/python311-3.11.10/LICENSE
python311-3.11.10: missing file /usr/local/share/licenses/python311-3.11.10/PSFL
python311-3.11.10: missing file /usr/local/share/licenses/python311-3.11.10/catalog.mk
pkg-static: Fail to rename /usr/local/lib/python3.11/__pycache__/.pkgtemp.fractions.cpython-311.opt-2.pyc.CaHP5lqDRcVk -> /usr/local/lib/python3.11/__pycache__/fractions.cpython-311.opt-2.pyc:Invalid argument
Starting web GUI...done.
***DONE***

I restored froma backup and ran the update again:

this is what I get:


***GOT REQUEST TO UPDATE***
Currently running OPNsense 24.7.11_2 (amd64) at Wed Feb  5 18:39:34 PST 2025
Updating OPNsense repository catalogue...
Waiting for another process to update repository OPNsense
All repositories are up to date.
Updating OPNsense repository catalogue...
OPNsense repository is up to date.
All repositories are up to date.
Checking for upgrades (45 candidates): .......... done
Processing candidates (45 candidates): .......... done
The following 46 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
   py311-typing-extensions: 4.12.2

Installed packages to be UPGRADED:
   boost-libs: 1.86.0 -> 1.86.0_1
   crowdsec: 1.6.3_3 -> 1.6.4
   curl: 8.11.0_1 -> 8.11.1_1
   e2fsprogs-libuuid: 1.47.1 -> 1.47.2
   gettext-runtime: 0.22.5 -> 0.23.1
   libltdl: 2.4.7 -> 2.5.4
   libpfctl: 0.14 -> 0.15
   lighttpd: 1.4.76 -> 1.4.76_1
   log4cplus: 2.1.1 -> 2.1.2
   nettle: 3.10_1 -> 3.10.1
   ntp: 4.2.8p18 -> 4.2.8p18_1
   oniguruma: 6.9.9 -> 6.9.10
   openvpn: 2.6.12 -> 2.6.13
   opnsense: 24.7.11_2 -> 24.7.12_4
   opnsense-update: 24.7.10_1 -> 24.7.12
   os-mdns-repeater: 1.1_1 -> 1.2
   php82: 8.2.26 -> 8.2.27
   php82-ctype: 8.2.26 -> 8.2.27
   php82-curl: 8.2.26 -> 8.2.27
   php82-dom: 8.2.26 -> 8.2.27
   php82-filter: 8.2.26 -> 8.2.27
   php82-gettext: 8.2.26 -> 8.2.27
   php82-ldap: 8.2.26 -> 8.2.27
   php82-mbstring: 8.2.26 -> 8.2.27
   php82-pcntl: 8.2.26 -> 8.2.27
   php82-pdo: 8.2.26 -> 8.2.27
   php82-session: 8.2.26 -> 8.2.27
   php82-simplexml: 8.2.26 -> 8.2.27
   php82-sockets: 8.2.26 -> 8.2.27
   php82-sqlite3: 8.2.26 -> 8.2.27
   php82-xml: 8.2.26 -> 8.2.27
   php82-zlib: 8.2.26 -> 8.2.27
   py311-anyio: 4.6.2 -> 4.7.0
   py311-attrs: 24.2.0 -> 24.3.0
   py311-certifi: 2024.8.30 -> 2024.12.14
   py311-charset-normalizer: 3.4.0 -> 3.4.1_1
   py311-httpx: 0.27.2 -> 0.28.1
   py311-numexpr: 2.10.1 -> 2.10.2
   py311-six: 1.16.0_1 -> 1.17.0
   py311-sqlite3: 3.11.10_7 -> 3.11.11_7
   py311-trio: 0.27.0 -> 0.28.0
   python311: 3.11.10 -> 3.11.11
   qemu-guest-agent: 9.1.1 -> 9.2.0
   sudo: 1.9.16p2 -> 1.9.16p2_1
   zip: 3.0_3 -> 3.0_4

Number of packages to be installed: 1
Number of packages to be upgraded: 45

The operation will free 3 MiB.
97 MiB to be downloaded.
[1/46] Fetching py311-sqlite3-3.11.11_7.pkg: ..... done
[2/46] Fetching py311-anyio-4.7.0.pkg: .......... done
[3/46] Fetching php82-session-8.2.27.pkg: ..... done
[4/46] Fetching lighttpd-1.4.76_1.pkg: .......... done
[5/46] Fetching opnsense-update-24.7.12.pkg: ..... done
[6/46] Fetching boost-libs-1.86.0_1.pkg: .......... done
[7/46] Fetching nettle-3.10.1.pkg: .......... done
[8/46] Fetching py311-six-1.17.0.pkg: .... done
[9/46] Fetching php82-zlib-8.2.27.pkg: ... done
[10/46] Fetching php82-dom-8.2.27.pkg: ......... done
[11/46] Fetching py311-charset-normalizer-3.4.1_1.pkg: .......... done
[12/46] Fetching php82-simplexml-8.2.27.pkg: ... done
[13/46] Fetching e2fsprogs-libuuid-1.47.2.pkg: ..... done
[14/46] Fetching crowdsec-1.6.4.pkg: .......... done
[15/46] Fetching openvpn-2.6.13.pkg: .......... done
[16/46] Fetching php82-pdo-8.2.27.pkg: ....... done
[17/46] Fetching php82-curl-8.2.27.pkg: ...... done
[18/46] Fetching py311-httpx-0.28.1.pkg: .......... done
[19/46] Fetching php82-mbstring-8.2.27.pkg: .......... done
[20/46] Fetching ntp-4.2.8p18_1.pkg: .......... done
[21/46] Fetching py311-attrs-24.3.0.pkg: .......... done
[22/46] Fetching php82-ldap-8.2.27.pkg: ..... done
[23/46] Fetching python311-3.11.11.pkg: .......... done
[24/46] Fetching py311-trio-0.28.0.pkg: .......... done
[25/46] Fetching py311-certifi-2024.12.14.pkg: .......... done
[26/46] Fetching php82-sockets-8.2.27.pkg: ...... done
[27/46] Fetching php82-8.2.27.pkg: .......... done
[28/46] Fetching php82-sqlite3-8.2.27.pkg: .... done
[29/46] Fetching log4cplus-2.1.2.pkg: .......... done
[30/46] Fetching php82-pcntl-8.2.27.pkg: ... done
[31/46] Fetching php82-xml-8.2.27.pkg: ... done
[32/46] Fetching curl-8.11.1_1.pkg: .......... done
[33/46] Fetching gettext-runtime-0.23.1.pkg: .......... done
[34/46] Fetching py311-numexpr-2.10.2.pkg: .......... done
[35/46] Fetching libpfctl-0.15.pkg: .. done
[36/46] Fetching libltdl-2.5.4.pkg: ..... done
[37/46] Fetching zip-3.0_4.pkg: .......... done
[38/46] Fetching php82-gettext-8.2.27.pkg: . done
[39/46] Fetching qemu-guest-agent-9.2.0.pkg: .......... done
[40/46] Fetching opnsense-24.7.12_4.pkg: .......... done
[41/46] Fetching oniguruma-6.9.10.pkg: .......... done
[42/46] Fetching py311-typing-extensions-4.12.2.pkg: ......... done
[43/46] Fetching os-mdns-repeater-1.2.pkg: . done
[44/46] Fetching sudo-1.9.16p2_1.pkg: .......... done
[45/46] Fetching php82-ctype-8.2.27.pkg: . done
[46/46] Fetching php82-filter-8.2.27.pkg: ... done
Checking integrity... done (0 conflicting)
[1/46] Upgrading python311 from 3.11.10 to 3.11.11...
[1/46] Extracting python311-3.11.11: .......... done
pkg-static: Fail to rename /usr/local/lib/python3.11/__pycache__/.pkgtemp.fractions.cpython-311.opt-2.pyc.V2WnqL3zBMYs -> /usr/local/lib/python3.11/__pycache__/fractions.cpython-311.opt-2.pyc:Invalid argument
Starting web GUI...done.
***DONE***

If you run this to remove temporary package manager files and try again does it help?

# opnsense-update -Fs


Cheers,
Franco


Very nice, thanks for confirming this longstanding issue can actually be fixed this way :)

I still have a ticket to add such a cleanup to the GUI to make it more accessible:

https://github.com/opnsense/core/issues/8154


Cheers,
Franco