samirox
22-07-2011, 02:30 AM
السلام عليكم و رحمة الله
:)
---------------------------------
كما يعلم الجميع أن النسخة الاخيرة من ابونتوا 11.04 . توجد بها بعض المشاكل . قد تزعج القادمين الجدد الى عالم لينكس .
- من هده المشاكل . بعض رسائل أخطاء تحديث او تنصيب الحزم .
- أولا ما أنصح به الجميع . بعد تنصيب اي توزيعة . سواء ابونتوا او غيرها .
- تحديث النظام . هده مسألأة واجبة و مهمة . والا فأنظمة تشغيل لينكس بدون تحديثات . فلن تساوي شيء .
تحديث النظام جد مهم . لمادا ؟
- أولا . اصلاح المشاكل و الثغرات . الزيادة في الأمن . اصلاح مشاكل النظام .
- في عالم لينكس توجد مسألة اسمها رفع علل النظام لسيرفر التوزيعة . او بصورة اخرى التبليغ عن مشاكل النظام .
و لا أعتقد أن الكثير من مستخدمي لينكس يقوم بهده المسألة . و تعتبر مهمة . و هي مايشار لها ب reporting bugs .
- بالتبليغ عن العلل ستساهم في تحسين و تطوير التوزيعة .
**********************
- هدا مدخل بسيط لفهم بعض المسائل .
- في عالم لينكس عامة و ابونتوا على الخصوص . توجد ملفات تسمى log files . و توجد بهدا المسار
ls -l /var/log
- هده الملفات يوجد بها كل ما يتعل بالنظام . من الألف الى الياء . و كل كبيرة و صغيرة ستجدها بهده الملفات .
- ستجد رسائل تثبت نجاح العمليات التي تتم على النظام . و رسائل الأخطاء كدلك عن فشل اي عملية .
- التحكم في النظام و حل مشاكله . مفتاحه فهم هده الرسائل . و قرائتها . و ان يستطيع المستخدم اكتشاف الخلل .
- كلمة fail و تعني اخفاق في اللغة العربيية . يمكننا اضافتها لأمر كخاصية . تساعدنا لتفقد هده الملفات .
- مثال . لتتضح الصورة اكثر .
grep -i fail /var/log/boot
- ملف boot . بداخل هدا الملف توجد كل الرسائل التي تصدر عن النظام في مرحلة الاقلاع . و تطبيق الامر السابق . سيعطينا اي رسالة خطأ او عملية لم تنجح او مشكل . بعد دلك يمكننا تتبع المشكل . سواء بالتبليغ عنه . و هدا اداد لم تجد له حل سواء في منتدى التوزيعة الرسمي . او اي منتدى متعلق بلينكس .
- هده معلومات فقط ليفهم المستخدم . ان لينكس يساعدك لحل المشاكل .
***********************
بالنسبة لابونتوا 11.04 . كما اشرت يجب تحديث النظام . و الخطوة الثانية المهمة . عمل نسخة احتياطية لنظام . و توجد العديد من البرامج تقوم بدلك .
- كدلك عمل نسخة احتياطية لملف المستودعات sources.list
sudo /etc/apt/sources.list
/etc/apt/sources.list.bak
- و هدا محتوى ملف خام لمن احتاجه
sudo gedit /etc/apt/sources.list
#deb cdrom:[Ubuntu 11.04 _Natty Narwhal_ - Release i386]/ natty main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://gb.archive.ubuntu.com/ubuntu/ natty main restricted
deb-src http://gb.archive.ubuntu.com/ubuntu/ natty main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://gb.archive.ubuntu.com/ubuntu/ natty-updates main restricted
deb-src http://gb.archive.ubuntu.com/ubuntu/ natty-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://gb.archive.ubuntu.com/ubuntu/ natty universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ natty universe
deb http://gb.archive.ubuntu.com/ubuntu/ natty-updates universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ natty-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://gb.archive.ubuntu.com/ubuntu/ natty multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ natty multiverse
deb http://gb.archive.ubuntu.com/ubuntu/ natty-updates multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ natty-updates multiverse
## Uncomment the following two lines to add software from the 'backports'
## repository.
## 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://gb.archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ natty-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 natty partner
deb-src http://archive.canonical.com/ubuntu natty partner
deb http://security.ubuntu.com/ubuntu natty-security main restricted
deb-src http://security.ubuntu.com/ubuntu natty-security main restricted
deb http://security.ubuntu.com/ubuntu natty-security universe
deb-src http://security.ubuntu.com/ubuntu natty-security universe
deb http://security.ubuntu.com/ubuntu natty-security multiverse
- بعد رسائل الاخطاء التي قد يواجه مستخدمي ابونتوا 11.04 .
- هده الرسالة
E:Encountered a section with no Package: header, E:Problem with MergeList /var/lib/apt/lists/deb.torproject.org_torproject.org_dists_natty_main _binary-i386_Packages, E:The package lists or status file could not be parsed or opened.'
- و حدل هده المشكلة . تطبيق هده الاوامر
sudo rm /var/lib/apt/lists/* -vf
sudo apt-get update
**********************
و هدا كتاب مفيد لمستخدمي ابونتوا - ابونتوا ببساطة (http://download.simplyubuntu.com/simplyubuntu_v1.0.pdf)
لللأخ أحمد ابو زيد . لا تنسوه بدعوة صالحة له .
جزاه الله كل خيرا على هدا العمل الرائع .
******************
أتمنى ان تستفيدوا من الموضوع .
:)
نسأل الله التوفيق للجميع
:)
---------------------------------
كما يعلم الجميع أن النسخة الاخيرة من ابونتوا 11.04 . توجد بها بعض المشاكل . قد تزعج القادمين الجدد الى عالم لينكس .
- من هده المشاكل . بعض رسائل أخطاء تحديث او تنصيب الحزم .
- أولا ما أنصح به الجميع . بعد تنصيب اي توزيعة . سواء ابونتوا او غيرها .
- تحديث النظام . هده مسألأة واجبة و مهمة . والا فأنظمة تشغيل لينكس بدون تحديثات . فلن تساوي شيء .
تحديث النظام جد مهم . لمادا ؟
- أولا . اصلاح المشاكل و الثغرات . الزيادة في الأمن . اصلاح مشاكل النظام .
- في عالم لينكس توجد مسألة اسمها رفع علل النظام لسيرفر التوزيعة . او بصورة اخرى التبليغ عن مشاكل النظام .
و لا أعتقد أن الكثير من مستخدمي لينكس يقوم بهده المسألة . و تعتبر مهمة . و هي مايشار لها ب reporting bugs .
- بالتبليغ عن العلل ستساهم في تحسين و تطوير التوزيعة .
**********************
- هدا مدخل بسيط لفهم بعض المسائل .
- في عالم لينكس عامة و ابونتوا على الخصوص . توجد ملفات تسمى log files . و توجد بهدا المسار
ls -l /var/log
- هده الملفات يوجد بها كل ما يتعل بالنظام . من الألف الى الياء . و كل كبيرة و صغيرة ستجدها بهده الملفات .
- ستجد رسائل تثبت نجاح العمليات التي تتم على النظام . و رسائل الأخطاء كدلك عن فشل اي عملية .
- التحكم في النظام و حل مشاكله . مفتاحه فهم هده الرسائل . و قرائتها . و ان يستطيع المستخدم اكتشاف الخلل .
- كلمة fail و تعني اخفاق في اللغة العربيية . يمكننا اضافتها لأمر كخاصية . تساعدنا لتفقد هده الملفات .
- مثال . لتتضح الصورة اكثر .
grep -i fail /var/log/boot
- ملف boot . بداخل هدا الملف توجد كل الرسائل التي تصدر عن النظام في مرحلة الاقلاع . و تطبيق الامر السابق . سيعطينا اي رسالة خطأ او عملية لم تنجح او مشكل . بعد دلك يمكننا تتبع المشكل . سواء بالتبليغ عنه . و هدا اداد لم تجد له حل سواء في منتدى التوزيعة الرسمي . او اي منتدى متعلق بلينكس .
- هده معلومات فقط ليفهم المستخدم . ان لينكس يساعدك لحل المشاكل .
***********************
بالنسبة لابونتوا 11.04 . كما اشرت يجب تحديث النظام . و الخطوة الثانية المهمة . عمل نسخة احتياطية لنظام . و توجد العديد من البرامج تقوم بدلك .
- كدلك عمل نسخة احتياطية لملف المستودعات sources.list
sudo /etc/apt/sources.list
/etc/apt/sources.list.bak
- و هدا محتوى ملف خام لمن احتاجه
sudo gedit /etc/apt/sources.list
#deb cdrom:[Ubuntu 11.04 _Natty Narwhal_ - Release i386]/ natty main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://gb.archive.ubuntu.com/ubuntu/ natty main restricted
deb-src http://gb.archive.ubuntu.com/ubuntu/ natty main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://gb.archive.ubuntu.com/ubuntu/ natty-updates main restricted
deb-src http://gb.archive.ubuntu.com/ubuntu/ natty-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://gb.archive.ubuntu.com/ubuntu/ natty universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ natty universe
deb http://gb.archive.ubuntu.com/ubuntu/ natty-updates universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ natty-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://gb.archive.ubuntu.com/ubuntu/ natty multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ natty multiverse
deb http://gb.archive.ubuntu.com/ubuntu/ natty-updates multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ natty-updates multiverse
## Uncomment the following two lines to add software from the 'backports'
## repository.
## 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://gb.archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ natty-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 natty partner
deb-src http://archive.canonical.com/ubuntu natty partner
deb http://security.ubuntu.com/ubuntu natty-security main restricted
deb-src http://security.ubuntu.com/ubuntu natty-security main restricted
deb http://security.ubuntu.com/ubuntu natty-security universe
deb-src http://security.ubuntu.com/ubuntu natty-security universe
deb http://security.ubuntu.com/ubuntu natty-security multiverse
- بعد رسائل الاخطاء التي قد يواجه مستخدمي ابونتوا 11.04 .
- هده الرسالة
E:Encountered a section with no Package: header, E:Problem with MergeList /var/lib/apt/lists/deb.torproject.org_torproject.org_dists_natty_main _binary-i386_Packages, E:The package lists or status file could not be parsed or opened.'
- و حدل هده المشكلة . تطبيق هده الاوامر
sudo rm /var/lib/apt/lists/* -vf
sudo apt-get update
**********************
و هدا كتاب مفيد لمستخدمي ابونتوا - ابونتوا ببساطة (http://download.simplyubuntu.com/simplyubuntu_v1.0.pdf)
لللأخ أحمد ابو زيد . لا تنسوه بدعوة صالحة له .
جزاه الله كل خيرا على هدا العمل الرائع .
******************
أتمنى ان تستفيدوا من الموضوع .
:)
نسأل الله التوفيق للجميع