<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Updating to current hotfix version 1.2.87 seems to fail with Traceback on /usr/lib/cnf-update-db in Expedition Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/expedition-discussions/updating-to-current-hotfix-version-1-2-87-seems-to-fail-with/m-p/585231#M5034</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/229297"&gt;@stevelove&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you try to reinstall the package phyton3-apt. Execute the below commands:&lt;/P&gt;
&lt;PRE class="prettyprint prettyprinted"&gt;&lt;CODE&gt;&lt;SPAN class="pln"&gt;sudo apt remove python3&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;apt&lt;BR /&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE class="prettyprint prettyprinted"&gt;&lt;CODE&gt;&lt;SPAN class="pln"&gt;sudo apt install python3&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;apt&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Let me know if that works.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;</description>
    <pubDate>Mon, 29 Apr 2024 16:53:18 GMT</pubDate>
    <dc:creator>dpuigdomenec</dc:creator>
    <dc:date>2024-04-29T16:53:18Z</dc:date>
    <item>
      <title>Updating to current hotfix version 1.2.87 seems to fail with Traceback on /usr/lib/cnf-update-db</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-discussions/updating-to-current-hotfix-version-1-2-87-seems-to-fail-with/m-p/585230#M5033</link>
      <description>&lt;P&gt;Attempting to upgrade one of our Expedition instances to 1.2.87 and receiving this error. I'm not sure if it is safe to ignore it or not. This is after following another thread on 4-24 regarding issues with rabbitmq install and getting past that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ign:15 &lt;A href="https://conversionupdates.paloaltonetworks.com" target="_blank"&gt;https://conversionupdates.paloaltonetworks.com&lt;/A&gt; expedition-updates/ Translation-en &lt;BR /&gt;Ign:16 &lt;A href="https://conversionupdates.paloaltonetworks.com" target="_blank"&gt;https://conversionupdates.paloaltonetworks.com&lt;/A&gt; expedition-updates/ Translation-en_US &lt;BR /&gt;Traceback (most recent call last): &lt;BR /&gt;File "/usr/lib/cnf-update-db", line 8, in &amp;lt;module&amp;gt;&lt;BR /&gt;from CommandNotFound.db.creator import DbCreator&lt;BR /&gt;File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 12, in &amp;lt;module&amp;gt;&lt;BR /&gt;import apt_pkg&lt;BR /&gt;ModuleNotFoundError: No module named 'apt_pkg'&lt;BR /&gt;Reading package lists... Done&lt;BR /&gt;E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db &amp;gt; /dev/null; fi'&lt;BR /&gt;E: Sub-process returned an error code&lt;BR /&gt;root@expedition1:/home/expedition#&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 16:42:30 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-discussions/updating-to-current-hotfix-version-1-2-87-seems-to-fail-with/m-p/585230#M5033</guid>
      <dc:creator>stevelove</dc:creator>
      <dc:date>2024-04-29T16:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Updating to current hotfix version 1.2.87 seems to fail with Traceback on /usr/lib/cnf-update-db</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-discussions/updating-to-current-hotfix-version-1-2-87-seems-to-fail-with/m-p/585231#M5034</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/229297"&gt;@stevelove&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you try to reinstall the package phyton3-apt. Execute the below commands:&lt;/P&gt;
&lt;PRE class="prettyprint prettyprinted"&gt;&lt;CODE&gt;&lt;SPAN class="pln"&gt;sudo apt remove python3&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;apt&lt;BR /&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE class="prettyprint prettyprinted"&gt;&lt;CODE&gt;&lt;SPAN class="pln"&gt;sudo apt install python3&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;apt&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Let me know if that works.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 16:53:18 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-discussions/updating-to-current-hotfix-version-1-2-87-seems-to-fail-with/m-p/585231#M5034</guid>
      <dc:creator>dpuigdomenec</dc:creator>
      <dc:date>2024-04-29T16:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Updating to current hotfix version 1.2.87 seems to fail with Traceback on /usr/lib/cnf-update-db</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-discussions/updating-to-current-hotfix-version-1-2-87-seems-to-fail-with/m-p/585232#M5035</link>
      <description>&lt;P&gt;Thanks. That did work to get me past the update part. Running the install though seems to give me similar errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;expedition@expedition1:~$ sudo apt-get install expedition-beta&lt;BR /&gt;Reading package lists... Done&lt;BR /&gt;Building dependency tree &lt;BR /&gt;Reading state information... Done&lt;BR /&gt;The following packages were automatically installed and are no longer required:&lt;BR /&gt;accountsservice apport-symptoms dconf-gsettings-backend dconf-service distro-info gir1.2-packagekitglib-1.0 glib-networking glib-networking-common glib-networking-services gsettings-desktop-schemas&lt;BR /&gt;libaccountsservice0 libappstream4 libdconf1 libglib2.0-bin libgstreamer1.0-0 libpackagekit-glib2-18 libproxy1v5 libsoup2.4-1 libstemmer0d packagekit packagekit-tools python3-automat python3-click&lt;BR /&gt;python3-colorama python3-constantly python3-debian python3-distro-info python3-entrypoints python3-gdbm python3-hamcrest python3-httplib2 python3-hyperlink python3-incremental python3-keyring&lt;BR /&gt;python3-launchpadlib python3-lazr.restfulclient python3-lazr.uri python3-problem-report python3-pyasn1 python3-pyasn1-modules python3-requests-unixsocket python3-secretstorage python3-service-identity&lt;BR /&gt;python3-simplejson python3-systemd python3-twisted python3-twisted-bin python3-wadllib python3-zope.interface&lt;BR /&gt;Use 'sudo apt autoremove' to remove them.&lt;BR /&gt;The following packages will be upgraded:&lt;BR /&gt;expedition-beta&lt;BR /&gt;1 upgraded, 0 newly installed, 0 to remove and 104 not upgraded.&lt;BR /&gt;Need to get 45.0 MB of archives.&lt;BR /&gt;After this operation, 0 B of additional disk space will be used.&lt;BR /&gt;Get:1 &lt;A href="https://conversionupdates.paloaltonetworks.com" target="_blank"&gt;https://conversionupdates.paloaltonetworks.com&lt;/A&gt; expedition-updates/ expedition-beta 1.2.87 [45.0 MB]&lt;BR /&gt;Fetched 45.0 MB in 41s (1,088 kB/s) &lt;BR /&gt;(Reading database ... 92144 files and directories currently installed.)&lt;BR /&gt;Preparing to unpack .../expedition-beta_1.2.87_amd64.deb ...&lt;BR /&gt;Unpacking expedition-beta (1.2.87) over (1.2.85) ...&lt;BR /&gt;Setting up expedition-beta (1.2.87) ...&lt;BR /&gt;DEPRECATION: distro-info 0.23ubuntu1 has a non-standard version number. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of distro-info or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at &lt;A href="https://github.com/pypa/pip/issues/12063" target="_blank"&gt;https://github.com/pypa/pip/issues/12063&lt;/A&gt;&lt;BR /&gt;DEPRECATION: python-debian 0.1.36ubuntu1 has a non-standard version number. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of python-debian or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at &lt;A href="https://github.com/pypa/pip/issues/12063" target="_blank"&gt;https://github.com/pypa/pip/issues/12063&lt;/A&gt;&lt;BR /&gt;WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: &lt;A href="https://pip.pypa.io/warnings/venv" target="_blank"&gt;https://pip.pypa.io/warnings/venv&lt;/A&gt;&lt;BR /&gt;DEPRECATION: distro-info 0.23ubuntu1 has a non-standard version number. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of distro-info or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at &lt;A href="https://github.com/pypa/pip/issues/12063" target="_blank"&gt;https://github.com/pypa/pip/issues/12063&lt;/A&gt;&lt;BR /&gt;DEPRECATION: python-debian 0.1.36ubuntu1 has a non-standard version number. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of python-debian or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at &lt;A href="https://github.com/pypa/pip/issues/12063" target="_blank"&gt;https://github.com/pypa/pip/issues/12063&lt;/A&gt;&lt;BR /&gt;WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: &lt;A href="https://pip.pypa.io/warnings/venv" target="_blank"&gt;https://pip.pypa.io/warnings/venv&lt;/A&gt;&lt;BR /&gt;DEPRECATION: distro-info 0.23ubuntu1 has a non-standard version number. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of distro-info or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at &lt;A href="https://github.com/pypa/pip/issues/12063" target="_blank"&gt;https://github.com/pypa/pip/issues/12063&lt;/A&gt;&lt;BR /&gt;DEPRECATION: python-debian 0.1.36ubuntu1 has a non-standard version number. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of python-debian or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at &lt;A href="https://github.com/pypa/pip/issues/12063" target="_blank"&gt;https://github.com/pypa/pip/issues/12063&lt;/A&gt;&lt;BR /&gt;WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: &lt;A href="https://pip.pypa.io/warnings/venv" target="_blank"&gt;https://pip.pypa.io/warnings/venv&lt;/A&gt;&lt;BR /&gt;rm: cannot remove '/opt/Spark/spar/jars/log4j-1.2.17.jar': No such file or directory&lt;BR /&gt;Checking for old projects and Devices what are not Encrypted&lt;BR /&gt;DEPRECATION: distro-info 0.23ubuntu1 has a non-standard version number. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of distro-info or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at &lt;A href="https://github.com/pypa/pip/issues/12063" target="_blank"&gt;https://github.com/pypa/pip/issues/12063&lt;/A&gt;&lt;BR /&gt;DEPRECATION: python-debian 0.1.36ubuntu1 has a non-standard version number. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of python-debian or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at &lt;A href="https://github.com/pypa/pip/issues/12063" target="_blank"&gt;https://github.com/pypa/pip/issues/12063&lt;/A&gt;&lt;BR /&gt;WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: &lt;A href="https://pip.pypa.io/warnings/venv" target="_blank"&gt;https://pip.pypa.io/warnings/venv&lt;/A&gt;&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/usr/bin/firewall-cmd", line 24, in &amp;lt;module&amp;gt;&lt;BR /&gt;from gi.repository import GObject&lt;BR /&gt;File "/usr/lib/python3/dist-packages/gi/__init__.py", line 42, in &amp;lt;module&amp;gt;&lt;BR /&gt;from . import _gi&lt;BR /&gt;ImportError: cannot import name '_gi' from 'gi' (/usr/lib/python3/dist-packages/gi/__init__.py)&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/usr/bin/firewall-cmd", line 24, in &amp;lt;module&amp;gt;&lt;BR /&gt;from gi.repository import GObject&lt;BR /&gt;File "/usr/lib/python3/dist-packages/gi/__init__.py", line 42, in &amp;lt;module&amp;gt;&lt;BR /&gt;from . import _gi&lt;BR /&gt;ImportError: cannot import name '_gi' from 'gi' (/usr/lib/python3/dist-packages/gi/__init__.py)&lt;BR /&gt;Impossing PHP CLI 7.0&lt;BR /&gt;Make /tmp writable by Apache2&lt;BR /&gt;its recommended to run after install: apt-get -y -f install&lt;BR /&gt;its recommended to run after install: sudo apt-get autoremove&lt;BR /&gt;expedition@expedition1:~$&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 17:11:27 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-discussions/updating-to-current-hotfix-version-1-2-87-seems-to-fail-with/m-p/585232#M5035</guid>
      <dc:creator>stevelove</dc:creator>
      <dc:date>2024-04-29T17:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Updating to current hotfix version 1.2.87 seems to fail with Traceback on /usr/lib/cnf-update-db</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-discussions/updating-to-current-hotfix-version-1-2-87-seems-to-fail-with/m-p/585294#M5036</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/229297"&gt;@stevelove&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Although the reported issue the update to expedition&amp;nbsp;&lt;SPAN&gt;1.2.87 should be good, as well as all Expedition features.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I guess the issue on your environment is due to the phyton3 set-up versions. The OS is using phyton3.7 instead of phyton3.8.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can check that executing: phyton3 --version&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To recover the python3.8 as default for the OS you have a couple of paths:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1) I recommend re-executing the script so the BPA will keep using the python 3.7 while the OS the python3.8:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;/var/www/html/OS/BPA/updateBPA306.sh&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;2) Or in case your VM has not internet connections execute the below commands:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;# Recover python3.8 as default python version&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;sudo &lt;/SPAN&gt;rm /usr/bin/python3&lt;BR /&gt;&lt;SPAN&gt;sudo &lt;/SPAN&gt;ln -s /usr/bin/python3.8 /usr/bin/python3&lt;BR /&gt;&lt;SPAN&gt;sudo &lt;/SPAN&gt;python3.8 /var/www/html/OS/BPA/get-pip.py&lt;BR /&gt;&lt;SPAN&gt;sudo &lt;/SPAN&gt;rm /usr/local/bin/pip3&lt;BR /&gt;&lt;SPAN&gt;sudo &lt;/SPAN&gt;ln -s /usr/local/bin/pip /usr/local/bin/pip3&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;Note: I recommend to take a VM snapshot prior to the execution of above script or commands.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Let me know if that works on your environment,&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 07:50:04 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-discussions/updating-to-current-hotfix-version-1-2-87-seems-to-fail-with/m-p/585294#M5036</guid>
      <dc:creator>dpuigdomenec</dc:creator>
      <dc:date>2024-04-30T07:50:04Z</dc:date>
    </item>
  </channel>
</rss>

