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

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

    <bug>
          <bug_id>14699</bug_id>
          
          <creation_ts>2008-02-29 08:09:44 +0300</creation_ts>
          <short_desc>error: read failed: Is a directory (21)</short_desc>
          <delta_ts>2008-06-05 12:35:54 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>apt</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>15909</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="ildar">ildar</reporter>
          <assigned_to name="placeholder@altlinux.org">placeholder</assigned_to>
          <cc>boyarsh</cc>
    
    <cc>evg</cc>
    
    <cc>glebfm</cc>
    
    <cc>imz</cc>
    
    <cc>ldv</cc>
    
    <cc>placeholder</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>64814</commentid>
    <comment_count>0</comment_count>
    <who name="ildar">ildar</who>
    <bug_when>2008-02-29 08:09:44 +0300</bug_when>
    <thetext>Проблема в том, что зачем-то apt читает в текущей папке &quot;файл&quot; rpm. В /etc, в
частности, rpm - это папка, и из-за этого apt сбоит. Вот кусок strace-а:

5223  stat64(&quot;rpm&quot;, {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
5223  stat64(&quot;rpm&quot;, {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
5223  open(&quot;rpm&quot;, O_RDONLY)             = 9
5223  fcntl64(9, F_SETFD, FD_CLOEXEC)   = 0
5223  gettimeofday({1204259175, 388979}, NULL) = 0
5223  fstat64(9, {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
5223  write(1, &quot;\rReading Package Lists... 0%\r&quot;, 29) = 29
5223  stat64(&quot;rpm&quot;, {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
5223  stat64(&quot;rpm&quot;, {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
5223  lseek(9, 0, SEEK_SET)             = 0
5223  fstat64(9, {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
5223  select(10, [9], NULL, NULL, {1, 0}) = 1 (in [9], left {1, 0})
5223  gettimeofday({1204259175, 390382}, NULL) = 0
5223  read(9, 0xbfe677b8, 96)           = -1 EISDIR (Is a directory)
5223  gettimeofday({1204259175, 390517}, NULL) = 0
5223  write(2, &quot;error: &quot;, 7)            = 7
5223  write(2, &quot;read failed: Is a directory (21)&quot;..., 33) = 33

Steps to Reproduce:
1. cd /etc
2. apt-get install

Actual Results:  
error: read failed: Is a directory (21)
Reading Package Lists... Error!
E: Failed reading file rpm
E: Problem opening
/var/lib/apt/lists/_mnt_nfs_media_ALTLinux_repo_._base_pkglist.local
E: The package lists or status file could not be parsed or opened.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71361</commentid>
    <comment_count>1</comment_count>
    <who name="Sir Raorn">raorn</who>
    <bug_when>2008-06-05 12:35:54 +0400</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of 15909 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>