انجمنهای فارسی اوبونتو
کمک و پشتیبانی => نصب، راهاندازی و بروزآوری => نویسنده: حاجاقا در 30 تیر 1398، 02:16 بظ
-
سلام
دو سه ماهی است که هر وقت جناب اوبونتو به من میگوید که «تمام نرمافزارها به روز هستند به جز خود شخص شخیص بنده» و من دکمه «آپگرید» را میفشارم، هیچ اتفاقی نمیافتد. هیچی هیچی. تا اینکه امروز جناب حضرتش پیغام دادند که «دیگه حتی نرمافزارها هم به روز نمیشوند. داداش آپگریدم کن!» و من تصمیم گرفتم که دستی چنین کنم.
ابتدا با root وارد شدم و سپس این دستورات را وارد کردم:
apt update
apt upgrade
apt dist-upgrade
apt autoremove
چیزی که در تمام این دستورات مشترک بود این بود که چهار تا بسته هستند که نه پاک میشوند و نه به روز:
libboost-chrono-dev/cosmic 1.67.0.0ubuntu1 amd64 [upgradable from: 1.65.1.0ubuntu1]
libboost-python-dev/cosmic 1.67.0.0ubuntu1 amd64 [upgradable from: 1.65.1.0ubuntu1]
libboost-random-dev/cosmic 1.67.0.0ubuntu1 amd64 [upgradable from: 1.65.1.0ubuntu1]
libboost-system-dev/cosmic 1.67.0.0ubuntu1 amd64 [upgradable from: 1.65.1.0ubuntu1]
مثلاً به این پیغامها توجه کنید:
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded
یا
The following packages have been kept back:
libboost-chrono-dev libboost-python-dev libboost-random-dev libboost-system-dev
نهایتاً تصمیم گرفتم که بدون توجه به این پیغامها، راهم را ادامه دهم که البته به بنبست خوردم.
دستور do-release-upgrade پیغام زیر را داد:
$ do-release-upgrade
Checking for a new Ubuntu release
Your Ubuntu release is not supported anymore.
For upgrade information, please visit:
http://www.ubuntu.com/releaseendoflife
Please install all available updates for your release before upgrading.
چند نکته:
۱- در فایل /etc/update-manager/release-upgrades مقدار پارامتر Prompt روی normal سِت شده است.
۲- در این اینجا (https://forum.ubuntu-ir.org/index.php?topic=147799.0) نوشته بود که مخزن را روی main تنظیم کنیم که من هم کردم ولی تغییر رخ نداد به جز کند بودن به روزرسانی
۳- هر دو جمله پیغام آخر را در گوگل گشتم. راهی که بتواند مشکلم را حل کند نیافتم. راه گرافیکی ارائه شده در اینترنت هم اصلاً اجرا نمیشود.
لطفاً کمکم نمایید و بگویید اشکال کجاست و چه باید بکنم.
با تشکر
علیرضا
-
سلام.
شما خروجی تک تک دستورات زیر رو بذار برامون تا ببینیم ماجرا چیه:
sudo apt update
sudo apt dist-upgrade
sudo apt install -f
cat /etc/apt/sources.list
برای این دستورات هم توصیه میشه اصلاً وارد Root نشی! sudo رو برای همین روزا گذاشتن. ;)
-
این هم خروجی تک تک دستوراتی که خواسته بودی:
# apt update
Hit:1 http://archive.ubuntu.com/ubuntu cosmic InRelease
Get:2 http://archive.ubuntu.com/ubuntu cosmic-updates InRelease [88.7 kB]
Hit:3 http://archive.ubuntu.com/ubuntu cosmic-backports InRelease
Hit:4 http://archive.ubuntu.com/ubuntu cosmic-security InRelease
Fetched 88.7 kB in 2s (54.9 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
4 packages can be upgraded. Run 'apt list --upgradable' to see them.
# apt dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
libboost-chrono-dev libboost-python-dev libboost-random-dev libboost-system-dev
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
# apt install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
# cat /etc/apt/sources.list
# deb cdrom:[Ubuntu 18.04.1 LTS _Bionic Beaver_ - Release amd64 (20180725)]/ bionic main restricted
deb-src http://archive.ubuntu.com/ubuntu cosmic main restricted #Added by software-properties
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu cosmic main restricted
deb-src http://archive.ubuntu.com/ubuntu cosmic universe multiverse
## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu cosmic-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu cosmic-updates universe main multiverse 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://archive.ubuntu.com/ubuntu cosmic universe
# deb-src http://ir.archive.ubuntu.com/ubuntu/ bionic universe
deb http://archive.ubuntu.com/ubuntu cosmic-updates universe
# deb-src http://ir.archive.ubuntu.com/ubuntu/ bionic-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://archive.ubuntu.com/ubuntu cosmic multiverse
# deb-src http://ir.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://archive.ubuntu.com/ubuntu cosmic-updates multiverse
# deb-src http://ir.archive.ubuntu.com/ubuntu/ bionic-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://archive.ubuntu.com/ubuntu cosmic-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu cosmic-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu bionic partner
# deb-src http://archive.canonical.com/ubuntu bionic partner
deb http://archive.ubuntu.com/ubuntu cosmic-security main restricted
deb-src http://archive.ubuntu.com/ubuntu cosmic-security universe main multiverse restricted
deb http://archive.ubuntu.com/ubuntu cosmic-security universe
# deb-src http://security.ubuntu.com/ubuntu bionic-security universe
deb http://archive.ubuntu.com/ubuntu cosmic-security multiverse
# deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse
راستی چرا نباید از sudo su استفاده کرد؟
ممنون
علیرضا
-
زمان پشتیبانی از انتشار 18.10 به پایان رسیده، شما باید زودتر اقدام به آپگرید میکردید، الان مخازن 18.10 غیر-فعال است. به صورت دستی مخازن 19.04 را وارد کنید و اقدام به آپگرید نمایید.
-
میشه لطفاً در حد دیپلم توضیح دهید که منظورت چیست؟ راهنمایی کنید که چی کار باید بکنم یا در گوگل چه چیزی را بگردم؟
ممنون
علیرضا
-
اینها رو به ترتیب و با دقت انجام بده:
sudo sed -i -e s/cosmic/disco/ /etc/apt/sources.list
sudo apt update
sudo apt dist-upgrade
-
ممنون رسول
آپگرید شد به 19.04.
احتمالاً مشکل همان منقضی شدن مخازن بود که فرهاد گفت درسته؟
فقط یک سوال باقی میماند و آن هم اینکه چرا قبل از اینکه منقضی شوند، هرچی من روی دکمهٔ «آپگرید» کلیک میکردم جواب نمیداد؟
باز هم ممنون
علیرضا
-
آره. ایراد از همون بحثی بود ک فرهاد گفت.
برای اپگرید حتماً باید قبلش همون do-release-upgrade رو اجرا میکردی تا همین کاری که بهت گفتم بزنی (با دستور sed) رو این دستور انجام میداد برات و دیگه راحت آپگرید میکردی. دستور do-release-upgrade میاد اسم توزیع قبلی رو به توزیع جدید تغییر میده و همین باعث میشه بتونی آپگرید کنی.
-
من چطوری میتوانم این تاپیک را «حل شده» کنم؟
ممنون از هر دوتایتان
علیرضا
-
همون پست اول رو ویرایش بزن.
بالای صفحه جایی که اسم پست رو نوشتی، یه (حل شد) بذار اول یا آخر جمله و پست رو دوباره ذخیره کن.