<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://forum.ubuntu-fr.org/extern.php?action=feed&amp;tid=366135&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Forum Ubuntu-fr.org / [RESOLU] PROBLÈMES avec DPKG-DIVERT / Signer dépôt/paquets?]]></title>
		<link>http://forum.ubuntu-fr.org/viewtopic.php?id=366135</link>
		<description><![CDATA[Les sujets les plus récents dans [RESOLU] PROBLÈMES avec DPKG-DIVERT / Signer dépôt/paquets?.]]></description>
		<lastBuildDate>Mon, 28 Dec 2009 21:57:20 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Réponse à&#160;:  [RESOLU] PROBLÈMES avec DPKG-DIVERT / Signer dépôt/paquets?]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3169864#p3169864</link>
			<description><![CDATA[<p>BON, je m&#039;auto répond, j&#039;ai trouvé THE put*in de m*rde de solution qui a mis sacrément longtemps à venir.</p><p>En fait les scripts peuvent très bien récupérer certaines variables, en fonction de l&#039;installation, afin de savoir s&#039;il s&#039;agit d&#039;une suppression, réinstallation, etc... Donc il faut jouer avec ça&#160; ! <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p><strong>Exemple :</strong></p><p>preinst :</p><div class="codebox"><pre><code>#!/bin/sh

set -e
case &quot;$1&quot; in
install)
dpkg-divert --package chromium-bsu-fix --divert /usr/share/applications/chromium-bsu.desktop.bak --rename /usr/share/applications/chromium-bsu.desktop
;;
abort-upgrade)
;;
upgrade)
;;
*)
echo &quot;preinst called with unknown argument \`$1&#039;&quot; &gt;&amp;2
exit 1
;;
esac
exit 0</code></pre></div><p>postrm :</p><div class="codebox"><pre><code>#!/bin/sh
set -e
case &quot;$1&quot; in
remove|purge)
dpkg-divert --package chromium-bsu-fix --rename --remove /usr/share/applications/chromium-bsu.desktop

;;
upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;;
*)
echo &quot;postrm called with unknown argument \`$1&#039;&quot; &gt;&amp;2
exit 0
esac</code></pre></div><p>Ensuite pour les dépôts, j&#039;ai rajouté la partie permettant de les signer, dans la doc : </p><p>http://doc.ubuntu-fr.org/tutoriel/comment_creer_depot#signer_votre_depot</p><br /><p>Voilà <img src="http://forum.ubuntu-fr.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>Merci aux gars de Debian-fr de m&#039;avoir aidé, comme quoi, même les ubunteros ont de la place là bas, contrairement aux idées reçues. <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (billou)]]></author>
			<pubDate>Mon, 28 Dec 2009 21:57:20 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3169864#p3169864</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [RESOLU] PROBLÈMES avec DPKG-DIVERT / Signer dépôt/paquets?]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3165322#p3165322</link>
			<description><![CDATA[<p>Merci, j&#039;en refait un autre parce que là ça me GONFLE, tant que ce problème ne sera pas résolut, je serais dans l&#039;impossibilité d&#039;avancer ou de releaser quoi que ce soit. <img src="http://forum.ubuntu-fr.org/img/smilies/yikes.png" width="15" height="15" alt="yikes" /></p><p>S&#039;il le faut j&#039;upperais le sujet tous les jours pendant un AN pour qu&#039;une personne puisse enfin me donner une piste <img src="http://forum.ubuntu-fr.org/img/smilies/neutral.png" width="15" height="15" alt="neutral" /></p>]]></description>
			<author><![CDATA[dummy@example.com (billou)]]></author>
			<pubDate>Sun, 27 Dec 2009 11:36:23 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3165322#p3165322</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [RESOLU] PROBLÈMES avec DPKG-DIVERT / Signer dépôt/paquets?]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3164494#p3164494</link>
			<description><![CDATA[<p><em>rhooo... pauvre de toi...</p><p>Désolé par avance, je n&#039;ai aucune soluce à ton problème, mais je compatis, et me permet ce UP pour toi.</p><p>Bon courage...</em> <img src="http://forum.ubuntu-fr.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[dummy@example.com (RegisBurin)]]></author>
			<pubDate>Sat, 26 Dec 2009 21:04:03 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3164494#p3164494</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [RESOLU] PROBLÈMES avec DPKG-DIVERT / Signer dépôt/paquets?]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3164462#p3164462</link>
			<description><![CDATA[<p>Up !</p>]]></description>
			<author><![CDATA[dummy@example.com (billou)]]></author>
			<pubDate>Sat, 26 Dec 2009 20:41:38 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3164462#p3164462</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [RESOLU] PROBLÈMES avec DPKG-DIVERT / Signer dépôt/paquets?]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3163566#p3163566</link>
			<description><![CDATA[<p>Up !!!!</p>]]></description>
			<author><![CDATA[dummy@example.com (billou)]]></author>
			<pubDate>Sat, 26 Dec 2009 12:14:34 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3163566#p3163566</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [RESOLU] PROBLÈMES avec DPKG-DIVERT / Signer dépôt/paquets?]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3162941#p3162941</link>
			<description><![CDATA[<p>Up !!! <img src="http://forum.ubuntu-fr.org/img/smilies/sad.png" width="15" height="15" alt="sad" /> <img src="http://forum.ubuntu-fr.org/img/smilies/sad.png" width="15" height="15" alt="sad" /> <img src="http://forum.ubuntu-fr.org/img/smilies/sad.png" width="15" height="15" alt="sad" /></p>]]></description>
			<author><![CDATA[dummy@example.com (billou)]]></author>
			<pubDate>Fri, 25 Dec 2009 22:49:14 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3162941#p3162941</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [RESOLU] PROBLÈMES avec DPKG-DIVERT / Signer dépôt/paquets?]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3150817#p3150817</link>
			<description><![CDATA[<p>UP !! (and help ! <img src="http://forum.ubuntu-fr.org/img/smilies/hmm.png" width="15" height="15" alt="hmm" /> )</p>]]></description>
			<author><![CDATA[dummy@example.com (billou)]]></author>
			<pubDate>Sun, 20 Dec 2009 13:47:57 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3150817#p3150817</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [RESOLU] PROBLÈMES avec DPKG-DIVERT / Signer dépôt/paquets?]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3146120#p3146120</link>
			<description><![CDATA[<p>Je me permet un gros up, parce que là... Je n&#039;arrive vraiment pas à trouver l&#039;origine du problème. <img src="http://forum.ubuntu-fr.org/img/smilies/hmm.png" width="15" height="15" alt="hmm" /></p>]]></description>
			<author><![CDATA[dummy@example.com (billou)]]></author>
			<pubDate>Thu, 17 Dec 2009 23:47:05 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3146120#p3146120</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [RESOLU] PROBLÈMES avec DPKG-DIVERT / Signer dépôt/paquets?]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3144234#p3144234</link>
			<description><![CDATA[<p><span class="bbu"><strong>Je fais une petite mise à jour pour donner plus d&#039;informations relatives au premier problème :</strong></span></p><br /><p><strong>Screen de l&#039;erreur suite à la réinstallation du paquet :</strong></p><p><span class="postimg"><img src="http://nsa11.casimages.com/img/2009/12/16/091216110847316887.png" alt="091216110847316887.png" /></span></p><br /><br /><p><strong>Erreur Gdebi-GTK après l&#039;echec de la réinstallation :</strong></p><div class="codebox"><pre><code>Impossible d&#039;ouvrir « chromium-bsu-fix.deb »

Ce paquet est peut être corrompu, ou vous n&#039;avez pas les droits pour y acceder. Vérifiez les droits d&#039;accès fichier</code></pre></div><p><strong>Erreur synaptic à la suite de tout ça, dès la moindre ouverture :</strong></p><div class="codebox"><pre><code>E: Le paquet chromium-bsu-fix doit être réinstallé, mais il est impossible de trouver son archive.
E: Erreur interne en recalculant le cache des dépendances (1). Veuillez envoyer un rapport d&#039;anomalie.</code></pre></div><p><strong>Contenu de /var/log/dpkg :</strong></p><div class="codebox"><pre><code>2009-12-16 22:54:18 startup archives install
2009-12-16 22:54:19 upgrade chromium-bsu-fix 1.0 1.0
2009-12-16 22:54:19 status half-configured chromium-bsu-fix 1.0
2009-12-16 22:54:19 status unpacked chromium-bsu-fix 1.0
2009-12-16 22:54:19 status half-installed chromium-bsu-fix 1.0</code></pre></div><p>Autre screen (erreur avec le gestionnaire de mises à jour) suite à cet echec :</p><p><a href="http://nsa11.casimages.com/img/2009/12/16/091216111306287766.png">http://nsa11.casimages.com/img/2009/12/ … 287766.png</a></p><br /><br /><p><strong>Paquet concerné (type générique, j&#039;ai la même erreur avec d&#039;autres paquets de même type adaptés à d&#039;autres jeux/logiciels) :</strong></p><p>http://steelix.org/files/chromium-bsu-fix.deb</p>]]></description>
			<author><![CDATA[dummy@example.com (billou)]]></author>
			<pubDate>Wed, 16 Dec 2009 22:23:42 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3144234#p3144234</guid>
		</item>
		<item>
			<title><![CDATA[[RESOLU] PROBLÈMES avec DPKG-DIVERT / Signer dépôt/paquets?]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3142374#p3142374</link>
			<description><![CDATA[<p>Hello, dans le but de finaliser correctement ma propre variante d&#039;ubuntu &quot;out of the box&quot; (voir le lien dans ma signature) j&#039;aurais besoin de quelques informations cruciales au sujet de dpkg et des dépôts.</p><p><span class="bbu"><strong>Concernant DPKG :</strong></span></p><p>J&#039;utilise dpkg-divert, pour faire une diversion, de fichiers de raccourcis de programmes situées dans <strong>/usr/share/applications</strong> afin de pouvoir remplacer le fichier *.desktop correspondant par le mien, qui lancera un fix avant le programme corrigeant un certain nombre de problèmes, ou rajoutant des fonctionnalités.</p><p>Problème cependant, tout se passe très bien lors de l&#039;installation du paquet contenant le script provoquant une diversion, ou lors de sa suppression, mais ça merdouille complètement et peut aller jusqu&#039;à casser le système de paquets lors de la réinstallation ou mise à jour du paquet, ce qui m&#039;empêcherais de proposer des mises à jour pour ces derniers.</p><p>Les commandes utilisées (par exemple pour OpenArena) :</p><p>Script <strong>preinst</strong> (s&#039;exécute avant toute installation)</p><div class="codebox"><pre><code>#!/bin/sh -e
dpkg-divert --package openarena-fix --divert /usr/share/applications/openarena.desktop.broken --rename /usr/share/applications/openarena.desktop
exit 0</code></pre></div><p>Script <strong>postrm</strong> (s&#039;exécute après toute suppression)<br />#!/bin/sh -e</p><div class="codebox"><pre><code>#!/bin/sh -e
dpkg-divert --package openarena-fix --rename --remove /usr/share/applications/openarena.desktop
exit 0</code></pre></div><p><span class="bbu"><strong>Concernant les dépôts :</strong></span></p><p>C&#039;est bien simple, j&#039;ai créé mon propre dépôt via <a href="http://doc.ubuntu-fr.org/tutoriel/comment_creer_depot">repropro</a> ce qui me simplifie de très loin les choses, surtout avec le script proposé permettant de rajouter tous les paquets, ainsi que leur classement alphanumérique.<br />J&#039;ai également créé ma propre clé PGP, mais je n&#039;ai rien trouvé de probant (encore moins en Français) sur la façon dont je devrais m&#039;y prendre pour signer mon dépôt? (sachant que je n&#039;ai pas de serveur à moi, je suis sur du mutualisé, donc aucun accès serveur)</p><br /><p>Merci de votre attention, j&#039;espère vraiment pouvoir mettre en ligne la première release bientôt, mais ce genre de détails me bloque encore un peu.</p>]]></description>
			<author><![CDATA[dummy@example.com (billou)]]></author>
			<pubDate>Wed, 16 Dec 2009 00:23:26 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3142374#p3142374</guid>
		</item>
	</channel>
</rss>
