<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>男单 618 &#187; apt</title>
	<atom:link href="http://www.ai7.org/wp/html/tag/apt/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ai7.org/wp</link>
	<description>生活象筒装的卫生纸，开始的时候怎么扯都不觉得在转，后来转的越来越快。</description>
	<lastBuildDate>Wed, 10 Mar 2010 03:02:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>解决apt依赖问题</title>
		<link>http://www.ai7.org/wp/html/560.html</link>
		<comments>http://www.ai7.org/wp/html/560.html#comments</comments>
		<pubDate>Mon, 19 Oct 2009 12:02:32 +0000</pubDate>
		<dc:creator>amao</dc:creator>
				<category><![CDATA[LaTeX相关]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[apt]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[包依赖]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/html/560.html</guid>
		<description><![CDATA[在Ubuntu下一直是用国内朋友修改后的texlive，原来是2005，现在是2008。这样如果再要装kile这样的软件的话，就会有包依赖的问题，一直不知道怎么解决。今天在查另外一个问题的时候，无意中看到解决方案。总的来就，就是造一个假包装上。在这里，42楼：http://forum.ubuntu.org.cn/viewtopic.php?f=35&#038;t=168940。下面还是转一下原文。
引用:
另外我想重复再问一下，谁有解决 apt 包依赖问题的办法？
手工安装 TeX Live 后，如果还要从源里安装依赖 texlive 的软件（一个明显的例子就是 LaTeX 的编辑器 kile），就又会要求你再装源里面的那个已经被分解得比较零碎的 texlive2007。似乎是需要做一个关于 texlive 的空的假包？哪里有相关的文档，似乎不好找。
装 dummy 包的办法很简单了，过程如下：
代码:
sudo apt-get install equivs
它要装不少东西，好在不是很大，另外有我本来就需要的 MySQL。
在桌面上新建一 .ctl 个文件，比如：texlive-dummy.ctl 。
然后添加如下内容：
代码:
Section: tex
Package: texlive-dummy
Provides: texlive, texlive-base-bin, texlive-base-bin-doc,texlive-bibtex-extra, texlive-common, texlive-doc-base, texlive-doc-bg,texlive-doc-cs+sk, texlive-doc-de, texlive-doc-el, texlive-doc-en,texlive-doc-es, texlive-doc-fi, texlive-doc-fr, texlive-doc-it,texlive-doc-ko, texlive-doc-mn, texlive-doc-nl, texlive-doc-pl,texlive-doc-pt, texlive-doc-ru, texlive-doc-th, texlive-doc-tr,texlive-doc-uk, texlive-doc-vi, texlive-doc-zh, texlive-extra-utils,texlive-font-utils, texlive-fonts-extra, texlive-fonts-extra-doc,texlive-fonts-recommended, texlive-fonts-recommended-doc,texlive-formats-extra, texlive-full, texlive-games,texlive-generic-extra, texlive-generic-recommended, texlive-humanities,texlive-humanities-doc, texlive-lang-african, texlive-lang-all,texlive-lang-arab, [...]]]></description>
			<content:encoded><![CDATA[<p>在Ubuntu下一直是用国内朋友修改后的texlive，原来是2005，现在是2008。这样如果再要装kile这样的软件的话，就会有包依赖的问题，一直不知道怎么解决。今天在查另外一个问题的时候，无意中看到解决方案。总的来就，就是造一个假包装上。在这里，42楼：<a target="_blank" href="http://forum.ubuntu.org.cn/viewtopic.php?f=35&#038;t=168940">http://forum.ubuntu.org.cn/viewtopic.php?f=35&#038;t=168940</a>。下面还是转一下原文。</p>
<p><b>引用:</b>
<div class="quotecontent"><span style="color: rgb(0, 0, 255);">另外我想重复再问一下，谁有解决 apt 包依赖问题的办法？</p>
<p>手工安装 TeX Live 后，如果还要从源里安装依赖 texlive 的软件（一个明显的例子就是 LaTeX 的编辑器 kile），就又会要求你再装源里面的那个已经被分解得比较零碎的 texlive2007。似乎是需要做一个关于 texlive 的空的假包？哪里有相关的文档，似乎不好找。</span></div>
<p>装 dummy 包的办法很简单了，过程如下：</p>
<div class="codetitle"><b>代码:</b></div>
<div class="codecontent">sudo apt-get install equivs</div>
<p>它要装不少东西，好在不是很大，另外有我本来就需要的 MySQL。</p>
<p>在桌面上新建一 .ctl 个文件，比如：texlive-dummy.ctl 。</p>
<p>然后添加如下内容：</p>
<div class="codetitle"><b>代码:</b></div>
<div class="codecontent">Section: tex<br />
Package: texlive-dummy<br />
Provides: texlive, texlive-base-bin, texlive-base-bin-doc,texlive-bibtex-extra, texlive-common, texlive-doc-base, texlive-doc-bg,texlive-doc-cs+sk, texlive-doc-de, texlive-doc-el, texlive-doc-en,texlive-doc-es, texlive-doc-fi, texlive-doc-fr, texlive-doc-it,texlive-doc-ko, texlive-doc-mn, texlive-doc-nl, texlive-doc-pl,texlive-doc-pt, texlive-doc-ru, texlive-doc-th, texlive-doc-tr,texlive-doc-uk, texlive-doc-vi, texlive-doc-zh, texlive-extra-utils,texlive-font-utils, texlive-fonts-extra, texlive-fonts-extra-doc,texlive-fonts-recommended, texlive-fonts-recommended-doc,texlive-formats-extra, texlive-full, texlive-games,texlive-generic-extra, texlive-generic-recommended, texlive-humanities,texlive-humanities-doc, texlive-lang-african, texlive-lang-all,texlive-lang-arab, texlive-lang-armenian, texlive-lang-cyrillic,texlive-lang-czechslovak, texlive-lang-danish, texlive-lang-dutch,texlive-lang-finnish, texlive-lang-french, texlive-lang-german,texlive-lang-greek, texlive-lang-hebrew, texlive-lang-hungarian,texlive-lang-indic, texlive-lang-italian, texlive-lang-latin,texlive-lang-manju, texlive-lang-mongolian, texlive-lang-norwegian,texlive-lang-polish, texlive-lang-portuguese, texlive-lang-spanish,texlive-lang-swedish, texlive-lang-tibetan, texlive-lang-ukenglish,texlive-lang-vietnamese, texlive-latex-base, texlive-latex-base-doc,texlive-latex-extra, texlive-latex-extra-doc, texlive-latex-recommended,texlive-latex-recommended-doc, texlive-latex3, texlive-math-extra,texlive-metapost, texlive-metapost-doc, texlive-music, texlive-omega,texlive-pictures, texlive-pictures-doc, texlive-plain-extra,texlive-pstricks, texlive-pstricks-doc, texlive-publishers,texlive-publishers-doc, texlive-science, texlive-science-doc,texlive-xetex, texlive-lang-other, texlive-lang-croatian, texlive-base,texlive-doc-ja, cm-super, lmodern, latex-xcolor, latex-beamer, pgf,preview-latex-style<br />
Description: TeXlive dummy package<br />
 This package provides dpkg with the information that<br />
 there is a local TeXlive version installed. </div>
<p>保存后开始打包：</p>
<div class="codetitle"><b>代码:</b></div>
<div class="codecontent">sudo equivs-build texlive-dummy.ctl</div>
<p>然后可以看见一个 deb 文件，名为：texlive-dummy_1.0_all.deb</p>
<p>现在就可以安装它了：</p>
<div class="codetitle"><b>代码:</b></div>
<div class="codecontent">sudo dpkg -i texlive-dummy_1.0_all.deb</div>
<p>行了，下面就不用多说了，打开新立德，找到 kile 安装就是了，效果如下：</p>
<div class="attachtitle">附件:</div>
<div class="attachcontent">                <a href="http://forum.ubuntu.org.cn/download/file.php?id=55217&#038;t=1" id="" class="highslide" onclick="return hs.expand(this)"><img src="http://forum.ubuntu.org.cn/download/file.php?id=55217&#038;t=1" alt="Screenshot.png" title="Click to enlarge" /></a> </p>
<p><span class="gensmall">Screenshot.png [ 1002.93 KiB | 被浏览 738 次 ]</span></p></div>
<p>顺便把这两个文件也一并打包附赠：</p>
<div class="attachtitle">附件:</div>
<div class="attachcontent">			<span class="genmed"><br />
				<img src="./styles/UbuntuCN/imageset/icon_topic_attach.gif" alt="" title="" height="18" width="14" /> 				<a href="http://forum.ubuntu.org.cn/download/file.php?id=65674">texlive-dummy.tar.gz</a> [4.25 KiB]<br />
			</span></p>
<p>			<span class="gensmall">被下载 90 次</span> </p>
</div>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=a162c3f9-35d0-80f3-a2fe-117f1831e63c" /></div>
]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/560.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
