سعی کردم
sudo apt-get -y install iptables-persistent
را در اوبونتو سرور نصب کنم با خطا مواجه میشد که به صورت موقت امکان نصب این پکیج وجود ندارد
در ابتدا دستورات
sudo apt update & sudo apt upgrade
را اجرا کردن در زمان دریافت پکیج ها ادرس سرور ubuntu از سرور های ایران بود و از انجایی که کلی محدودیت داریم حدث میزدم احتمالا مربوط به دریافت اطالعات از سرور ایران باشد پس باید ادرس سرور را تغییر میدادم برای همین نیاز داشتم تا به فایل ادرس های سرور دسترسی پیدا کنم برا ی همین این دستور رو استفاده کردم تا با استفاده از nano فایل را تغییر دهم
sudo nano /etc/apt/sources.list
به فایل سورس دسترسی پیدا کردم در ابتدای همه ادرس ها ir.ubuntu..... بود که ir را برداشتم
باز دچار مشکل شد و با اینکه دستور update , upgarde را میزدم کار خاصی انجام نمیشد برای همین با استفده از دسنورات
sudo apt-get clean
sudo apt --fix-broken install
هم تست کردم اما کار خاصی انجام نشد برای همین با استفاده از دستور
sudo nano /etc/resolv.conf
# This is /run/systemd/resolve/stub-resolv.conf managed by man:systemd-resolved(8).
# Do not edit.
#
# This file might be symlinked as /etc/resolv.conf. If you're looking at
# /etc/resolv.conf and seeing this text, you have followed the symlink.
#
# This is a dynamic resolv.conf file for connecting local clients to the
# internal DNS stub resolver of systemd-resolved. This file lists all
# configured search domains.
#
# Run "resolvectl status" to see details about the uplink DNS servers
# currently in use.
#
# Third party programs should typically not access this file directly, but only
# through the symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a
# different way, replace this symlink by a static file or a different symlink.
#
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.
nameserver 127.0.0.53
options edns0 trust-ad
search .
بود که به
nameserver 8.8.8.8
تغییر دادم و sudo apt update , sudo apt upgrade را اجرا کردم