Модераторы: ZeeLax, powerfox
  

Поиск:

Ответ в темуСоздание новой темы Создание опроса
> debian apt 
V
    Опции темы
Loki
Дата 15.7.2008, 12:50 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Бывалый
*


Профиль
Группа: Участник
Сообщений: 244
Регистрация: 9.7.2006

Репутация: нет
Всего: нет



соорудил локальный репозиторий из пакэджей..
#dpkg-scanpackages deb /dev/null | gzip -9c > deb/Packages.gz 
# cat /etc/apt/sources.list
deb file:/var/cache/apt/archives deb/
при любой инстляции вот такое....
Код

# aptitude install gui-apt-key
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
Building tag database... Done
Couldn't find any package whose name or description matched "gui-apt-key"
The following packages are BROKEN:
  iceweasel-gnome-support libc6-dev libvcdinfo0 libwxbase2.8-0 libwxgtk2.8-0 mkinitrd-cd stardict vlc vlc-nox
The following packages have been kept back:
  cpio firefox iceweasel libcurl3 libcurl3-gnutls libgnutls13 libpcre3
0 packages upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
The following packages have unmet dependencies:
  mkinitrd-cd: Depends: dosfstools which is a virtual package.
               Depends: syslinux (>= 2.00-1) which is a virtual package.
               Depends: uclibc-toolchain (>= 0.9.26-1) which is a virtual package.
               Depends: libuclibc-dev (>= 0.9.26-1) which is a virtual package.
  libwxgtk2.8-0: Depends: libatk1.0-0 (>= 1.13.1) but 1.12.4-3 is installed.
                 Depends: libc6 (>= 2.5-0ubuntu1) but 2.3.6.ds1-13etch5 is installed.
                 Depends: libgcc1 (>= 1:4.1.2) but 1:4.1.1-21 is installed.
                 Depends: libglib2.0-0 (>= 2.12.9) but 2.12.4-2 is installed.
                 Depends: libgstreamer-plugins-base0.10-0 (>= 0.10.12) but 0.10.10-4 is installed.
                 Depends: libgstreamer0.10-0 (>= 0.10.12) but 0.10.10-3 is installed.
                 Depends: libgtk2.0-0 (>= 2.10.3) but 2.8.20-7 is installed.
                 Depends: libpango1.0-0 (>= 1.16.2) but 1.14.8-5 is installed.
                 Depends: libstdc++6 (>= 4.1.2) but 4.1.1-21 is installed.
                 Depends: libxrandr2 (>= 2:1.2.0) but 2:1.1.0.2-5 is installed.
  stardict: Depends: libart-2.0-2 (>= 2.3.18) but 2.3.17-1 is installed.
            Depends: libatk1.0-0 (>= 1.13.2) but 1.12.4-3 is installed.
            Depends: libbonobo2-0 (>= 2.15.0) but 2.14.0-3 is installed.
            Depends: libbonoboui2-0 (>= 2.15.1) but 2.14.0-5 is installed.
            Depends: libc6 (>= 2.6-1) but 2.3.6.ds1-13etch5 is installed.
            Depends: libcairo2 (>= 1.4.0) but 1.2.4-4.1+etch1 is installed.
            Depends: libespeak1 (>= 1.27) which is a virtual package.
            Depends: libfreetype6 (>= 2.3.5) but 2.2.1-5+etch2 is installed.
            Depends: libgcc1 (>= 1:4.2.1) but 1:4.1.1-21 is installed.
            Depends: libglib2.0-0 (>= 2.14.0) but 2.12.4-2 is installed.
            Depends: libgnome2-0 (>= 2.17.3) but 2.16.0-2 is installed.
            Depends: libgnomeui-0 (>= 2.19.1) but 2.14.1-2 is installed.
            Depends: libgnomevfs2-0 (>= 1:2.17.90) but 1:2.14.2-7 is installed.
            Depends: libgtk2.0-0 (>= 2.12.0) but 2.8.20-7 is installed.
            Depends: libgucharmap6 which is a virtual package.
            Depends: liborbit2 (>= 1:2.14.8) but 1:2.14.3-0.2 is installed.
            Depends: libpango1.0-0 (>= 1.18.2) but 1.14.8-5 is installed.
            Depends: libstdc++6 (>= 4.2.1) but 4.1.1-21 is installed.
            Depends: libxcomposite1 (>= 1:0.3-1) which is a virtual package.
            Depends: libxdamage1 (>= 1:1.1) but 1:1.0.3-3 is installed.
            Depends: libxrandr2 (>= 2:1.2.0) but 2:1.1.0.2-5 is installed.
            Depends: zlib1g (>= 1:1.2.3.3.dfsg-1) but 1:1.2.3-13 is installed.
  vlc-nox: Depends: libavformat0d (>= 0.cvs20060823) which is a virtual package.
           Depends: libdc1394-13 which is a virtual package.
           Depends: libfribidi0 (>= 0.10.7) which is a virtual package.
           Depends: libiso9660-4 which is a virtual package.
           Depends: libmpcdec3 which is a virtual package.
  libwxbase2.8-0: Depends: libc6 (>= 2.5-0ubuntu1) but 2.3.6.ds1-13etch5 is installed.
                  Depends: libgcc1 (>= 1:4.1.2) but 1:4.1.1-21 is installed.
                  Depends: libstdc++6 (>= 4.1.2) but 4.1.1-21 is installed.
  vlc: Depends: libfribidi0 (>= 0.10.7) which is a virtual package.
       Depends: libiso9660-4 which is a virtual package.
       Depends: libwxgtk2.6-0 (>= 2.6.3.2.1.5) which is a virtual package.
  iceweasel-gnome-support: Depends: iceweasel (= 2.0.0.14-0etch1) but 2.0.0.3-1 is installed and it is kept back.
  libc6-dev: Depends: libc6 (= 2.3.6.ds1-13etch2) but 2.3.6.ds1-13etch5 is installed.
  libvcdinfo0: Depends: libiso9660-4 which is a virtual package.
Resolving dependencies...
W: Couldn't stat source package list file: deb/ Packages (/var/lib/apt/lists/_var_cache_apt_archives_deb_Packages) - stat (2 No such file or directory)
W: You may want to update the package lists to correct these missing files
E: Archive directory /var/cache/apt/archives/partial is missing.
The following actions will resolve these dependencies:

Remove the following packages:
build-essential
codeblocks
codeblocks-contrib
codeblocks-dbg
codeblocks-dev
codelite
g++
g++-4.1
gcc
gcc-4.1
libc6-dev
libcdk5-dev
libcodeblocks0
libmudflap0-dev
libncurses5-dev
libncursesw5-dev
libstdc++6-4.1-dev
libvcdinfo0
libwxbase2.8-0
libwxgtk2.8-0
libwxsmithlib0
libwxsmithlib0-dev
mkinitrd-cd
stardict
vlc
vlc-nox

Upgrade the following packages:
firefox [2.0.0.3-1 (now) -> 2.0.0.14-0etch1 (stable)]
iceweasel [2.0.0.3-1 (now) -> 2.0.0.14-0etch1 (stable)]

Leave the following dependencies unresolved:
dpkg-dev recommends gcc | c-compiler
Score is -8665

Accept this solution? [Y/n/q/?] Y
WARNING: untrusted versions of the following packages will be installed!

Untrusted packages could compromise your system's security.
You should only proceed with the installation if you are certain that
this is what you want to do.

  firefox iceweasel

Do you want to ignore this warning and proceed anyway?
To continue, enter "Yes"; to abort, enter "No": Yes
The following packages are unused and will be REMOVED:
  libssp0 linux-kernel-headers
The following packages will be automatically REMOVED:
  build-essential codeblocks codeblocks-contrib codeblocks-dbg codeblocks-dev codelite g++ g++-4.1 gcc gcc-4.1 libc6-dev libcdk5-dev libcodeblocks0
  libmudflap0-dev libncurses5-dev libncursesw5-dev libstdc++6-4.1-dev libvcdinfo0 libwxbase2.8-0 libwxgtk2.8-0 libwxsmithlib0 libwxsmithlib0-dev
  mkinitrd-cd stardict vlc vlc-nox
The following packages have been kept back:
  cpio libcurl3 libcurl3-gnutls libgnutls13 libpcre3
The following packages will be REMOVED:
  build-essential codeblocks codeblocks-contrib codeblocks-dbg codeblocks-dev codelite g++ g++-4.1 gcc gcc-4.1 libc6-dev libcdk5-dev libcodeblocks0
  libmudflap0-dev libncurses5-dev libncursesw5-dev libstdc++6-4.1-dev libvcdinfo0 libwxbase2.8-0 libwxgtk2.8-0 libwxsmithlib0 libwxsmithlib0-dev
  mkinitrd-cd stardict vlc vlc-nox
The following packages will be upgraded:
  firefox iceweasel
2 packages upgraded, 0 newly installed, 28 to remove and 5 not upgraded.
Need to get 0B of archives. After unpacking 143MB will be freed.
Do you want to continue? [Y/n/?] Y
WARNING: untrusted versions of the following packages will be installed!

Untrusted packages could compromise your system's security.
You should only proceed with the installation if you are certain that
this is what you want to do.

  firefox iceweasel

Do you want to ignore this warning and proceed anyway?
To continue, enter "Yes"; to abort, enter "No": Yes
Writing extended state information... Error!
E: Archive directory /var/cache/apt/archives/partial is missing.
E: Couldn't lock list directory..are you root?


Это сообщение отредактировал(а) Loki - 15.7.2008, 16:15
PM MAIL   Вверх
ZeeLax
Дата 15.7.2008, 13:53 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Эксперт
****


Профиль
Группа: Модератор
Сообщений: 4388
Регистрация: 20.8.2006
Где: Алма-Ата

Репутация: 7
Всего: 88



Так, для начала - перепишите нормально пост.


--------------------
Utility is when you have one telephone, luxury is when you have two, opulence is when you have three — and paradise is when you have none.
— Doug Larson
PM MAIL WWW ICQ Skype Jabber   Вверх
Loki
Дата 15.7.2008, 16:20 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Бывалый
*


Профиль
Группа: Участник
Сообщений: 244
Регистрация: 9.7.2006

Репутация: нет
Всего: нет



менял в конфиге
deb file:///var/cache/apt/archives deb/
что еще может занять пакеты?
# ps aux | grep synaptic
root     30924  0.0  0.0   2852   708 pts/3    S+   19:44   0:00 grep synaptic
PM MAIL   Вверх
JackYF
Дата 15.7.2008, 18:32 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


полуавантюрист
****


Профиль
Группа: Участник
Сообщений: 5814
Регистрация: 28.8.2004
Где: страна тысячи озё р

Репутация: 3
Всего: 162



Цитата(Loki @  15.7.2008,  11:50 Найти цитируемый пост)
соорудил локальный репозиторий из пакэджей..

Из каких?


--------------------
Пожаловаться на меня как модератора можно здесь.
PM MAIL Jabber   Вверх
Loki
Дата 16.7.2008, 12:32 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Бывалый
*


Профиль
Группа: Участник
Сообщений: 244
Регистрация: 9.7.2006

Репутация: нет
Всего: нет



Цитата

Из каких? 

*.deb
создал таки индекс, положил его в 
/var/lib/apt/lists/_var_cache_apt_archives_deb_Packages

# aptitude install codelite
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
Building tag database... Done
No candidate version found for codelite
The following packages have been kept back:
  cpio libcurl3 libcurl3-gnutls libgnutls13 libpcre3
0 packages upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done

PM MAIL   Вверх
JackYF
Дата 16.7.2008, 13:53 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


полуавантюрист
****


Профиль
Группа: Участник
Сообщений: 5814
Регистрация: 28.8.2004
Где: страна тысячи озё р

Репутация: 3
Всего: 162



Цитата(Loki @  16.7.2008,  11:32 Найти цитируемый пост)
*.deb

deb'ы бывают разные. Из какого набора ты создал? Как ты проверил его на полноту?


--------------------
Пожаловаться на меня как модератора можно здесь.
PM MAIL Jabber   Вверх
Loki
Дата 16.7.2008, 15:54 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Бывалый
*


Профиль
Группа: Участник
Сообщений: 244
Регистрация: 9.7.2006

Репутация: нет
Всего: нет



Цитата

deb'ы бывают разные. Из какого набора ты создал? Как ты проверил его на полноту? 

слил 2, 3 и апдейтный ДВД.
там было куча каталогов, я их слил все в один.
а как проверить?


вот попробовал из и-нета уже вытянуть...
прописал в конфиге...
Код

deb http://security.debian.org/ stable/updates main contrib non-free
deb http://security.debian.org/ testing/updates main contrib non-free
deb http://deb.opera.com/opera/ etch non-free
deb http://getswiftfox.com/builds/debian/ unstable non-free
deb http://download.skype.com/linux/repos/debian/ stable non-free
deb http://ftp.us.debian.org/debian/ stable main non-free contrib
deb-src http://ftp.us.debian.org/debian/ stable main non-free contrib
deb http://ftp.us.debian.org/debian/ testing main non-free contrib
deb-src http://ftp.us.debian.org/debian/ testing main non-free contrib
deb http://non-us.debian.org/debian-non-US/ stable/non-US main contrib non-free
deb-src http://non-us.debian.org/debian-non-US/ stable/non-US main contrib non-free
deb http://www.debian-multimedia.org/ stable main
deb http://www.debian-multimedia.org/ testing main
deb http://www.virtualbox.org/debian/ etch non-free
deb http://volatile.debian.org/debian-volatile/ etch/volatile main contrib non-free
deb http://cp.yi.org/apt/hibernate/ ./
deb http://apt.wxwidgets.org/ etch-wx main
deb-src http://apt.wxwidgets.org/ etch-wx main
# deb http://ftp.debian-unofficial.org/debian/ stable main contrib non-free restricted
# deb-src http://ftp.debian-unofficial.org/debian/ stable main contrib non-free restricted
deb http://dl.google.com/linux/deb/ stable non-free
deb http://security.debian.org/ etch/updates main contrib
deb-src http://security.debian.org/ etch/updates main contrib

сделал
 apt-get update
какие-то были не доступны
W: Couldn't stat source package list http://security.debian.org stable/updates/main Packages (/var/lib/apt/lists/security.debian.org_dists_stable_updates_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://security.debian.org stable/updates/contrib Packages (/var/lib/apt/lists/security.debian.org_dists_stable_updates_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://security.debian.org stable/updates/non-free Packages (/var/lib/apt/lists/security.debian.org_dists_stable_updates_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://security.debian.org testing/updates/main Packages (/var/lib/apt/lists/security.debian.org_dists_testing_updates_main_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Some index files failed to download, they have been ignored, or old ones used instead.
в итоге получил ошибку, но решил таки попробовать что-нибуть поставить....
Код

# aptitude install gui-apt-key
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
Building tag database... Done
Couldn't find any package whose name or description matched "gui-apt-key"
The following packages have been kept back:
  cpio libcurl3 libcurl3-gnutls libgnutls13 libpcre3
0 packages upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
W: Couldn't stat source package list http://security.debian.org stable/updates/main Packages (/var/lib/apt/lists/security.debian.org_dists_stable_updates_main_binary-i386_Packages) - stat (2 No such file or directory)
.....итд...
W: Couldn't stat source package list http://cp.yi.org ./ Packages (/var/lib/apt/lists/cp.yi.org_apt_hibernate_._Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://apt.wxwidgets.org etch-wx/main Packages (/var/lib/apt/lists/apt.wxwidgets.org_dists_etch-wx_main_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to update the package lists to correct these missing files

К стати, а почему когда я только добавил сидюк в apt, то он сразу размонтировался?
echo '/usr/debian-40r3-i386-DVD-2.iso /mnt/cdrom2 iso9660 user,loop 0 0' >> /etc/fstab
mount -o loop -t iso9660 /usr/debian-40r3-i386-DVD-2.iso /mnt/cdrom2
apt-cdrom -d=/mnt/cdrom2 add
и такое если поставить удачно\не удачно любой пакет, тоже размонтируется и просит его втавить по новое если он опять нужен...


Это сообщение отредактировал(а) Loki - 16.7.2008, 16:09
PM MAIL   Вверх
bilbobagginz
Дата 16.7.2008, 18:41 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Naughtius Maximus
****


Профиль
Группа: Экс. модератор
Сообщений: 8813
Регистрация: 2.3.2004
Где: Israel

Репутация: 28
Всего: 317



у тебя нарушена структура каталогов. поэтому может быть удобнее будет использовать apt-proxy




--------------------
Я ещё не демон. Я только учусь.
PM WWW   Вверх
Loki
Дата 18.7.2008, 14:17 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Бывалый
*


Профиль
Группа: Участник
Сообщений: 244
Регистрация: 9.7.2006

Репутация: нет
Всего: нет



победил вот таким вот скриптом.
Код

#!/bin/bash
dpkg-scanpackages . /dev/null > Packages
cat > Release <<END
Archive: dapper
Origin: Ubuntu
Label: My local Ubuntu Dapper repository
Architecture: i386
MD5Sum:
 d41d8cd98f00b204e9800998ecf8427e                0 Release
END
md5sum=$(md5sum Packages | cut -d ' ' -f1)
sizeinbytes=$(ls -l Packages | cut -d ' ' -f5)
printf " "$md5sum" %16d Packages" $sizeinbytes >> Release
gpg -bao Release.gpg Release
echo "Add line repository to file /etc/apt/sources.list"
repodir="file://"$(pwd)
echo "deb "$repodir" /" >> /etc/apt/sources.list

а на структуру должно быть пофигу, я ведь свой репозиторий создаю и индекс к нему.
PM MAIL   Вверх
bilbobagginz
Дата 18.7.2008, 14:38 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Naughtius Maximus
****


Профиль
Группа: Экс. модератор
Сообщений: 8813
Регистрация: 2.3.2004
Где: Israel

Репутация: 28
Всего: 317



молодЕц. пометь решенным.



--------------------
Я ещё не демон. Я только учусь.
PM WWW   Вверх
  
Ответ в темуСоздание новой темы Создание опроса
Правила форума "Linux/UNIX: Oбщие вопросы"
nickless
Imple
pythonwin

В этом форуме предпочтительны вопросы на следующие темы:

  • Конкретные вопросы о конкретном ПО. В таких вопросах желательно привести точные данные о программе: версия программы, версия ОС, версия ядра, и проблему в форме: сделал Х, хотел получить Y, а получил Z.
  • Неконкретные вопросы о выборе ПО
  • Обзоры - как дополнение в ветку Обзоры


  • Вы должны соблюдать правила форума.
  • Помните: какой вопрос, такой и ответ. Прежде чем задать вопрос прочитайте вот эту статью на форуме CIT.
  • Оскорблять запрещается.
  • Религиозные войны в Религиозных войнах.
  • Общение "просто так" в Клубе юнуксоидов. В отличие от многих других разделов, здесь разрешается сдержанно оффтопить и юморить в тему.

За интересные статьи, находки, решения, программы и просто реальную помощь будут ставиться + в репу).


В данный момент этот раздел модерируют nerezus, nickless, powerfox, pythonwin, Imple и ZeeLax. Если вы хотите помочь нам, пишите в ПМ и мы обсудим.


Спасибо. И use UNIX or die; С уважением, nerezus, nickless, powerfox, pythonwin, Imple, ZeeLax.

 
0 Пользователей читают эту тему (0 Гостей и 0 Скрытых Пользователей)
0 Пользователей:
« Предыдущая тема | Программное обеспечение под *NIX системы | Следующая тема »


 




[ Время генерации скрипта: 0.0599 ]   [ Использовано запросов: 22 ]   [ GZIP включён ]


Реклама на сайте     Информационное спонсорство

 
По вопросам размещения рекламы пишите на vladimir(sobaka)vingrad.ru
Отказ от ответственности     Powered by Invision Power Board(R) 1.3 © 2003  IPS, Inc.