{"id":38,"date":"2007-09-22T17:13:18","date_gmt":"2007-09-22T22:13:18","guid":{"rendered":"http:\/\/blogs.cae.tntech.edu\/mwr\/2007\/09\/22\/solution-to-a-vexing-update-alternatives-problem\/"},"modified":"2024-10-27T14:26:19","modified_gmt":"2024-10-27T14:26:19","slug":"solution-to-a-vexing-update-alternatives-problem","status":"publish","type":"post","link":"https:\/\/sites.tntech.edu\/renfro\/2007\/09\/22\/solution-to-a-vexing-update-alternatives-problem\/","title":{"rendered":"Solution to a Vexing update-alternatives Problem"},"content":{"rendered":"<p>So I&#8217;ve got <a href=\"http:\/\/blogs.cae.tntech.edu\/mwr\/2007\/05\/28\/making-debian-packages-from-commercial-software\/\">Debian packages made from lots of large proprietary software titles<\/a>, but one of them (Hyperworks)  had been throwing errors on several of the systems I tried to install it on, normally something like:<br \/>\n<code><br \/>\nSetting up hyperworks8 (8.1+0.2) ...<br \/>\nupdate-alternatives: slave link name \/usr\/bin\/amfbuilder duplicated<br \/>\ndpkg: error processing hyperworks8 (--configure):  subprocess post-installation script returned error exit status 2<br \/>\nErrors were encountered while processing:<br \/>\n  hyperworks8<br \/>\nE: Sub-process \/usr\/bin\/dpkg returned an error code (1)<br \/>\n<\/code><\/p>\n<p>I tried lots of quick fixes:<\/p>\n<ul>\n<li>purge, clean, and reinstall &#8212; no good.<\/li>\n<li>purge, clean, clear out \/etc\/alternatives and \/usr\/bin of any detritus from earlier package versions &#8212; no luck there, either<\/li>\n<li>edit \/var\/lib\/dpkg\/info\/hyperworks8.postinst to remove the amfbuilder line &#8212; that just moved the error onto another program included in the package<\/li>\n<\/ul>\n<p>Finally, I found a \/var\/lib\/dpkg\/alternatives\/hw file and removed it. It contained nothing but my Hyperworks-related settings, so that was safe. Afterwards, no more errors.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So I&#8217;ve got Debian packages made from lots of large proprietary software titles, but one of them (Hyperworks) had been throwing errors on several of the systems I tried to install it on, normally something like: Setting up hyperworks8 (8.1+0.2) &#8230; update-alternatives: slave link name \/usr\/bin\/amfbuilder duplicated dpkg: error processing hyperworks8 (&#8211;configure): subprocess post-installation script &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/sites.tntech.edu\/renfro\/2007\/09\/22\/solution-to-a-vexing-update-alternatives-problem\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Solution to a Vexing update-alternatives Problem&#8221;<\/span><\/a><\/p>\n","protected":false},"author":87,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-38","post","type-post","status-publish","format-standard","hentry","category-debian","entry"],"_links":{"self":[{"href":"https:\/\/sites.tntech.edu\/renfro\/wp-json\/wp\/v2\/posts\/38","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.tntech.edu\/renfro\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.tntech.edu\/renfro\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.tntech.edu\/renfro\/wp-json\/wp\/v2\/users\/87"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.tntech.edu\/renfro\/wp-json\/wp\/v2\/comments?post=38"}],"version-history":[{"count":1,"href":"https:\/\/sites.tntech.edu\/renfro\/wp-json\/wp\/v2\/posts\/38\/revisions"}],"predecessor-version":[{"id":487,"href":"https:\/\/sites.tntech.edu\/renfro\/wp-json\/wp\/v2\/posts\/38\/revisions\/487"}],"wp:attachment":[{"href":"https:\/\/sites.tntech.edu\/renfro\/wp-json\/wp\/v2\/media?parent=38"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.tntech.edu\/renfro\/wp-json\/wp\/v2\/categories?post=38"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.tntech.edu\/renfro\/wp-json\/wp\/v2\/tags?post=38"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}