Δημοσιεύτηκε: 10 Σεπ 2009, 10:43
από da_perama1
Όπως μου πρότεινε ο alkisg το apt-cacher είναι ένα πρόγραμμα που επιτρέπει στους σταθμούς εργασίας να κάνουν εγκαταστάσεις - αναβαθμίσεις χρησιμοποιώντας τον server και όχι το διαδίκτυο. Οι σταθμοί ζητάν από τον server τα πακέτα που χρειάζονται και αυτός τα κατεβάζει μια φορά και τους εξυπηρετεί όλους. Οι οδηγίες εγκατάστασης του apt-cacher βρίσκονται http://www.debuntu.org/how-to-set-up-a-repository-cache-with-apt-cacher ( όπως έγραψε ο ανεξάντλητος σε ιδέες alkisg )
Τις ακολούθησα αλλά ακόμη δεν τα έχω καταφέρει. Περιγράφω τα βήματα που έχω κάνει μήπως υπάρχει κανείς που να μπορεί να βοηθήσει.
1. Εγκατέστησα το apt-cacher τόσο στο server όσο και στους σταθμούς εργασίας με
2.Στο server μετέτρεψα από το αρχείο /etc/apt-cacher/apt-cacher.conf τη γραμμή path-map
3.Στους σταθμούς εργασίας μετέτρεψα το αρχείο /etc/apt/sources.list
4. Έκανα restart το apt-cacher και στη συνέχεια έδωσα στους σταθμούς
και το αποτέλεσμα.
Τις ακολούθησα αλλά ακόμη δεν τα έχω καταφέρει. Περιγράφω τα βήματα που έχω κάνει μήπως υπάρχει κανείς που να μπορεί να βοηθήσει.
1. Εγκατέστησα το apt-cacher τόσο στο server όσο και στους σταθμούς εργασίας με
- Κώδικας: Επιλογή όλων
sudo apt-get install apt-cacher
2.Στο server μετέτρεψα από το αρχείο /etc/apt-cacher/apt-cacher.conf τη γραμμή path-map
Spoiler: show
- Κώδικας: Επιλογή όλων
# format is 'hostname:port', eg: 'proxy.example.com:8080'.
#http_proxy=proxy.example.com:8080
# Use of an external proxy can be turned on or off with this flag.
# Value should be either 0 (off) or 1 (on).
use_proxy=0
# External http proxy sometimes need authentication to get full access. The
# format is 'username:password'.
#http_proxy_auth=proxyuser:proxypass
# Use of external proxy authentication can be turned on or off with this flag.
# Value should be either 0 (off) or 1 (on).
use_proxy_auth=0
# Rate limiting sets the maximum bandwidth in bytes per second to use
# for fetching packages. Syntax is fully defined in 'man wget'.
# Use 'k' or 'm' to use kilobits or megabits / second: eg, 'limit=25k'.
# Use 0 or a negative value for no rate limiting.
limit=0
# Debug mode makes apt-cacher spew a lot of extra debug junk to the
# error log (whose location is defined with the 'logdir' directive).
# Leave this off unless you need it, or your error log will get very
# big. Acceptable values are 0 or 1.
debug=0
# To enable data checksumming, install libdbd-sqlite3-perl and set this option
# to 1. Then wait untill the Packages/Sources files have been refreshed once
# (and so the database has been built up). You can also nuke them in the cache
# to trigger the update.
# checksum=1
# Print a 410 (Gone) HTTP message with the specified text when accessed via
# CGI. Useful to tell users to adapt their sources.list files when the
# apt-cacher server is beeing relocated (via apt-get's error messages while
# running "update")
#cgi_advise_to_use = Please use http://cacheserver:3142/ as apt-cacher access URL
#cgi_advise_to_use = Server relocated. To change sources.list, run perl -pe "s,/apt-cacher\??,:3142," -i /etc/apt/sources.list
# Server mapping - this allows to hide real server names behind virtual paths
# that appear in the access URL. This method is known from apt-proxy. This is
# also the only method to use FTP access to the target hosts. The syntax is simple, the part of the beginning to replace, followed by a list of mirror urls, all space separated. Multiple profile are separated by semicolons
path_map = ubuntu gr.archive.ubuntu.com ; security security.ubuntu.com
# Note that you need to specify all target servers in the allowed_locations
# options if you make use of it. Also note that the paths should not overlap
# each other. FTP access method not supported yet, maybe in the future.
3.Στους σταθμούς εργασίας μετέτρεψα το αρχείο /etc/apt/sources.list
Spoiler: show
- Κώδικας: Επιλογή όλων
#deb cdrom:[Ubuntu 8.04 _Hardy Heron_ - Release i386 (20080423)]/ hardy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://repository-cache:3142/ubuntu/ hardy main restricted
deb-src http://repository-cache:3142/ubuntu/ hardy main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://repository-cache:3142/ubuntu/ hardy-updates main restricted
deb-src http://repository-cache:3142/ubuntu/ hardy-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://repository-cache:3142/ubuntu/ hardy universe
deb-src http://repository-cache:3142/ubuntu/ hardy universe
deb http://repository-cache:3142/ubuntu/ hardy-updates universe
deb-src http://repository-cache:3142/ubuntu/ hardy-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://repository-cache:3142/ubuntu/ hardy multiverse
deb-src http://repository-cache:3142/ubuntu/ hardy multiverse
deb http://repository-cache:3142/ubuntu/ hardy-updates multiverse
deb-src http://repository-cache:3142/ubuntu/ hardy-updates multiverse
## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://gr.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
# deb-src http://gr.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
# deb http://archive.canonical.com/ubuntu hardy partner
# deb-src http://archive.canonical.com/ubuntu hardy partner
deb http://repository-cache:3142/ubuntu hardy-security main restricted
deb-src http://repository-cache:3142/ubuntu hardy-security main restricted
deb http://repository-cache:3142/ubuntu hardy-security universe
deb-src http://repository-cache:3142/ubuntu hardy-security universe
deb http://repository-cache:3142/ubuntu hardy-security multiverse
deb-src http://repository-cache:3142/ubuntu hardy-security multiverse
4. Έκανα restart το apt-cacher και στη συνέχεια έδωσα στους σταθμούς
- Κώδικας: Επιλογή όλων
sudo apt-get update
και το αποτέλεσμα.
Spoiler: show
Σφάλμα http://repository-cache hardy Release.gpg
Αδύνατη η εύρεση του 'repository-cache'
Σφάλμα http://repository-cache hardy/main Translation-el
Αδύνατη η εύρεση του 'repository-cache'
Σφάλμα http://repository-cache hardy/restricted Translation-el
Αδύνατη η εύρεση του 'repository-cache'
Σφάλμα http://repository-cache hardy/universe Translation-el
Αδύνατη η εύρεση του 'repository-cache'
Σφάλμα http://repository-cache hardy/multiverse Translation-el
Αδύνατη η εύρεση του 'repository-cache'
Σφάλμα http://repository-cache hardy-updates Release.gpg
Αδύνατη η εύρεση του 'repository-cache'
Σφάλμα http://repository-cache hardy-updates/main Translation-el
Αδύνατη η εύρεση του 'repository-cache'
Σφάλμα http://repository-cache hardy-updates/restricted Translation-el
Αδύνατη η εύρεση του 'repository-cache'
Σφάλμα http://repository-cache hardy-updates/universe Translation-el
Αδύνατη η εύρεση του 'repository-cache'
Σφάλμα http://repository-cache hardy-updates/multiverse Translation-el
Αδύνατη η εύρεση του 'repository-cache'
Σφάλμα http://repository-cache hardy-security Release.gpg
Αδύνατη η εύρεση του 'repository-cache'
Σφάλμα http://repository-cache hardy-security/main Translation-el
Αδύνατη η εύρεση του 'repository-cache'
Σφάλμα http://repository-cache hardy-security/restricted Translation-el
Αδύνατη η εύρεση του 'repository-cache'
Σφάλμα http://repository-cache hardy-security/universe Translation-el
Αδύνατη η εύρεση του 'repository-cache'
Σφάλμα http://repository-cache hardy-security/multiverse Translation-el
Αδύνατη η εύρεση του 'repository-cache'
Hit http://ts.sch.gr stable Release.gpg
Αγνόησε http://ts.sch.gr stable/main Translation-el
Hit http://ts.sch.gr stable Release
Hit http://ts.sch.gr stable/main Packages
Ανάγνωση Λιστών Πακέτων...
Αδύνατη η εύρεση του 'repository-cache'
Σφάλμα http://repository-cache hardy/main Translation-el
Αδύνατη η εύρεση του 'repository-cache'
Σφάλμα http://repository-cache hardy/restricted Translation-el
Αδύνατη η εύρεση του 'repository-cache'
Σφάλμα http://repository-cache hardy/universe Translation-el
Αδύνατη η εύρεση του 'repository-cache'
Σφάλμα http://repository-cache hardy/multiverse Translation-el
Αδύνατη η εύρεση του 'repository-cache'
Σφάλμα http://repository-cache hardy-updates Release.gpg
Αδύνατη η εύρεση του 'repository-cache'
Σφάλμα http://repository-cache hardy-updates/main Translation-el
Αδύνατη η εύρεση του 'repository-cache'
Σφάλμα http://repository-cache hardy-updates/restricted Translation-el
Αδύνατη η εύρεση του 'repository-cache'
Σφάλμα http://repository-cache hardy-updates/universe Translation-el
Αδύνατη η εύρεση του 'repository-cache'
Σφάλμα http://repository-cache hardy-updates/multiverse Translation-el
Αδύνατη η εύρεση του 'repository-cache'
Σφάλμα http://repository-cache hardy-security Release.gpg
Αδύνατη η εύρεση του 'repository-cache'
Σφάλμα http://repository-cache hardy-security/main Translation-el
Αδύνατη η εύρεση του 'repository-cache'
Σφάλμα http://repository-cache hardy-security/restricted Translation-el
Αδύνατη η εύρεση του 'repository-cache'
Σφάλμα http://repository-cache hardy-security/universe Translation-el
Αδύνατη η εύρεση του 'repository-cache'
Σφάλμα http://repository-cache hardy-security/multiverse Translation-el
Αδύνατη η εύρεση του 'repository-cache'
Hit http://ts.sch.gr stable Release.gpg
Αγνόησε http://ts.sch.gr stable/main Translation-el
Hit http://ts.sch.gr stable Release
Hit http://ts.sch.gr stable/main Packages
Ανάγνωση Λιστών Πακέτων...