diff --git a/sources/tech/20221017.1 ⭐️ How to Update or Upgrade Ubuntu Offline without Internet.md b/sources/tech/20221017.1 ⭐️ How to Update or Upgrade Ubuntu Offline without Internet.md deleted file mode 100644 index 27ae2c5881..0000000000 --- a/sources/tech/20221017.1 ⭐️ How to Update or Upgrade Ubuntu Offline without Internet.md +++ /dev/null @@ -1,115 +0,0 @@ -[#]: subject: "How to Update or Upgrade Ubuntu Offline without Internet" -[#]: via: "https://www.debugpoint.com/how-to-update-or-upgrade-ubuntu-offline-without-internet/" -[#]: author: "Arindam https://www.debugpoint.com/author/admin1/" -[#]: collector: "lkxed" -[#]: translator: " " -[#]: reviewer: " " -[#]: publisher: " " -[#]: url: " " - -How to Update or Upgrade Ubuntu Offline without Internet -====== - -**This guide explains the steps to update Ubuntu offline without an active internet connection.** - -There are many situations where you may need to update your Ubuntu installation without an internet connection. You may be staying remotely or have a set of network Ubuntu systems that are not connected to the internet. In any case, keeping your system updated with the latest packages is always required. - -Of course, updating any system while connected to the internet is always recommended. - -But sometimes, it is not possible for security reasons also. Connecting to the internet may bring additional hardening steps for your systems to protect them from hackers and malware. - -The following method using [apt-offline][1] helps to fix those use cases and outlines the steps to update your Ubuntu offline without the internet. - -### Pre-requisite - -- You need to have access to a Ubuntu system that has an internet connection (e.g. your friends, cafe, or lab system) -- A USB pen drive to hold the packages -- Install the apt-offline package in both the systems – a) the offline system and b) the system with an internet connection. - -### Install apt-offline - -both systems - -You can install the `apt-offline` using the following command. Remember, you have to get it installed in . - -``` -sudo apt install apt-offline -``` - -In case you need the `apt-offline` to be installed in the target system, you can download the deb package from the below link and copy it to the target system via a USB stick. Then run the below command to install. - -The download link for Ubuntu 22.04 LTS and other versions is present below. You can choose a mirror and download the deb file. - -[download .deb files – apt-offline][2] - -``` -sudo dpkg -i name_of_package.deb -``` - -### Update Ubuntu offline: Steps - -Open a terminal in the offline Ubuntu system and create a signature file using the following command in your home directory. - -``` -sudo apt-offline set ~/offline-data.sig -``` - -[![Create the sig file][3]][4] - -This creates a file containing the required package paths and details for download. - -[![sig file contents][5]][6] - -Copy this .sig file to a USB and take it to a Ubuntu system with internet access. - -Create a directory (see example below) to hold the downloaded packages in the Ubuntu system with an internet connection. - -Open a terminal and run the following command to download the required packages. Remember to change the download directory and .sig file path as per your system. - -``` -apt-offline get -d ~/offline-data-dir offline-data.sig -``` - -[![Download the packages to install offline][7]][8] - -offline Ubuntu system - -You should see the files are downloaded properly. Now copy the entire downloaded directory to the USB drive and plug it into the . - -Then run the following command to install the downloaded packages to the offline system. Change the directory path as per your system. - -``` -sudo apt-offline install offline-data-dir/ -``` - -[![Installing packages - offline update ubuntu][9]][10] - -The update should run smoothly if all goes well, and you should have an updated Ubuntu system. - -You must repeat the steps above to keep your Ubuntu system up-to-date offline whenever you need to update. - -I hope this guide helps you to update your Ubuntu system in an offline mode. If you face any trouble, let me know in the comment box below. - --------------------------------------------------------------------------------- - -via: https://www.debugpoint.com/how-to-update-or-upgrade-ubuntu-offline-without-internet/ - -作者:[Arindam][a] -选题:[lkxed][b] -译者:[译者ID](https://github.com/译者ID) -校对:[校对者ID](https://github.com/校对者ID) - -本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 - -[a]: https://www.debugpoint.com/author/admin1/ -[b]: https://github.com/lkxed -[1]: https://github.com/rickysarraf/apt-offline -[2]: https://packages.ubuntu.com/focal/all/apt-offline/download -[3]: https://www.debugpoint.com/wp-content/uploads/2021/03/Create-the-sig-file-1024x204.jpg -[4]: https://www.debugpoint.com/wp-content/uploads/2021/03/Create-the-sig-file.jpg -[5]: https://www.debugpoint.com/wp-content/uploads/2021/03/sig-file-contents-1024x250.jpg -[6]: https://www.debugpoint.com/wp-content/uploads/2021/03/sig-file-contents.jpg -[7]: https://www.debugpoint.com/wp-content/uploads/2021/03/Download-the-packages-to-install-offline-1024x437.jpg -[8]: https://www.debugpoint.com/wp-content/uploads/2021/03/Download-the-packages-to-install-offline.jpg -[9]: https://www.debugpoint.com/wp-content/uploads/2021/03/Installing-packages-offline-update-ubuntu-1024x509.jpg -[10]: https://www.debugpoint.com/wp-content/uploads/2021/03/Installing-packages-offline-update-ubuntu.jpg diff --git a/translated/tech/20221017.1 ⭐️ How to Update or Upgrade Ubuntu Offline without Internet.md b/translated/tech/20221017.1 ⭐️ How to Update or Upgrade Ubuntu Offline without Internet.md new file mode 100644 index 0000000000..e5449214d1 --- /dev/null +++ b/translated/tech/20221017.1 ⭐️ How to Update or Upgrade Ubuntu Offline without Internet.md @@ -0,0 +1,113 @@ +[#]: subject: "How to Update or Upgrade Ubuntu Offline without Internet" +[#]: via: "https://www.debugpoint.com/how-to-update-or-upgrade-ubuntu-offline-without-internet/" +[#]: author: "Arindam https://www.debugpoint.com/author/admin1/" +[#]: collector: "lkxed" +[#]: translator: "littlebirdnest" +[#]: reviewer: " " +[#]: publisher: " " +[#]: url: " " + +如何在没有网络的情况下,离线更新或升级 Ubuntu +====== + +**此教程关于如何一步一步在没有网络的情况下,升级ubuntu** + +在有些情况下,你可能需要离线更新ubuntu,又或者你可能在远程状态下需要更新一堆未联网的ubuntu,总的来说你想要升级最新的系统 + +当然,始终建议通过联网升级系统。 + +但有时,离线更新系统,有助于网络安全,远离黑客和恶意软件 + +以下的方法使用[apt-offline][1]来解决这些问题,离线更新ubuntu +### 准备环节 + +- 一台能连接到网络的ubuntu(你朋友的,咖啡馆,实验室系统) +- 装了安装包的u盘 +- 两个系统都安装了 apt-offline.一个系统离线,另一个系统联网 + +### 安装 apt-offline + +在两个系统下安装apt-offline + +你可以使用以下命令安装 apt-offline。 + +``` +sudo apt install apt-offline +``` + +如果你想装离线安装 apt-offline ,你可以提前下载到u盘里,然后拷出来,再使用下面的命令 + +Ubuntu 22.04 LTS 和其他版本的下载链接如下所示。您可以选择一个镜像并下载 deb 文件。 + +[下载 .deb 文件 – apt-offline][2] + +``` +sudo dpkg -i name_of_package.deb +``` + +### 如何更新ubuntu + +离线打开终端,且使用以下命令创建一个.sig签名文件 + +``` +sudo apt-offline set ~/offline-data.sig +``` + +[![Create the sig file][3]][4] + +这个刚创建的签名文件中,包含下载所需的包路径和详细信息。 + +[![sig file contents][5]][6] + +把签名文件,拷到u盘中,再插到有网的ubuntu + +创建有一个目录去装这些文件 + +打开一个终端,运行以下命令,记得根据你的系统,更改下载目录和.sig签名文件的路径 + +``` +apt-offline get -d ~/offline-data-dir offline-data.sig +``` + +[![Download the packages to install offline][7]][8] + +更新离线的Ubuntu + +文件下载完,拷贝整个目录,再插到没联网的ubuntu + +然后运行以下命令将下载的包装到离线系统,记得根据你的系统更改目录路径 + +``` +sudo apt-offline install offline-data-dir/ +``` + +[![Installing packages - offline update ubuntu][9]][10] + +如果一切顺利,你将获得一个更新完的ubuntu + +重复食用以上步骤,就可以保持你的离线ubuntu是最新版 + +希望以上教程能帮到你更新离线的ubnuntu系统,如果您遇到任何问题,请在下面的评论框中告诉我。 +-------------------------------------------------------------------------------- + +via: https://www.debugpoint.com/how-to-update-or-upgrade-ubuntu-offline-without-internet/ + +作者:[Arindam][a] +选题:[lkxed][b] +译者:[littlebirdnest](https://github.com/译者ID) +校对:[校对者ID](https://github.com/校对者ID) + +本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 + +[a]: https://www.debugpoint.com/author/admin1/ +[b]: https://github.com/lkxed +[1]: https://github.com/rickysarraf/apt-offline +[2]: https://packages.ubuntu.com/focal/all/apt-offline/download +[3]: https://www.debugpoint.com/wp-content/uploads/2021/03/Create-the-sig-file-1024x204.jpg +[4]: https://www.debugpoint.com/wp-content/uploads/2021/03/Create-the-sig-file.jpg +[5]: https://www.debugpoint.com/wp-content/uploads/2021/03/sig-file-contents-1024x250.jpg +[6]: https://www.debugpoint.com/wp-content/uploads/2021/03/sig-file-contents.jpg +[7]: https://www.debugpoint.com/wp-content/uploads/2021/03/Download-the-packages-to-install-offline-1024x437.jpg +[8]: https://www.debugpoint.com/wp-content/uploads/2021/03/Download-the-packages-to-install-offline.jpg +[9]: https://www.debugpoint.com/wp-content/uploads/2021/03/Installing-packages-offline-update-ubuntu-1024x509.jpg +[10]: https://www.debugpoint.com/wp-content/uploads/2021/03/Installing-packages-offline-update-ubuntu.jpg