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

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

    <bug>
          <bug_id>40498</bug_id>
          
          <creation_ts>2021-07-15 13:57:50 +0300</creation_ts>
          <short_desc>tcsh: scriptlet failed, exit status 1</short_desc>
          <delta_ts>2021-07-15 14:00:06 +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>tcsh</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>40496</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan A. Melnikov">iv</reporter>
          <assigned_to name="Gremlin from Kremlin">gremlin</assigned_to>
          <cc>gremlin</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>200527</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan A. Melnikov">iv</who>
    <bug_when>2021-07-15 13:57:50 +0300</bug_when>
    <thetext>Сегодня при dist-upgrade до сегодняшнего Сизифа apt поругался, что у него broken packages. Оказалось, что он не смог обновить пересобранный tcsh и теперь у меня их два:

# rpm -e tcsh
error: &quot;tcsh&quot; specifies multiple packages:
  tcsh-6.20.00-alt3:sisyphus+263072.100.1.1.x86_64
  tcsh-6.20.00-alt3:sisyphus+278507.100.1.1.x86_64

Попробуем удалить тот, что старше:

# rpm -e &apos;tcsh-6.20.00-alt3:sisyphus+263072.100.1.1.x86_64&apos;
error: %preun(tcsh-6.20.00-alt3.x86_64) scriptlet failed, exit status 1
error: tcsh-6.20.00-alt3.x86_64: erase failed

Полный вывод `rpm -e -vv &apos;tcsh-6.20.00-alt3:sisyphus+263072.100.1.1.x86_64&apos;` приводить не буду, он скушный, но там есть такие строки:

+ test 1 = 0
D: %preun(tcsh-6.20.00-alt3.x86_64): waitpid(80105) rc 80105 status 100

Действительно, в этом пакете есть такой preuninstall hook:

# do not edit /etc/shells on upgrades
test &quot;$1&quot; = 0 &amp;&amp; sed -i -e &apos;/^\/bin\/t\?csh$/d&apos; /etc/shells

И когда $1 не равен нулю, этот хук завершается ошибкой. Не делайте так, пожалуйста.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>200529</commentid>
    <comment_count>1</comment_count>
    <who name="Gremlin from Kremlin">gremlin</who>
    <bug_when>2021-07-15 14:00:06 +0300</bug_when>
    <thetext>

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

    </bug>

</bugzilla>