Есть такая проблема, на моём ноутбуке стоит Ubuntu, подключения к Интернету нет. Есть другой компьютер, не мой, на нём стоит WinXP, есть
выход в Интернет. Так вот, мне нужно на компьютере с Интернетом скачать пакеты, а потом установить в Ubuntu. Проблема в том, что пакетов
много и качать их вручную по-одному не особо хочется. Читал что можно это реализовать с помощью wget для windows, для этого в Synaptic
нужно сгенерировать скрипт установки зависимостей, потом его можо использовать для получения необходимых пакетов на другой машине. Wget для
Windows я уже установил, Synaptic-om установочный скрипт сгенерировал, как дальше его использовать на Win машине?
Вот так выглядит сгенерированный скрипт Synapti-com:
#!/bin/sh
wget -c http://archive.offensive-security.com/pool/main/libv/libvisual/libvisual-0.4-0_0.4.0-2.1+build1_i386.deb
wget -c
http://archive.offensive-security.com/pool/main/g/gst-plugins-base0.10/gstreamer0.10-plugins-base_0.10.21-3ubuntu0.1_i386.deb
wget -c
http://archive.offensive-security.com/pool/main/libs/libsoup2.4/libsoup2.4-1_2.24.1-0ubuntu1_i386.deb
wget -c
http://archive.offensive-security.com/pool/main/libv/libv4l/libv4l-0_0.5.7-1~intrepid1_i386.deb
wget -c
http://archive.offensive-security.com/pool/main/w/wavpack/libwavpack1_4.50.0-1_i386.deb
wget -c
http://archive.offensive-security.com/pool/main/g/gst-plugins-good0.10/gstreamer0.10-plugins-good_0.10.10.4-1ubuntu1.2_i386.deb
wget -c
http://archive.offensive-security.com/pool/main/g/gst-plugins-base0.10/gstreamer0.10-x_0.10.21-3ubuntu0.1_i386.deb
wget -c
http://archive.offensive-security.com/pool/main/g/gvfs/libgvfscommon0_1.0.2-0ubuntu3_i386.deb
wget -c
http://archive.offensive-security.com/pool/main/g/gvfs/gvfs_1.0.2-0ubuntu3_i386.deb
wget -c
http://archive.offensive-security.com/pool/main/liba/libarchive/libarchive1_2.4.17-2_i386.deb
wget -c
http://archive.offensive-security.com/pool/main/libc/libcdio/libcdio-cdda0_0.78.2+dfsg1-3_i386.deb
wget -c
http://archive.offensive-security.com/pool/main/libc/libcdio/libcdio-paranoia0_0.78.2+dfsg1-3_i386.deb
wget -c
http://archive.offensive-security.com/pool/main/g/gvfs/gvfs-backends_1.0.2-0ubuntu3_i386.deb
wget -c
http://archive.offensive-security.com/pool/main/k/kdebase-runtime/kde-icons-oxygen_4.1.4-0ubuntu1~intrepid1.1_all.deb
wget -c
http://archive.offensive-security.com/pool/main/p/phonon/libphonon4_4.2.0-0ubuntu1_i386.deb
wget -c
http://archive.offensive-security.com/pool/main/c/clucene-core/libclucene0ldbl_0.9.20-3_i386.deb
wget -c
http://archive.offensive-security.com/pool/main/r/raptor/libraptor1_1.4.17-1_i386.deb
wget -c
http://archive.offensive-security.com/pool/main/r/rasqal/librasqal0_0.9.15-2_i386.deb
wget -c
http://archive.offensive-security.com/pool/main/r/redland/librdf0_1.0.7-1_i386.deb
wget -c
http://archive.offensive-security.com/pool/main/s/soprano/soprano-daemon_2.1.1+dfsg.1-0ubuntu1_i386.deb
wget -c
http://archive.offensive-security.com/pool/main/s/soprano/libsoprano4_2.1.1+dfsg.1-0ubuntu1_i386.deb
wget -c
http://archive.offensive-security.com/pool/main/s/strigi/libstreams0_0.5.11-1ubuntu2_i386.deb
wget -c
http://archive.offensive-security.com/pool/main/s/strigi/libstreamanalyzer0_0.5.11-1ubuntu2_i386.deb
wget -c
http://archive.offensive-security.com/pool/main/q/qt4-x11/libqt4-opengl_4.4.3-0ubuntu1.2_i386.deb
wget -c
http://archive.offensive-security.com/pool/main/p/phonon/phonon-backend-gstreamer_4.2.0-0ubuntu1_i386.deb
wget -c
http://archive.offensive-security.com/pool/main/p/phonon/phonon_4.2.0-0ubuntu1_all.deb
wget -c
http://archive.offensive-security.com/pool/main/k/kde4libs/kdelibs5-data_4.1.4-0ubuntu1~intrepid1.1_all.deb
wget -c
http://archive.offensive-security.com/pool/main/k/kde4libs/kdelibs-bin_4.1.4-0ubuntu1~intrepid1.1_i386.deb
wget -c
http://archive.offensive-security.com/pool/main/k/kde4libs/kdelibs5_4.1.4-0ubuntu1~intrepid1.1_i386.deb
wget -c
http://archive.offensive-security.com/pool/main/s/strigi/libstrigiqtdbusclient0_0.5.11-1ubuntu2_i386.deb
wget -c
http://archive.offensive-security.com/pool/main/k/kdebase-runtime/kdebase-runtime-bin-kde4_4.1.4-0ubuntu1~intrepid1.1_i386.deb
wget -c
http://archive.offensive-security.com/pool/main/k/kdebase-runtime/kdebase-runtime-data-common_4.1.4-0ubuntu1~intrepid1.1_all.deb
wget -c
http://archive.offensive-security.com/pool/main/k/kdebase-runtime/kdebase-runtime-data_4.1.4-0ubuntu1~intrepid1.1_all.deb
wget -c
http://archive.offensive-security.com/pool/main/k/kdebase-runtime/kdebase-runtime_4.1.4-0ubuntu1~intrepid1.1_i386.deb
wget -c
http://archive.offensive-security.com/pool/main/k/kdebase-runtime/khelpcenter4_4.1.4-0ubuntu1~intrepid1.1_i386.deb
wget -c
http://archive.offensive-security.com/pool/universe/k/krusader/krusader_2.0~svn6078-1ubuntu1_i386.deb
wget -c
http://archive.offensive-security.com/pool/main/libv/libvisual-plugins/libvisual-0.4-plugins_0.4.0.dfsg.1-2ubuntu4_i386.deb
wget -c
http://archive.offensive-security.com/pool/main/o/obex-data-server/obex-data-server_0.3.4+svn1951-0ubuntu1_i386.deb
wget -c
http://archive.offensive-security.com/pool/main/r/raptor/raptor-utils_1.4.17-1_i386.deb
wget -c
http://archive.offensive-security.com/pool/main/r/redland/redland-utils_1.0.7-1_i386.deb
P.S. В той статье ещё упоминался скрипт,вроде на pythone, он как-то это всё автоматизировал на Windows
Пользователь решил продолжить мысль 26 Июля 2009, 14:04:29:
Вот, нашел я то HOWTO , но я не могу понять как пользоваться этип скриптом -downloadscript2html.py и это "In Windows: see here.
2. Generate an html page and download the packages from your browser" как это сгенерировать html страницу в браузере?
--------------------------------------------------
HOWTO: Download package dependencies for offline installation
Have you ever been into trying to install a package in a computer that is not connected to the network? Keep reading to find solutions to this problem.
Follow these Steps:
1. Find out what packages have to be downloaded
Case 1: You have a recent synaptic version.
The first step would be to open Synaptic and select the package(s) you want to install. Then go to File -> Generate package download script and save it naming it as you want (herein referred as download_script_file).
Case 2: You don't have a recent synaptic version or you are not using any window manager.
Use grabpackages.py (attached). Type python grabpackages.py -h to see the help. This is the command you would use to download Inkscape and its dependencies:
Code:
python grabpackages.py -o download_script_file inkscape
Now take download_script_file to the computer with internet access.
2. Download the packages
Case 1: The computer with internet access has a linux OS with wget installed.
Open a terminal and cd to a suitable directory (e.g. cd /tmp).
Create a directory to download the packages and cd into it:
Code:
mkdir packages_dir
cd packages_dir
Copy download_script_file into this directory and execute it:
Code:
sh download_script_file
The script begins to download the files using wget.
Case 2: You have a Windows/Linux box but wget is not installed.
You could try one of these:
1. Install wget
In Debian/Ubuntu:
Code:
sudo apt-get install wget
In Redhat/Fedora:
Code:
yum install wget
In Windows: see here.
2. Generate an html page and download the packages from your browser
If you already have the download script file generated by synaptic, the easiest way is to use downloadscript2html.py (attached):
Code:
python downloadscript2html.py download_script_file download_page.html
If not, grabpackages.py (attached) will work too (using the --html option). Revisiting the Inkscape example:
Code:
python grabpackages.py --html -o download_page.html inkscape
Now open download_page.html in your browser and download the linked files in your download directory (here a download accelerator like DownThemAll is very useful, specially with large files).
3. Copy the packages to your PC
Copy the .deb files you downloaded to /var/cache/apt/archives:
From the directory where the .deb files are stored type:
Code:
sudo cp *.deb /var/cache/apt/archives
or start Nautilus as root and copy the files in the usual way.
4. Install the packages
Just open a terminal and type
Code:
sudo apt-get install <package_name(s)>
replacing <package_name(s)> with the name(s) of the program(s) you wanted to install (E.g. inkscape).
This should be pretty much everything.
Note:
The attached scripts are written in Python. In some systems Python is not installed by default. See
http://www.python.org/download/ to solve this.