Re: package versions in dselect, and Release file
>>>>> "Olaf" == Olaf Meeuwissen <olaf@epkowa.co.jp> writes:
itz> I have a potato system, but I downloaded a couple of upgraded
itz> packages from woody and placed them in a local mirror directory.
itz> I generated the Packages files with dpkg-scanpackages. That went
itz> fine, so I added a "deb file:" line for the local mirror to
itz> sources.list and run dselect. In the Select phase I could see
itz> the newer versions as available. I selected them. But the
itz> Install phase ignored my local mirror, tried to download the
itz> updates from the potato archive, and failed.
Olaf> Make sure your local archive is mentioned before the rest. I
Olaf> maintain a local mirror but it is usually lagging a bit behind
Olaf> (especially with unstable). If your sources.list says something
Olaf> like:
Olaf> deb file:/pub/debian unstable main deb
Olaf> http://ftp.debian.org/debian unstable main
It is not this simple; in fact, I think there's an out-and-out bug.
I'll report it when I have some time to waste.
The problem is that "apt-get update" and "apt-get install" (also
upgrade, etc.) make mutually inconsistent assumptions about the
structure of the mirror directory. Suppose the entry in sources.list
reads
deb file:/usr/local/src/debs localdebs main non-free
Then "apt-get update" looks for
/usr/local/src/debs/dists/localdebs/{main,non-free}/binary-i386/Packages
but "apt-get install pysol" looks for
/usr/local/src/debs/main/binary-i386/games/pysol_*.deb.
I was only able to work around this by setting up the mirror as
follows.
/usr/local/src/debs---main
^ |
| --non-free
| |
| --dists---localdebs--
| |
-------------------------
This is related to the thread earlier this week about the semantics of
a trailing slash on the deb URL. Apparently the thorough explanation
given still haven't exhausted the topic :-(
--
Ian Zimmerman, Oakland, California, U.S.A.
In his own soul a man bears the source
from which he draws all his sorrows and his joys.
Sophocles.
Reply to: