Fórum Ubuntu CZ/SK
Ubuntu pro osobní počítače => Instalace, aktualizace a spouštění => Téma založeno: martin.nohejl 29 Října 2011, 22:31:22
-
Zdravím všechny,
potýkám se s problémem, při aktualizaci programů na mém PC, který není připojený k internetu. Na internet se můžu dostat u známých, kteří mají pouze Windows XP. Do Ubuntu verze 10.10 jsem aktualizace řešil přes výborný program Keryx 0.92 (http://keryxproject.org/), ale na nyní používané verzi Ubuntu 11.04 se mi tento program rozjet nepodařilo. Proto jsem musel hledat jiné řešení. Na adrese http://www.abclinuxu.cz/poradna/linux/show/179562 jsem narizil na návod:
1. sudo apt-get update --print-uris > linky
# parametr --print-uris vypíše URL souborů a soubory, které chce stahovat a následně dojde k přesměrování výstupu do souboru linky
cat linky
'http://extras.ubuntu.com/ubuntu/dists/natty/main/source/Sources.bz2' extras.ubuntu.com_ubuntu_dists_natty_main_source_Sources 0 :
'http://extras.ubuntu.com/ubuntu/dists/natty/main/binary-i386/Packages.bz2' extras.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages 0 :
'http://extras.ubuntu.com/ubuntu/dists/natty/main/i18n/Index.bz2' extras.ubuntu.com_ubuntu_dists_natty_main_i18n_Index 0 :
'http://extras.ubuntu.com/ubuntu/dists/natty/InRelease' extras.ubuntu.com_ubuntu_dists_natty_InRelease 0
'http://archive.canonical.com/ubuntu/dists/natty/partner/binary-i386/Packages.bz2' archive.canonical.com_ubuntu_dists_natty_partner_binary-i386_Packages 0 :
'http://archive.canonical.com/ubuntu/dists/natty/partner/i18n/Index.bz2' archive.canonical.com_ubuntu_dists_natty_partner_i18n_Index 0 :
'http://archive.canonical.com/ubuntu/dists/natty/InRelease' archive.canonical.com_ubuntu_dists_natty_InRelease 0
'http://security.ubuntu.com/ubuntu/dists/natty-security/main/source/Sources.bz2' security.ubuntu.com_ubuntu_dists_natty-security_main_source_Sources 0 :
'http://security.ubuntu.com/ubuntu/dists/natty-security/restricted/source/Sources.bz2' security.ubuntu.com_ubuntu_dists_natty-security_restricted_source_Sources 0 :
'http://security.ubuntu.com/ubuntu/dists/natty-security/universe/source/Sources.bz2' security.ubuntu.com_ubuntu_dists_natty-security_universe_source_Sources 0 :
'http://security.ubuntu.com/ubuntu/dists/natty-security/multiverse/source/Sources.bz2' security.ubuntu.com_ubuntu_dists_natty-security_multiverse_source_Sources 0 :
'http://security.ubuntu.com/ubuntu/dists/natty-security/main/binary-i386/Packages.bz2' security.ubuntu.com_ubuntu_dists_natty-security_main_binary-i386_Packages 0 :
'http://security.ubuntu.com/ubuntu/dists/natty-security/restricted/binary-i386/Packages.bz2' security.ubuntu.com_ubuntu_dists_natty-security_restricted_binary-i386_Packages 0 :
'http://security.ubuntu.com/ubuntu/dists/natty-security/universe/binary-i386/Packages.bz2' security.ubuntu.com_ubuntu_dists_natty-security_universe_binary-i386_Packages 0 :
'http://security.ubuntu.com/ubuntu/dists/natty-security/multiverse/binary-i386/Packages.bz2' security.ubuntu.com_ubuntu_dists_natty-security_multiverse_binary-i386_Packages 0 :
'http://security.ubuntu.com/ubuntu/dists/natty-security/main/i18n/Index.bz2' security.ubuntu.com_ubuntu_dists_natty-security_main_i18n_Index 0 :
'http://security.ubuntu.com/ubuntu/dists/natty-security/multiverse/i18n/Index.bz2' security.ubuntu.com_ubuntu_dists_natty-security_multiverse_i18n_Index 0 :
'http://security.ubuntu.com/ubuntu/dists/natty-security/restricted/i18n/Index.bz2' security.ubuntu.com_ubuntu_dists_natty-security_restricted_i18n_Index 0 :
'http://security.ubuntu.com/ubuntu/dists/natty-security/universe/i18n/Index.bz2' security.ubuntu.com_ubuntu_dists_natty-security_universe_i18n_Index 0 :
'http://security.ubuntu.com/ubuntu/dists/natty-security/InRelease' security.ubuntu.com_ubuntu_dists_natty-security_InRelease 0
'http://cz.archive.ubuntu.com/ubuntu/dists/natty/main/source/Sources.bz2' cz.archive.ubuntu.com_ubuntu_dists_natty_main_source_Sources 0 :
'http://cz.archive.ubuntu.com/ubuntu/dists/natty/restricted/source/Sources.bz2' cz.archive.ubuntu.com_ubuntu_dists_natty_restricted_source_Sources 0 :
'http://cz.archive.ubuntu.com/ubuntu/dists/natty/universe/source/Sources.bz2' cz.archive.ubuntu.com_ubuntu_dists_natty_universe_source_Sources 0 :
'http://cz.archive.ubuntu.com/ubuntu/dists/natty/multiverse/source/Sources.bz2' cz.archive.ubuntu.com_ubuntu_dists_natty_multiverse_source_Sources 0 :
'http://cz.archive.ubuntu.com/ubuntu/dists/natty/main/binary-i386/Packages.bz2' cz.archive.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages 0 :
'http://cz.archive.ubuntu.com/ubuntu/dists/natty/restricted/binary-i386/Packages.bz2' cz.archive.ubuntu.com_ubuntu_dists_natty_restricted_binary-i386_Packages 0 :
'http://cz.archive.ubuntu.com/ubuntu/dists/natty/universe/binary-i386/Packages.bz2' cz.archive.ubuntu.com_ubuntu_dists_natty_universe_binary-i386_Packages 0 :
'http://cz.archive.ubuntu.com/ubuntu/dists/natty/multiverse/binary-i386/Packages.bz2' cz.archive.ubuntu.com_ubuntu_dists_natty_multiverse_binary-i386_Packages 0 :
'http://cz.archive.ubuntu.com/ubuntu/dists/natty/main/i18n/Index.bz2' cz.archive.ubuntu.com_ubuntu_dists_natty_main_i18n_Index 0 :
'http://cz.archive.ubuntu.com/ubuntu/dists/natty/multiverse/i18n/Index.bz2' cz.archive.ubuntu.com_ubuntu_dists_natty_multiverse_i18n_Index 0 :
'http://cz.archive.ubuntu.com/ubuntu/dists/natty/restricted/i18n/Index.bz2' cz.archive.ubuntu.com_ubuntu_dists_natty_restricted_i18n_Index 0 :
'http://cz.archive.ubuntu.com/ubuntu/dists/natty/universe/i18n/Index.bz2' cz.archive.ubuntu.com_ubuntu_dists_natty_universe_i18n_Index 0 :
'http://cz.archive.ubuntu.com/ubuntu/dists/natty/InRelease' cz.archive.ubuntu.com_ubuntu_dists_natty_InRelease 0
'http://cz.archive.ubuntu.com/ubuntu/dists/natty-updates/main/source/Sources.bz2' cz.archive.ubuntu.com_ubuntu_dists_natty-updates_main_source_Sources 0 :
'http://cz.archive.ubuntu.com/ubuntu/dists/natty-updates/restricted/source/Sources.bz2' cz.archive.ubuntu.com_ubuntu_dists_natty-updates_restricted_source_Sources 0 :
'http://cz.archive.ubuntu.com/ubuntu/dists/natty-updates/universe/source/Sources.bz2' cz.archive.ubuntu.com_ubuntu_dists_natty-updates_universe_source_Sources 0 :
'http://cz.archive.ubuntu.com/ubuntu/dists/natty-updates/multiverse/source/Sources.bz2' cz.archive.ubuntu.com_ubuntu_dists_natty-updates_multiverse_source_Sources 0 :
'http://cz.archive.ubuntu.com/ubuntu/dists/natty-updates/main/binary-i386/Packages.bz2' cz.archive.ubuntu.com_ubuntu_dists_natty-updates_main_binary-i386_Packages 0 :
'http://cz.archive.ubuntu.com/ubuntu/dists/natty-updates/restricted/binary-i386/Packages.bz2' cz.archive.ubuntu.com_ubuntu_dists_natty-updates_restricted_binary-i386_Packages 0 :
'http://cz.archive.ubuntu.com/ubuntu/dists/natty-updates/universe/binary-i386/Packages.bz2' cz.archive.ubuntu.com_ubuntu_dists_natty-updates_universe_binary-i386_Packages 0 :
'http://cz.archive.ubuntu.com/ubuntu/dists/natty-updates/multiverse/binary-i386/Packages.bz2' cz.archive.ubuntu.com_ubuntu_dists_natty-updates_multiverse_binary-i386_Packages 0 :
'http://cz.archive.ubuntu.com/ubuntu/dists/natty-updates/main/i18n/Index.bz2' cz.archive.ubuntu.com_ubuntu_dists_natty-updates_main_i18n_Index 0 :
'http://cz.archive.ubuntu.com/ubuntu/dists/natty-updates/multiverse/i18n/Index.bz2' cz.archive.ubuntu.com_ubuntu_dists_natty-updates_multiverse_i18n_Index 0 :
'http://cz.archive.ubuntu.com/ubuntu/dists/natty-updates/restricted/i18n/Index.bz2' cz.archive.ubuntu.com_ubuntu_dists_natty-updates_restricted_i18n_Index 0 :
'http://cz.archive.ubuntu.com/ubuntu/dists/natty-updates/universe/i18n/Index.bz2' cz.archive.ubuntu.com_ubuntu_dists_natty-updates_universe_i18n_Index 0 :
'http://cz.archive.ubuntu.com/ubuntu/dists/natty-updates/InRelease' cz.archive.ubuntu.com_ubuntu_dists_natty-updates_InRelease 0
# zobrazení souboru linky
2. cat linky | sed -e "s/'//g" | awk '{print "wget -O " $2, $1}' > stahovani
# vypreparujeme nepotřebné znaky, přidáme na začátek řádku příkaz pro stahování z internetu, upravíme pořadí parametrů na řádku a to vše uložíme do souboru stahovani
# do tohoto kroku moc nevidím, protože nevím co jednotlivé parametry znamenají, takže nevím, jestli je příkaz napsaný správně
cat stahovani
wget -O extras.ubuntu.com_ubuntu_dists_natty_main_source_Sources http://extras.ubuntu.com/ubuntu/dists/natty/main/source/Sources.bz2
wget -O extras.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages http://extras.ubuntu.com/ubuntu/dists/natty/main/binary-i386/Packages.bz2
wget -O extras.ubuntu.com_ubuntu_dists_natty_main_i18n_Index http://extras.ubuntu.com/ubuntu/dists/natty/main/i18n/Index.bz2
wget -O extras.ubuntu.com_ubuntu_dists_natty_InRelease http://extras.ubuntu.com/ubuntu/dists/natty/InRelease
wget -O archive.canonical.com_ubuntu_dists_natty_partner_binary-i386_Packages http://archive.canonical.com/ubuntu/dists/natty/partner/binary-i386/Packages.bz2
wget -O archive.canonical.com_ubuntu_dists_natty_partner_i18n_Index http://archive.canonical.com/ubuntu/dists/natty/partner/i18n/Index.bz2
wget -O archive.canonical.com_ubuntu_dists_natty_InRelease http://archive.canonical.com/ubuntu/dists/natty/InRelease
wget -O security.ubuntu.com_ubuntu_dists_natty-security_main_source_Sources http://security.ubuntu.com/ubuntu/dists/natty-security/main/source/Sources.bz2
wget -O security.ubuntu.com_ubuntu_dists_natty-security_restricted_source_Sources http://security.ubuntu.com/ubuntu/dists/natty-security/restricted/source/Sources.bz2
wget -O security.ubuntu.com_ubuntu_dists_natty-security_universe_source_Sources http://security.ubuntu.com/ubuntu/dists/natty-security/universe/source/Sources.bz2
wget -O security.ubuntu.com_ubuntu_dists_natty-security_multiverse_source_Sources http://security.ubuntu.com/ubuntu/dists/natty-security/multiverse/source/Sources.bz2
wget -O security.ubuntu.com_ubuntu_dists_natty-security_main_binary-i386_Packages http://security.ubuntu.com/ubuntu/dists/natty-security/main/binary-i386/Packages.bz2
wget -O security.ubuntu.com_ubuntu_dists_natty-security_restricted_binary-i386_Packages http://security.ubuntu.com/ubuntu/dists/natty-security/restricted/binary-i386/Packages.bz2
wget -O security.ubuntu.com_ubuntu_dists_natty-security_universe_binary-i386_Packages http://security.ubuntu.com/ubuntu/dists/natty-security/universe/binary-i386/Packages.bz2
wget -O security.ubuntu.com_ubuntu_dists_natty-security_multiverse_binary-i386_Packages http://security.ubuntu.com/ubuntu/dists/natty-security/multiverse/binary-i386/Packages.bz2
wget -O security.ubuntu.com_ubuntu_dists_natty-security_main_i18n_Index http://security.ubuntu.com/ubuntu/dists/natty-security/main/i18n/Index.bz2
wget -O security.ubuntu.com_ubuntu_dists_natty-security_multiverse_i18n_Index http://security.ubuntu.com/ubuntu/dists/natty-security/multiverse/i18n/Index.bz2
wget -O security.ubuntu.com_ubuntu_dists_natty-security_restricted_i18n_Index http://security.ubuntu.com/ubuntu/dists/natty-security/restricted/i18n/Index.bz2
wget -O security.ubuntu.com_ubuntu_dists_natty-security_universe_i18n_Index http://security.ubuntu.com/ubuntu/dists/natty-security/universe/i18n/Index.bz2
wget -O security.ubuntu.com_ubuntu_dists_natty-security_InRelease http://security.ubuntu.com/ubuntu/dists/natty-security/InRelease
wget -O cz.archive.ubuntu.com_ubuntu_dists_natty_main_source_Sources http://cz.archive.ubuntu.com/ubuntu/dists/natty/main/source/Sources.bz2
wget -O cz.archive.ubuntu.com_ubuntu_dists_natty_restricted_source_Sources http://cz.archive.ubuntu.com/ubuntu/dists/natty/restricted/source/Sources.bz2
wget -O cz.archive.ubuntu.com_ubuntu_dists_natty_universe_source_Sources http://cz.archive.ubuntu.com/ubuntu/dists/natty/universe/source/Sources.bz2
wget -O cz.archive.ubuntu.com_ubuntu_dists_natty_multiverse_source_Sources http://cz.archive.ubuntu.com/ubuntu/dists/natty/multiverse/source/Sources.bz2
wget -O cz.archive.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages http://cz.archive.ubuntu.com/ubuntu/dists/natty/main/binary-i386/Packages.bz2
wget -O cz.archive.ubuntu.com_ubuntu_dists_natty_restricted_binary-i386_Packages http://cz.archive.ubuntu.com/ubuntu/dists/natty/restricted/binary-i386/Packages.bz2
wget -O cz.archive.ubuntu.com_ubuntu_dists_natty_universe_binary-i386_Packages http://cz.archive.ubuntu.com/ubuntu/dists/natty/universe/binary-i386/Packages.bz2
wget -O cz.archive.ubuntu.com_ubuntu_dists_natty_multiverse_binary-i386_Packages http://cz.archive.ubuntu.com/ubuntu/dists/natty/multiverse/binary-i386/Packages.bz2
wget -O cz.archive.ubuntu.com_ubuntu_dists_natty_main_i18n_Index http://cz.archive.ubuntu.com/ubuntu/dists/natty/main/i18n/Index.bz2
wget -O cz.archive.ubuntu.com_ubuntu_dists_natty_multiverse_i18n_Index http://cz.archive.ubuntu.com/ubuntu/dists/natty/multiverse/i18n/Index.bz2
wget -O cz.archive.ubuntu.com_ubuntu_dists_natty_restricted_i18n_Index http://cz.archive.ubuntu.com/ubuntu/dists/natty/restricted/i18n/Index.bz2
wget -O cz.archive.ubuntu.com_ubuntu_dists_natty_universe_i18n_Index http://cz.archive.ubuntu.com/ubuntu/dists/natty/universe/i18n/Index.bz2
wget -O cz.archive.ubuntu.com_ubuntu_dists_natty_InRelease http://cz.archive.ubuntu.com/ubuntu/dists/natty/InRelease
wget -O cz.archive.ubuntu.com_ubuntu_dists_natty-updates_main_source_Sources http://cz.archive.ubuntu.com/ubuntu/dists/natty-updates/main/source/Sources.bz2
wget -O cz.archive.ubuntu.com_ubuntu_dists_natty-updates_restricted_source_Sources http://cz.archive.ubuntu.com/ubuntu/dists/natty-updates/restricted/source/Sources.bz2
wget -O cz.archive.ubuntu.com_ubuntu_dists_natty-updates_universe_source_Sources http://cz.archive.ubuntu.com/ubuntu/dists/natty-updates/universe/source/Sources.bz2
wget -O cz.archive.ubuntu.com_ubuntu_dists_natty-updates_multiverse_source_Sources http://cz.archive.ubuntu.com/ubuntu/dists/natty-updates/multiverse/source/Sources.bz2
wget -O cz.archive.ubuntu.com_ubuntu_dists_natty-updates_main_binary-i386_Packages http://cz.archive.ubuntu.com/ubuntu/dists/natty-updates/main/binary-i386/Packages.bz2
wget -O cz.archive.ubuntu.com_ubuntu_dists_natty-updates_restricted_binary-i386_Packages http://cz.archive.ubuntu.com/ubuntu/dists/natty-updates/restricted/binary-i386/Packages.bz2
wget -O cz.archive.ubuntu.com_ubuntu_dists_natty-updates_universe_binary-i386_Packages http://cz.archive.ubuntu.com/ubuntu/dists/natty-updates/universe/binary-i386/Packages.bz2
wget -O cz.archive.ubuntu.com_ubuntu_dists_natty-updates_multiverse_binary-i386_Packages http://cz.archive.ubuntu.com/ubuntu/dists/natty-updates/multiverse/binary-i386/Packages.bz2
wget -O cz.archive.ubuntu.com_ubuntu_dists_natty-updates_main_i18n_Index http://cz.archive.ubuntu.com/ubuntu/dists/natty-updates/main/i18n/Index.bz2
wget -O cz.archive.ubuntu.com_ubuntu_dists_natty-updates_multiverse_i18n_Index http://cz.archive.ubuntu.com/ubuntu/dists/natty-updates/multiverse/i18n/Index.bz2
wget -O cz.archive.ubuntu.com_ubuntu_dists_natty-updates_restricted_i18n_Index http://cz.archive.ubuntu.com/ubuntu/dists/natty-updates/restricted/i18n/Index.bz2
wget -O cz.archive.ubuntu.com_ubuntu_dists_natty-updates_universe_i18n_Index http://cz.archive.ubuntu.com/ubuntu/dists/natty-updates/universe/i18n/Index.bz2
wget -O cz.archive.ubuntu.com_ubuntu_dists_natty-updates_InRelease http://cz.archive.ubuntu.com/ubuntu/dists/natty-updates/InRelease
# zobrazení souboru stahovani
3. chmod +x stahovani
# tento příkaz udělá ze souboru stahovani spustitelný soubor
# Tento soubor přeneseme na počítač, který má přístup na internet a tam ho v nějakém rozumném adresáři spustíme:
4. ./stahovani
# v tomto kroku by se měli natahat všechny potřebné soubory
# jelikož jak už jsem řekl, online PC, který mám k dispozici disponuje pouze Windows XP, nainstaloval jsem si na něj program Cygwin (http://www.root.cz/clanky/cygwin-unix-ve-windows/), který mi umožní pod Windows spouštět skripty psané pro Bash.
ls
archive.canonical.com_ubuntu_dists_natty_InRelease
archive.canonical.com_ubuntu_dists_natty_partner_binary-i386_Packages
archive.canonical.com_ubuntu_dists_natty_partner_i18n_Index
cz.archive.ubuntu.com_ubuntu_dists_natty_InRelease
cz.archive.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages
cz.archive.ubuntu.com_ubuntu_dists_natty_main_i18n_Index
cz.archive.ubuntu.com_ubuntu_dists_natty_main_source_Sources
cz.archive.ubuntu.com_ubuntu_dists_natty_multiverse_binary-i386_Packages
cz.archive.ubuntu.com_ubuntu_dists_natty_multiverse_i18n_Index
cz.archive.ubuntu.com_ubuntu_dists_natty_multiverse_source_Sources
cz.archive.ubuntu.com_ubuntu_dists_natty_restricted_binary-i386_Packages
cz.archive.ubuntu.com_ubuntu_dists_natty_restricted_i18n_Index
cz.archive.ubuntu.com_ubuntu_dists_natty_restricted_source_Sources
cz.archive.ubuntu.com_ubuntu_dists_natty_universe_binary-i386_Packages
cz.archive.ubuntu.com_ubuntu_dists_natty_universe_i18n_Index
cz.archive.ubuntu.com_ubuntu_dists_natty_universe_source_Sources
cz.archive.ubuntu.com_ubuntu_dists_natty-updates_InRelease
cz.archive.ubuntu.com_ubuntu_dists_natty-updates_main_binary-i386_Packages
cz.archive.ubuntu.com_ubuntu_dists_natty-updates_main_i18n_Index
cz.archive.ubuntu.com_ubuntu_dists_natty-updates_main_source_Sources
cz.archive.ubuntu.com_ubuntu_dists_natty-updates_multiverse_binary-i386_Packages
cz.archive.ubuntu.com_ubuntu_dists_natty-updates_multiverse_i18n_Index
cz.archive.ubuntu.com_ubuntu_dists_natty-updates_multiverse_source_Sources
cz.archive.ubuntu.com_ubuntu_dists_natty-updates_restricted_binary-i386_Packages
cz.archive.ubuntu.com_ubuntu_dists_natty-updates_restricted_i18n_Index
cz.archive.ubuntu.com_ubuntu_dists_natty-updates_restricted_source_Sources
cz.archive.ubuntu.com_ubuntu_dists_natty-updates_universe_binary-i386_Packages
cz.archive.ubuntu.com_ubuntu_dists_natty-updates_universe_i18n_Index
cz.archive.ubuntu.com_ubuntu_dists_natty-updates_universe_source_Sources
extras.ubuntu.com_ubuntu_dists_natty_InRelease
extras.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages
extras.ubuntu.com_ubuntu_dists_natty_main_i18n_Index
extras.ubuntu.com_ubuntu_dists_natty_main_source_Sources
linky
Release.gpg
security.ubuntu.com_ubuntu_dists_natty-security_InRelease
security.ubuntu.com_ubuntu_dists_natty-security_main_binary-i386_Packages
security.ubuntu.com_ubuntu_dists_natty-security_main_i18n_Index
security.ubuntu.com_ubuntu_dists_natty-security_main_source_Sources
security.ubuntu.com_ubuntu_dists_natty-security_multiverse_binary-i386_Packages
security.ubuntu.com_ubuntu_dists_natty-security_multiverse_i18n_Index
security.ubuntu.com_ubuntu_dists_natty-security_multiverse_source_Sources
security.ubuntu.com_ubuntu_dists_natty-security_restricted_binary-i386_Packages
security.ubuntu.com_ubuntu_dists_natty-security_restricted_i18n_Index
security.ubuntu.com_ubuntu_dists_natty-security_restricted_source_Sources
security.ubuntu.com_ubuntu_dists_natty-security_universe_binary-i386_Packages
security.ubuntu.com_ubuntu_dists_natty-security_universe_i18n_Index
security.ubuntu.com_ubuntu_dists_natty-security_universe_source_Sources
stahovani
# zobrazení obsahu adresáře, kde se všechny soubory stáhnuly
# 5. těmito soubory přepíšeme soubory na počítači "off-line" v adresáři /var/lib/apt/lists
# abych mohl přepsat tyto soubory musím spustit nautilus s administrativními právy: za pomocí stisknutí kláves ALT+F2 a zadáme gksudo nautilus /var/lib/apt/lists
ls /var/lib/apt/lists
archive.canonical.com_ubuntu_dists_natty_InRelease
archive.canonical.com_ubuntu_dists_natty_partner_binary-i386_Packages
archive.canonical.com_ubuntu_dists_natty_partner_i18n_Index
cz.archive.ubuntu.com_ubuntu_dists_natty_InRelease
cz.archive.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages
cz.archive.ubuntu.com_ubuntu_dists_natty_main_i18n_Index
cz.archive.ubuntu.com_ubuntu_dists_natty_main_i18n_Translation-cs
cz.archive.ubuntu.com_ubuntu_dists_natty_main_source_Sources
cz.archive.ubuntu.com_ubuntu_dists_natty_multiverse_binary-i386_Packages
cz.archive.ubuntu.com_ubuntu_dists_natty_multiverse_i18n_Index
cz.archive.ubuntu.com_ubuntu_dists_natty_multiverse_i18n_Translation-cs
cz.archive.ubuntu.com_ubuntu_dists_natty_multiverse_source_Sources
cz.archive.ubuntu.com_ubuntu_dists_natty_Release
cz.archive.ubuntu.com_ubuntu_dists_natty_restricted_binary-i386_Packages
cz.archive.ubuntu.com_ubuntu_dists_natty_restricted_i18n_Index
cz.archive.ubuntu.com_ubuntu_dists_natty_restricted_i18n_Translation-cs
cz.archive.ubuntu.com_ubuntu_dists_natty_restricted_source_Sources
cz.archive.ubuntu.com_ubuntu_dists_natty_universe_binary-i386_Packages
cz.archive.ubuntu.com_ubuntu_dists_natty_universe_i18n_Index
cz.archive.ubuntu.com_ubuntu_dists_natty_universe_i18n_Translation-cs
cz.archive.ubuntu.com_ubuntu_dists_natty_universe_source_Sources
cz.archive.ubuntu.com_ubuntu_dists_natty-updates_InRelease
cz.archive.ubuntu.com_ubuntu_dists_natty-updates_main_binary-i386_Packages
cz.archive.ubuntu.com_ubuntu_dists_natty-updates_main_i18n_Index
cz.archive.ubuntu.com_ubuntu_dists_natty-updates_main_source_Sources
cz.archive.ubuntu.com_ubuntu_dists_natty-updates_multiverse_binary-i386_Packages
cz.archive.ubuntu.com_ubuntu_dists_natty-updates_multiverse_i18n_Index
cz.archive.ubuntu.com_ubuntu_dists_natty-updates_multiverse_source_Sources
cz.archive.ubuntu.com_ubuntu_dists_natty-updates_Release
cz.archive.ubuntu.com_ubuntu_dists_natty-updates_restricted_binary-i386_Packages
cz.archive.ubuntu.com_ubuntu_dists_natty-updates_restricted_i18n_Index
cz.archive.ubuntu.com_ubuntu_dists_natty-updates_restricted_source_Sources
cz.archive.ubuntu.com_ubuntu_dists_natty-updates_universe_binary-i386_Packages
cz.archive.ubuntu.com_ubuntu_dists_natty-updates_universe_i18n_Index
cz.archive.ubuntu.com_ubuntu_dists_natty-updates_universe_source_Sources
extras.ubuntu.com_ubuntu_dists_natty_InRelease
extras.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages
extras.ubuntu.com_ubuntu_dists_natty_main_i18n_Index
extras.ubuntu.com_ubuntu_dists_natty_main_source_Sources
extras.ubuntu.com_ubuntu_dists_natty_Release
lock
partial
Release.gpg
security.ubuntu.com_ubuntu_dists_natty-security_InRelease
security.ubuntu.com_ubuntu_dists_natty-security_main_binary-i386_Packages
security.ubuntu.com_ubuntu_dists_natty-security_main_i18n_Index
security.ubuntu.com_ubuntu_dists_natty-security_main_source_Sources
security.ubuntu.com_ubuntu_dists_natty-security_multiverse_binary-i386_Packages
security.ubuntu.com_ubuntu_dists_natty-security_multiverse_i18n_Index
security.ubuntu.com_ubuntu_dists_natty-security_multiverse_source_Sources
security.ubuntu.com_ubuntu_dists_natty-security_Release
security.ubuntu.com_ubuntu_dists_natty-security_restricted_binary-i386_Packages
security.ubuntu.com_ubuntu_dists_natty-security_restricted_i18n_Index
security.ubuntu.com_ubuntu_dists_natty-security_restricted_source_Sources
security.ubuntu.com_ubuntu_dists_natty-security_universe_binary-i386_Packages
security.ubuntu.com_ubuntu_dists_natty-security_universe_i18n_Index
security.ubuntu.com_ubuntu_dists_natty-security_universe_source_Sources[/color]
# po přepsání souborů vypíši seznam adresáře /var/lib/apt/lists
# poté spustím Správce balíků Synaptic, který vypíše hlášku
# Vyskytla se chyba
# Byly poskytnuty následující detaily:
# E: Nelze zpracovat soubor /var/lib/apt/lists/cz.archive.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages (1)
# E: Seznamy balíků nebo stavový soubor nemohly být zpracovány nebo otevřeny.
# E: _cache->open() failed, please report.
# myslím si, že je to způsobeno tím, že stažené soubory jsou komprimovány (ve formátu bz2)
# proto jsem se pokusil následující zkomprimované soubory dekomprimovat
archive.canonical.com_ubuntu_dists_natty_partner_binary-i386_Packages
cz.archive.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages
cz.archive.ubuntu.com_ubuntu_dists_natty_main_source_Sources
cz.archive.ubuntu.com_ubuntu_dists_natty_multiverse_binary-i386_Packages
cz.archive.ubuntu.com_ubuntu_dists_natty_multiverse_source_Sources
cz.archive.ubuntu.com_ubuntu_dists_natty_restricted_binary-i386_Packages
cz.archive.ubuntu.com_ubuntu_dists_natty_restricted_source_Sources
cz.archive.ubuntu.com_ubuntu_dists_natty_universe_binary-i386_Packages
cz.archive.ubuntu.com_ubuntu_dists_natty_universe_source_Sources
cz.archive.ubuntu.com_ubuntu_dists_natty-updates_main_binary-i386_Packages
cz.archive.ubuntu.com_ubuntu_dists_natty-updates_main_source_Sources
cz.archive.ubuntu.com_ubuntu_dists_natty-updates_multiverse_binary-i386_Packages
cz.archive.ubuntu.com_ubuntu_dists_natty-updates_multiverse_source_Sources
cz.archive.ubuntu.com_ubuntu_dists_natty-updates_restricted_binary-i386_Packages
cz.archive.ubuntu.com_ubuntu_dists_natty-updates_restricted_source_Sources
cz.archive.ubuntu.com_ubuntu_dists_natty-updates_universe_binary-i386_Packages
cz.archive.ubuntu.com_ubuntu_dists_natty-updates_universe_source_Sources
extras.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages
extras.ubuntu.com_ubuntu_dists_natty_main_source_Sources
security.ubuntu.com_ubuntu_dists_natty-security_main_binary-i386_Packages
security.ubuntu.com_ubuntu_dists_natty-security_main_source_Sources
security.ubuntu.com_ubuntu_dists_natty-security_multiverse_binary-i386_Packages
security.ubuntu.com_ubuntu_dists_natty-security_multiverse_source_Sources
security.ubuntu.com_ubuntu_dists_natty-security_restricted_binary-i386_Packages
security.ubuntu.com_ubuntu_dists_natty-security_restricted_source_Sources
security.ubuntu.com_ubuntu_dists_natty-security_universe_binary-i386_Packages
security.ubuntu.com_ubuntu_dists_natty-security_universe_source_Sources
tar -xjf *
tar: Toto pravděpodobně není tar archiv
tar: Přeskakuji na další hlavičku
tar: cz.archive.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages: V archivu nenalezen
tar: cz.archive.ubuntu.com_ubuntu_dists_natty_main_source_Sources: V archivu nenalezen
tar: cz.archive.ubuntu.com_ubuntu_dists_natty_multiverse_binary-i386_Packages: V archivu nenalezen
tar: cz.archive.ubuntu.com_ubuntu_dists_natty_multiverse_source_Sources: V archivu nenalezen
tar: cz.archive.ubuntu.com_ubuntu_dists_natty_restricted_binary-i386_Packages: V archivu nenalezen
tar: cz.archive.ubuntu.com_ubuntu_dists_natty_restricted_source_Sources: V archivu nenalezen
tar: cz.archive.ubuntu.com_ubuntu_dists_natty_universe_binary-i386_Packages: V archivu nenalezen
tar: cz.archive.ubuntu.com_ubuntu_dists_natty_universe_source_Sources: V archivu nenalezen
tar: cz.archive.ubuntu.com_ubuntu_dists_natty-updates_main_binary-i386_Packages: V archivu nenalezen
tar: cz.archive.ubuntu.com_ubuntu_dists_natty-updates_main_source_Sources: V archivu nenalezen
tar: cz.archive.ubuntu.com_ubuntu_dists_natty-updates_multiverse_binary-i386_Packages: V archivu nenalezen
tar: cz.archive.ubuntu.com_ubuntu_dists_natty-updates_multiverse_source_Sources: V archivu nenalezen
tar: cz.archive.ubuntu.com_ubuntu_dists_natty-updates_restricted_binary-i386_Packages: V archivu nenalezen
tar: cz.archive.ubuntu.com_ubuntu_dists_natty-updates_restricted_source_Sources: V archivu nenalezen
tar: cz.archive.ubuntu.com_ubuntu_dists_natty-updates_universe_binary-i386_Packages: V archivu nenalezen
tar: cz.archive.ubuntu.com_ubuntu_dists_natty-updates_universe_source_Sources: V archivu nenalezen
tar: extras.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages: V archivu nenalezen
tar: extras.ubuntu.com_ubuntu_dists_natty_main_source_Sources: V archivu nenalezen
tar: security.ubuntu.com_ubuntu_dists_natty-security_main_binary-i386_Packages: V archivu nenalezen
tar: security.ubuntu.com_ubuntu_dists_natty-security_main_source_Sources: V archivu nenalezen
tar: security.ubuntu.com_ubuntu_dists_natty-security_multiverse_binary-i386_Packages: V archivu nenalezen
tar: security.ubuntu.com_ubuntu_dists_natty-security_multiverse_source_Sources: V archivu nenalezen
tar: security.ubuntu.com_ubuntu_dists_natty-security_restricted_binary-i386_Packages: V archivu nenalezen
tar: security.ubuntu.com_ubuntu_dists_natty-security_restricted_source_Sources: V archivu nenalezen
tar: security.ubuntu.com_ubuntu_dists_natty-security_universe_binary-i386_Packages: V archivu nenalezen
tar: security.ubuntu.com_ubuntu_dists_natty-security_universe_source_Sources: V archivu nenalezen
tar: Končí se chybovým kódem, protože byly zaznamenány chyby
# příkazem tar -xjf * se mi tyto soubory nepodařilo rozbalit
bzip2 -d *
bzip2: Can't guess original name for archive.canonical.com_ubuntu_dists_natty_partner_binary-i386_Packages -- using archive.canonical.com_ubuntu_dists_natty_partner_binary-i386_Packages.out
bzip2: Can't guess original name for cz.archive.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages -- using cz.archive.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages.out
bzip2: Can't guess original name for cz.archive.ubuntu.com_ubuntu_dists_natty_main_source_Sources -- using cz.archive.ubuntu.com_ubuntu_dists_natty_main_source_Sources.out
bzip2: Can't guess original name for cz.archive.ubuntu.com_ubuntu_dists_natty_multiverse_binary-i386_Packages -- using cz.archive.ubuntu.com_ubuntu_dists_natty_multiverse_binary-i386_Packages.out
bzip2: Can't guess original name for cz.archive.ubuntu.com_ubuntu_dists_natty_multiverse_source_Sources -- using cz.archive.ubuntu.com_ubuntu_dists_natty_multiverse_source_Sources.out
bzip2: Can't guess original name for cz.archive.ubuntu.com_ubuntu_dists_natty_restricted_binary-i386_Packages -- using cz.archive.ubuntu.com_ubuntu_dists_natty_restricted_binary-i386_Packages.out
bzip2: Can't guess original name for cz.archive.ubuntu.com_ubuntu_dists_natty_restricted_source_Sources -- using cz.archive.ubuntu.com_ubuntu_dists_natty_restricted_source_Sources.out
bzip2: Can't guess original name for cz.archive.ubuntu.com_ubuntu_dists_natty_universe_binary-i386_Packages -- using cz.archive.ubuntu.com_ubuntu_dists_natty_universe_binary-i386_Packages.out
bzip2: Can't guess original name for cz.archive.ubuntu.com_ubuntu_dists_natty_universe_source_Sources -- using cz.archive.ubuntu.com_ubuntu_dists_natty_universe_source_Sources.out
bzip2: Can't guess original name for cz.archive.ubuntu.com_ubuntu_dists_natty-updates_main_binary-i386_Packages -- using cz.archive.ubuntu.com_ubuntu_dists_natty-updates_main_binary-i386_Packages.out
bzip2: Can't guess original name for cz.archive.ubuntu.com_ubuntu_dists_natty-updates_main_source_Sources -- using cz.archive.ubuntu.com_ubuntu_dists_natty-updates_main_source_Sources.out
bzip2: Can't guess original name for cz.archive.ubuntu.com_ubuntu_dists_natty-updates_multiverse_binary-i386_Packages -- using cz.archive.ubuntu.com_ubuntu_dists_natty-updates_multiverse_binary-i386_Packages.out
bzip2: Can't guess original name for cz.archive.ubuntu.com_ubuntu_dists_natty-updates_multiverse_source_Sources -- using cz.archive.ubuntu.com_ubuntu_dists_natty-updates_multiverse_source_Sources.out
bzip2: Can't guess original name for cz.archive.ubuntu.com_ubuntu_dists_natty-updates_restricted_binary-i386_Packages -- using cz.archive.ubuntu.com_ubuntu_dists_natty-updates_restricted_binary-i386_Packages.out
bzip2: Can't guess original name for cz.archive.ubuntu.com_ubuntu_dists_natty-updates_restricted_source_Sources -- using cz.archive.ubuntu.com_ubuntu_dists_natty-updates_restricted_source_Sources.out
bzip2: Can't guess original name for cz.archive.ubuntu.com_ubuntu_dists_natty-updates_universe_binary-i386_Packages -- using cz.archive.ubuntu.com_ubuntu_dists_natty-updates_universe_binary-i386_Packages.out
bzip2: Can't guess original name for cz.archive.ubuntu.com_ubuntu_dists_natty-updates_universe_source_Sources -- using cz.archive.ubuntu.com_ubuntu_dists_natty-updates_universe_source_Sources.out
bzip2: Can't guess original name for extras.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages -- using extras.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages.out
bzip2: Can't guess original name for extras.ubuntu.com_ubuntu_dists_natty_main_source_Sources -- using extras.ubuntu.com_ubuntu_dists_natty_main_source_Sources.out
bzip2: Can't guess original name for security.ubuntu.com_ubuntu_dists_natty-security_main_binary-i386_Packages -- using security.ubuntu.com_ubuntu_dists_natty-security_main_binary-i386_Packages.out
bzip2: Can't guess original name for security.ubuntu.com_ubuntu_dists_natty-security_main_source_Sources -- using security.ubuntu.com_ubuntu_dists_natty-security_main_source_Sources.out
bzip2: Can't guess original name for security.ubuntu.com_ubuntu_dists_natty-security_multiverse_binary-i386_Packages -- using security.ubuntu.com_ubuntu_dists_natty-security_multiverse_binary-i386_Packages.out
bzip2: Can't guess original name for security.ubuntu.com_ubuntu_dists_natty-security_multiverse_source_Sources -- using security.ubuntu.com_ubuntu_dists_natty-security_multiverse_source_Sources.out
bzip2: Can't guess original name for security.ubuntu.com_ubuntu_dists_natty-security_restricted_binary-i386_Packages -- using security.ubuntu.com_ubuntu_dists_natty-security_restricted_binary-i386_Packages.out
bzip2: Can't guess original name for security.ubuntu.com_ubuntu_dists_natty-security_restricted_source_Sources -- using security.ubuntu.com_ubuntu_dists_natty-security_restricted_source_Sources.out
bzip2: Can't guess original name for security.ubuntu.com_ubuntu_dists_natty-security_universe_binary-i386_Packages -- using security.ubuntu.com_ubuntu_dists_natty-security_universe_binary-i386_Packages.out
bzip2: Can't guess original name for security.ubuntu.com_ubuntu_dists_natty-security_universe_source_Sources -- using security.ubuntu.com_ubuntu_dists_natty-security_universe_source_Sources.out
# pokusil jsem se tedy rozbalit soubory příkazem bzip2 -d *
# tento příkaz mi sice soubory rozbalí, ale zase mi k nim přidá přípomu .out
Může mi někdo poradit, jak vytvořit skript pro stahování tak, aby se mi nestáhli komprimované soubory, ale již přímo rozbalené soubory? A nebo jakým příkazem mám tyto soubory rozbalit, aby se mi zachovaly původní názvy souborů a Synaptic mi tyto soubory přečetl? A nebo jakým příkazem můžu hromadně soubory přejmenovat (odstranit příponu .out?
Když se přes tento problém přenesu, myslím si že už nebude težké do adresáře /var/lib/apt/lists soubory s aktuálním seznamem programů nakopírovat a poté spustit Synaptic, který by měl odtud aktuální seznam přečíst a kliknutím na aktualizovat vše označit všechen software k aktualizaci a poté si vygeberovat skript pro stažení a tento skript spustit na online PC, kterými všechny potřebné balíčky stáhne a já je poté na offline PC můžu do Synapticu přetáhnout a nainstalovat.
Doufám, že jsem vás moc nezahltil a za případnou odpověď budu strašně moc rád :)