<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>33279</bug_id>
          
          <creation_ts>2017-03-24 17:04:26 +0300</creation_ts>
          <short_desc>apt-get update is not ensured before apt-get install</short_desc>
          <delta_ts>2017-03-24 17:06:30 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>puppet3</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="Ivan Zakharyaschev">imz</assigned_to>
          <cc>nbr</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>162737</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2017-03-24 17:04:26 +0300</bug_when>
    <thetext>puppet3-3.8.7-alt2

I&apos;ve noticed a situation like this (in a test run by nbr@).

&quot;apt-get install&quot; was attempted, although the package lists were outdated. &quot;apt-get update&quot; was needed beforehand. Perhaps, this problem has a general solution in the Puppet code: to ensure &quot;apt-get update&quot; is run often enough (well, Sisyphus is published only once a day, so not quite often).

Debug: Executing &apos;/usr/bin/apt-cache showpkg tzdata&apos;
Debug: /Stage[main]/Apipkg::Common/Package[tzdata]/ensure: tzdata 
&quot;2016j-alt1&quot; is installed, latest is &quot;2017a-alt1&quot;
Debug: Executing &apos;/usr/bin/apt-get -q -y install tzdata&apos;
Error: Could not update: Execution of &apos;/usr/bin/apt-get -q -y install 
tzdata&apos; returned 100: Reading Package Lists...
Building Dependency Tree...
The following packages will be upgraded
  tzdata
1 upgraded, 0 newly installed, 0 removed and 181 not upgraded.
Need to get 352kB of archives.
After unpacking 7613B of additional disk space will be used.
Err http://ftp.altlinux.org Sisyphus/noarch/classic tzdata 2017a-alt1
  404 Not Found
Failed to fetch http://ftp.altlinux.org/pub/distributions/ALTLinux/Sisyphus/noarch/RPMS.classic/tzdata-2017a-alt1.noarch.rpm 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Error: /Stage[main]/Apipkg::Common/Package[tzdata]/ensure: change from 
2016j-alt1 to 2017a-alt1 failed: Could not update: Execution of &apos;/usr/bin/apt-get -q -y install tzdata&apos; returned 100: Reading Package Lists...
Building Dependency Tree...
The following packages will be upgraded
  tzdata
1 upgraded, 0 newly installed, 0 removed and 181 not upgraded.
Need to get 352kB of archives.
After unpacking 7613B of additional disk space will be used.
Err http://ftp.altlinux.org Sisyphus/noarch/classic tzdata 2017a-alt1
  404 Not Found
Failed to fetch http://ftp.altlinux.org/pub/distributions/ALTLinux/Sisyphus/noarch/RPMS.classic/tzdata-2017a-alt1.noarch.rpm 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>162738</commentid>
    <comment_count>1</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2017-03-24 17:06:30 +0300</bug_when>
    <thetext>One of the first related discussions I found when doing a search:

http://stackoverflow.com/q/10845864/94687
Puppet trick - run apt-get update before installing other packages</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>