[sf-lug] apt doc question 2
jim
jim at well.com
Sun Nov 23 14:08:11 PST 2008
* the text at
http://www.debian.org/doc/manuals/apt-howto/ch-basico.en.html
* section 2.3 suggests using netselect to determine which
* mirror is best (i.e. access has least latency).
* i also want to know which mirror is being used when i use
apt-get.
* here's how to get the netselect package, and a little more
* than halfway down it shows the URI for the mirror used.
# apt-get install netselect
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
netselect-apt
The following NEW packages will be installed:
netselect
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 21.5kB of archives.
After unpacking 98.3kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com gutsy/universe netselect 0.3.ds1-10
[21.5kB]
Fetched 21.5kB in 1s (18.3kB/s)
Preconfiguring packages ...
Selecting previously deselected package netselect.
(Reading database ... 111018 files and directories currently installed.)
Unpacking netselect (from .../netselect_0.3.ds1-10_i386.deb) ...
Setting up netselect (0.3.ds1-10) ...
# netselect http://linux.csua.berkeley.edu
59 http://linux.csua.berkeley.edu
* wow, good, but how to use it with apt-get?
* no matter what variant i use in the /etc/apt/sources.list file
* (the following are commented lines in the file:)
# added by jim 20081123
# deb http://linux.csua.berkeley.edu
* i get an error (above line without comment delimiter),
* e.g. (the following is at the command line:)
# apt-get update
E: Malformed line 61 in source list /etc/apt/sources.list (dist)
* how to force, at the command line, the use of a specific mirror?
* neither
# apt-get --help
* nor
# man apt-get
* shows an option that permits forcing use of a particular mirror.
* here's the failure to update hpijs
# apt-get install hpijs
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
hpijs-ppds hplip-doc
The following packages will be upgraded:
hpijs
1 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Need to get 334kB of archives.
After unpacking 0B of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com gutsy-updates/main hpijs 2.7.7
+2.7.7.dfsg.1-0ubuntu5.1 [334kB]
Fetched 335kB in 5s (64.8kB/s)
Failed to fetch
http://us.archive.ubuntu.com/ubuntu/pool/main/h/hplip/hpijs_2.7.7
+2.7.7.dfsg.1-0ubuntu5.1_i386.deb Size mismatch
E: Unable to fetch some archives, maybe run apt-get update or try with
--fix-missing?
# apt-get install hpijs --fix-missing
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
hpijs-ppds hplip-doc
The following packages will be upgraded:
hpijs
1 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Need to get 334kB of archives.
After unpacking 0B of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com gutsy-updates/main hpijs 2.7.7
+2.7.7.dfsg.1-0ubuntu5.1 [334kB]
Fetched 335kB in 3s (105kB/s)
Failed to fetch
http://us.archive.ubuntu.com/ubuntu/pool/main/h/hplip/hpijs_2.7.7
+2.7.7.dfsg.1-0ubuntu5.1_i386.deb Size mismatch
* --fix-missing doesn't work either; still got a Size mismatch
More information about the sf-lug
mailing list