<?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 Library installation fails with mirror sync issue in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/library-installation-fails-with-mirror-sync-issue/m-p/12429#M7234</link>
    <description>&lt;P&gt;While trying to install ffmpeg package using an init script on Databricks cluster, it fails with the below error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Init script:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;#! /bin/bash
set -e
sudo apt-get update
sudo apt-get -y install ffmpeg&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error message:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;E: Failed to fetch &lt;A href="http://security.ubuntu.com/ubuntu/pool/main/libc/libcaca/libcaca0_0.99.beta19-2.1ubuntu1.20.04.1_amd64.deb" target="test_blank"&gt;http://security.ubuntu.com/ubuntu/pool/main/libc/libcaca/libcaca0_0.99.beta19-2.1ubuntu1.20.04.1_amd64.deb&lt;/A&gt;  404  Not Found [IP: 91.189.88.152 80]
&amp;nbsp;
E: Failed to fetch &lt;A href="http://archive.ubuntu.com/ubuntu/pool/universe/m/mesa/mesa-va-drivers_21.0.3-0ubuntu0.3~20.04.2_amd64.deb" target="test_blank"&gt;http://archive.ubuntu.com/ubuntu/pool/universe/m/mesa/mesa-va-drivers_21.0.3-0ubuntu0.3~20.04.2_amd64.deb&lt;/A&gt;  404  Not Found [IP: 91.189.88.152 80]
&amp;nbsp;
E: Failed to fetch &lt;A href="http://archive.ubuntu.com/ubuntu/pool/main/m/mesa/mesa-vdpau-drivers_21.0.3-0ubuntu0.3~20.04.2_amd64.deb" target="test_blank"&gt;http://archive.ubuntu.com/ubuntu/pool/main/m/mesa/mesa-vdpau-drivers_21.0.3-0ubuntu0.3~20.04.2_amd64.deb&lt;/A&gt;  404  Not Found [IP: 91.189.88.152 80]
&amp;nbsp;
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Oct 2021 16:03:24 GMT</pubDate>
    <dc:creator>Prabakar</dc:creator>
    <dc:date>2021-10-25T16:03:24Z</dc:date>
    <item>
      <title>Library installation fails with mirror sync issue</title>
      <link>https://community.databricks.com/t5/data-engineering/library-installation-fails-with-mirror-sync-issue/m-p/12429#M7234</link>
      <description>&lt;P&gt;While trying to install ffmpeg package using an init script on Databricks cluster, it fails with the below error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Init script:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;#! /bin/bash
set -e
sudo apt-get update
sudo apt-get -y install ffmpeg&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error message:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;E: Failed to fetch &lt;A href="http://security.ubuntu.com/ubuntu/pool/main/libc/libcaca/libcaca0_0.99.beta19-2.1ubuntu1.20.04.1_amd64.deb" target="test_blank"&gt;http://security.ubuntu.com/ubuntu/pool/main/libc/libcaca/libcaca0_0.99.beta19-2.1ubuntu1.20.04.1_amd64.deb&lt;/A&gt;  404  Not Found [IP: 91.189.88.152 80]
&amp;nbsp;
E: Failed to fetch &lt;A href="http://archive.ubuntu.com/ubuntu/pool/universe/m/mesa/mesa-va-drivers_21.0.3-0ubuntu0.3~20.04.2_amd64.deb" target="test_blank"&gt;http://archive.ubuntu.com/ubuntu/pool/universe/m/mesa/mesa-va-drivers_21.0.3-0ubuntu0.3~20.04.2_amd64.deb&lt;/A&gt;  404  Not Found [IP: 91.189.88.152 80]
&amp;nbsp;
E: Failed to fetch &lt;A href="http://archive.ubuntu.com/ubuntu/pool/main/m/mesa/mesa-vdpau-drivers_21.0.3-0ubuntu0.3~20.04.2_amd64.deb" target="test_blank"&gt;http://archive.ubuntu.com/ubuntu/pool/main/m/mesa/mesa-vdpau-drivers_21.0.3-0ubuntu0.3~20.04.2_amd64.deb&lt;/A&gt;  404  Not Found [IP: 91.189.88.152 80]
&amp;nbsp;
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 16:03:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/library-installation-fails-with-mirror-sync-issue/m-p/12429#M7234</guid>
      <dc:creator>Prabakar</dc:creator>
      <dc:date>2021-10-25T16:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Library installation fails with mirror sync issue</title>
      <link>https://community.databricks.com/t5/data-engineering/library-installation-fails-with-mirror-sync-issue/m-p/12430#M7235</link>
      <description>&lt;P&gt;&lt;B&gt;Cause&lt;/B&gt;: The VMs are pointing to the cached old mirror which is not up-to-date. Hence there is a problem with downloading the package and it's failing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Workaround&lt;/B&gt;: Use the below init script to install the package "ffmpeg". To revert to the original list, just overwrite the&amp;nbsp;.bak&amp;nbsp;file.&lt;/P&gt;&lt;P&gt;This init script works for all possible library installation failures that are caused by the mirror sync issues.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;dbutils.fs.put("/databricks/ffmpeg_install.sh", """ 
&amp;nbsp;
#! /bin/bash
# do a backup of the source 
cp /etc/apt/sources.list{,.bak}
&amp;nbsp;
# remove the cached mirrors
r="deb &lt;A href="http://archive.ubuntu.com/ubuntu/" target="test_blank"&gt;http://archive.ubuntu.com/ubuntu/&lt;/A&gt; focal-updates main restricted"
add-apt-repository --remove "${r}"
r="deb &lt;A href="http://archive.ubuntu.com/ubuntu/" target="test_blank"&gt;http://archive.ubuntu.com/ubuntu/&lt;/A&gt; focal-updates universe"
add-apt-repository --remove "${r}"
r="deb &lt;A href="http://security.ubuntu.com/ubuntu/" target="test_blank"&gt;http://security.ubuntu.com/ubuntu/&lt;/A&gt; focal-security main restricted"
add-apt-repository --remove "${r}"
&amp;nbsp;
# update apt &amp;amp; install the package
apt-get update
apt-get install -y ffmpeg
&amp;nbsp;
""", True)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Or a simple cleaner method to do this.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;rm -f  /var/cache/apt /var/lib/apt/lists
apt-get update 
apt-get install -y ffmpeg&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 16:08:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/library-installation-fails-with-mirror-sync-issue/m-p/12430#M7235</guid>
      <dc:creator>Prabakar</dc:creator>
      <dc:date>2021-10-25T16:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Library installation fails with mirror sync issue</title>
      <link>https://community.databricks.com/t5/data-engineering/library-installation-fails-with-mirror-sync-issue/m-p/12431#M7236</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="remove command"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/2369i7A9AA615ABC5A517/image-size/large?v=v2&amp;amp;px=999" role="button" title="remove command" alt="remove command" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="init script"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/2383i00BC5DB7CCC7CA13/image-size/large?v=v2&amp;amp;px=999" role="button" title="init script" alt="init script" /&gt;&lt;/span&gt;I have the same issue. Unable to install ffmpeg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried running the given init script, it outputs "504 bytes wrote", and ffmpeg doesn't gets installed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the "rm" command, it says "Is a directory"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unable to install ffmpeg at this point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 10:28:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/library-installation-fails-with-mirror-sync-issue/m-p/12431#M7236</guid>
      <dc:creator>Saman</dc:creator>
      <dc:date>2022-07-05T10:28:59Z</dc:date>
    </item>
  </channel>
</rss>

