Инструменты пользователя

Инструменты сайта

  • Показать страницу
  • История страницы
  • Ссылки сюда
  • Оставить на чай
  • Экспорт в PDF
  • Наверх

  • software:linux_server:local_or_private_ubuntu_mirror

    Различия

    Показаны различия между двумя версиями страницы.

    Ссылка на это сравнение

    Предыдущая версия справа и слеваПредыдущая версия
    Следующая версия
    Предыдущая версия
    software:linux_server:local_or_private_ubuntu_mirror [2024/07/21 20:38] – [Файлы и Дополнения] vladpolskiysoftware:linux_server:local_or_private_ubuntu_mirror [2024/08/02 23:09] (текущий) – [Настройка клиенских системы] vladpolskiy
    Строка 241: Строка 241:
     deb http://archive.canonical.com/ubuntu/ jammy partner deb http://archive.canonical.com/ubuntu/ jammy partner
     deb-src http://archive.canonical.com/ubuntu/ jammy partner deb-src http://archive.canonical.com/ubuntu/ jammy partner
     +</file>
      
     =====Настройка клиенских системы===== =====Настройка клиенских системы=====
    -Откройте терминал и введите:+<color #22b14c> Просмотреть все репозитории:</color> 
     +<code> 
     +sudo nano /etc/apt/sources.list 
     +</code> 
     +<color #22b14c>Они также могут находиться в одном из файлов в папке</color> **/etc/apt/sources.list.d/** 
     +{{:software:nas:rsync_mirror_dsm_53.png?|}} 
     +<color #22b14c>Сделаем архивную копию нашего оригинального файла sources.list</color> 
     +<code> 
     +sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup 
     +</code> 
     +<details> 
     +<summary><color #22b14c>См. запись оригинального файла sources.list</color></summary> 
     +<code> 
     +#deb cdrom:[Ubuntu 22.04 LTS _Jammy Jellyfish_ - Release amd64 (20220419)]/ jammy main restricted
      
    -cd /etc/apt +# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to 
    -sudo mv sources.list sources.list.orig +# newer versions of the distribution
    -sudo sensible-editor sources.list +deb http://ru.archive.ubuntu.com/ubuntu/ jammy main restricted 
    -Теперь в редакторе наберите следующие строки:+# deb-src http://ru.archive.ubuntu.com/ubuntu/ jammy main restricted
      
    -Зеркала локальной сети+## Major bug fix updates produced after the final release of the 
    -deb http://mirrorbox/ubuntu dapper main restricted universe multiverse +## distribution
    -deb http://mirrorbox/ubuntu dapper-updates main restricted universe multiverse +deb http://ru.archive.ubuntu.com/ubuntu/ jammy-updates main restricted 
    -deb http://mirrorbox/ubuntu dapper-security main restricted universe multiverse +deb-src http://ru.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
    -Затем сохраните и закройте файл. +
    -Если теперь запустить+
      
     +## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
     +## team. Also, please note that software in universe WILL NOT receive any
     +## review or updates from the Ubuntu security team.
     +deb http://ru.archive.ubuntu.com/ubuntu/ jammy universe
     +# deb-src http://ru.archive.ubuntu.com/ubuntu/ jammy universe
     +deb http://ru.archive.ubuntu.com/ubuntu/ jammy-updates universe
     +# deb-src http://ru.archive.ubuntu.com/ubuntu/ jammy-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://ru.archive.ubuntu.com/ubuntu/ jammy multiverse
     +deb http://ru.archive.ubuntu.com/ubuntu/ jammy multiverse
     +# deb-src http://ru.archive.ubuntu.com/ubuntu/ jammy multiverse
     +deb http://ru.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
     +# deb-src http://ru.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
     +
     +## 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://ru.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
     +# deb-src http://ru.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
     +
     +deb http://security.ubuntu.com/ubuntu jammy-security main restricted
     +# deb-src http://security.ubuntu.com/ubuntu jammy-security main restricted
     +deb http://security.ubuntu.com/ubuntu jammy-security universe
     +# deb-src http://security.ubuntu.com/ubuntu jammy-security universe
     +deb http://security.ubuntu.com/ubuntu jammy-security multiverse
     +# deb-src http://security.ubuntu.com/ubuntu jammy-security multiverse
     +
     +# This system was installed using small removable media
     +# (e.g. netinst, live or single CD). The matching "deb cdrom"
     +# entries were disabled at the end of the installation process.
     +# For information about how to configure apt package sources,
     +# see the sources.list(5) manual.
     +</code>
     +</details>
     +
     +<color #22b14c>Удалим подключенные репозитории, замени их на наше зеркало и сохраним файл:</color>
     +<code>
     +deb http://192.168.1.20/ubuntu/ jammy main restricted
     +deb http://192.168.1.20/ubuntu/ jammy-updates main restricted
     +deb http://192.168.1.20/ubuntu/ jammy universe
     +deb http://192.168.1.20/ubuntu/ jammy-updates universe
     +</code>
     +{{:software:nas:rsync_mirror_dsm_54.png?|}}
     +<color #22b14c>Получим обновленные списки пакетов:</color>
     +<code>
     sudo apt-get update sudo apt-get update
     +</code>
     +<color #22b14c>обновить список пакетов.</color>
     +sudo apt update
     +{{:software:nas:rsync_mirror_dsm_56.png?|}}
     +<color #22b14c>обновим пакеты</color>
     +<code>
     sudo apt-get dist-upgrade sudo apt-get dist-upgrade
    -, обновления будут загружаться с вашего нового сервера!+</code> 
     +{{:software:nas:rsync_mirror_dsm_57.png?|}}
      
    -</file+<color #22b14c>Удалим подключенные репозитории на машине с Ubuntu 24.04, заменим их на наше зеркало и сохраним файл:</color
    -{{ :software:linux_server:debmirroramd64.sh.txt |debmirroramd64.sh.txt}}+<code> 
     +deb http://192.168.1.20/ubuntu/ noble main restricted 
     +deb http://192.168.1.20/ubuntu/ noble-updates main restricted 
     +deb http://192.168.1.20/ubuntu/ noble universe 
     +deb http://192.168.1.20/ubuntu/ noble-updates universe 
     +</code> 
     + 
     +<details> 
     +<summary><color #22b14c>См. запись полного файла sources.list для Ubuntu 24.04 LTS noble Jellyfish </color></summary> 
     +<code> 
     +#deb cdrom:[Ubuntu 24.04 LTS _noble Jellyfish_ - Release amd64 (20220419)]/ noble main restricted 
     + 
     +# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to 
     +# newer versions of the distribution. 
     +deb http://192.168.1.20/ubuntu/ noble main restricted 
     +# deb-src http://192.168.1.20/ubuntu/ noble main restricted 
     + 
     +## Major bug fix updates produced after the final release of the 
     +## distribution. 
     +deb http://192.168.1.20/ubuntu/ noble-updates main restricted 
     +# deb-src http://192.168.1.20/ubuntu/ noble-updates main restricted 
     + 
     +## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
     +## team. Also, please note that software in universe WILL NOT receive any 
     +## review or updates from the Ubuntu security team. 
     +deb http://192.168.1.20/ubuntu/ noble universe 
     +# deb-src http://192.168.1.20/ubuntu/ noble universe 
     +deb http://192.168.1.20/ubuntu/ noble-updates universe 
     +# deb-src http://192.168.1.20/ubuntu/ noble-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://192.168.1.20/ubuntu/ noble multiverse 
     +deb http://192.168.1.20/ubuntu/ noble multiverse 
     +# deb-src http://192.168.1.20/ubuntu/ noble multiverse 
     +deb http://192.168.1.20/ubuntu/ noble-updates multiverse 
     +# deb-src http://192.168.1.20/ubuntu/ noble-updates multiverse 
     + 
     +## 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://192.168.1.20/ubuntu/ noble-backports main restricted universe multiverse 
     +# deb-src http://192.168.1.20/ubuntu/ noble-backports main restricted universe multiverse 
     + 
     +deb http://192.168.1.20/ubuntu noble-security main restricted 
     +# deb-src http://192.168.1.20/ubuntu noble-security main restricted 
     +deb http://192.168.1.20/ubuntu noble-security universe 
     +# deb-src http://192.168.1.20/ubuntu noble-security universe 
     +deb http://192.168.1.20/ubuntu noble-security multiverse 
     +# deb-src http://192.168.1.20/ubuntu noble-security multiverse 
     + 
     +# This system was installed using small removable media 
     +# (e.g. netinst, live or single CD). The matching "deb cdrom" 
     +# entries were disabled at the end of the installation process. 
     +# For information about how to configure apt package sources, 
     +# see the sources.list(5) manual. 
     +</code> 
     +</details> 
     + 
     +{{:software:nas:rsync_mirror_dsm_84.png?|}} 
     +<color #22b14c>Получим обновленные списки пакетов:</color> 
     +<code> 
     +sudo apt-get update 
     +</code> 
     +<color #22b14c>обновить список пакетов.</color> 
     +sudo apt update 
     +{{:software:nas:rsync_mirror_dsm_80.png?|}} 
     +<color #22b14c>обновим пакеты</color> 
     +<code> 
     +sudo apt-get dist-upgrade 
     +</code> 
     + 
     +{{:software:nas:rsync_mirror_dsm_83.png?|}} 
     +=====Дополнения и Файлы===== 
     + 
     +  * {{ :software:linux_server:debmirroramd64.sh.txt |debmirroramd64.sh.txt}}
    software/linux_server/local_or_private_ubuntu_mirror.1721583530.txt.gz · Последнее изменение: 2024/07/21 20:38 — vladpolskiy