Linux Mint Türkiye

Yazılım => Yazılım Yükleme ve Kaldırma => Konuyu başlatan: Anafartalar - 15 Temmuz 2015, 15:29:44

Başlık: Python3 Güncelleme Sonrası Hata
Gönderen: Anafartalar - 15 Temmuz 2015, 15:29:44
Merhabalar,

Gereksiz bir şekilde Python 3.4'ü bilgisayarımdan kaldırıp yeniden yüklemek isterken anlam veremediğim bir hata oluştu. Detaylar aşağıdadır ayrıca şu an yazılım yöneticisini kullanarak da program yükleyemiyorum. Aşağıdakine benzer bir hata veriyor, muhtemelen dpkg'deki sorun yüzünden.  :-\
Bu arada kendim python3 paketini derleyerek kurmuştum yani python3 bilgisayarımda yüklü ve sorunsuz çalışıyor.

Umarım destek olabilirsiniz, ayrıca Mint üzerinden sistem yedekleme (windows'daki sistem geri yüklemeye benzer) ile ilgili bir döküman  varsa ve paylaşırsanız çok sevinirim.

"sudo apt-get install python3" komutunun çıktısı aşağıdadır.  "sudo apt-get upgrade" de aynı hatayı veriyor.

Kod: [Seç]
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3 is already the newest version.
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
9 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up python3-minimal (3.4.0-0ubuntu2) ...
Failed to import the site module
Traceback (most recent call last):
  File "/usr/lib/python3.4/site.py", line 586, in <module>
    main()
  File "/usr/lib/python3.4/site.py", line 572, in main
    known_paths = addusersitepackages(known_paths)
  File "/usr/lib/python3.4/site.py", line 287, in addusersitepackages
    user_site = getusersitepackages()
  File "/usr/lib/python3.4/site.py", line 263, in getusersitepackages
    user_base = getuserbase() # this will also set USER_BASE
  File "/usr/lib/python3.4/site.py", line 253, in getuserbase
    USER_BASE = get_config_var('userbase')
  File "/usr/lib/python3.4/sysconfig.py", line 597, in get_config_var
    return get_config_vars().get(name)
  File "/usr/lib/python3.4/sysconfig.py", line 540, in get_config_vars
    _init_posix(_CONFIG_VARS)
  File "/usr/lib/python3.4/sysconfig.py", line 412, in _init_posix
    from _sysconfigdata import build_time_vars
  File "/usr/lib/python3.4/_sysconfigdata.py", line 6, in <module>
    from _sysconfigdata_m import *
ImportError: No module named '_sysconfigdata_m'
dpkg: error processing package python3-minimal (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python3:
 python3 depends on python3-minimal (= 3.4.0-0ubuntu2); however:
  Package python3-minimal is not configured yet.

dpkg: error processing package python3 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ubuntu-drivers-common:
 ubuntu-drivers-common depends on python3:any (>= 3.3.2-2~); however:
  Package python3 is not configured yet.
 ubuntu-drivers-common depends on python3; however:
  Package python3 is not configured yet.

dpkg: error processing package ubuntu-drivers-common (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gdebi-core:
 gdebi-core depends on python3:any (>= 3.3.2-2~); however:
  Package python3 is not configured yet.

dpkg: error processing package gdebi-core (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gdebi:
 gdebi depends on python3:any (>= 3.3.2-2~); however:
  Package python3 is not configured yet.
 gdebi depends on gdebi-core (= 0.9.5.3ubuntu2); however:
  Package gdebi-core is not configured yet.

dpkg: error processing package gdebi (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-lxml:
 python3-lxml depends on python3 (>= 3.4~); however:
  Package python3 is not configured yet.
 python3-lxml depends on python3 (<< 3.5); however:
  Package python3 is not configured yet.

dpkg: error processing package python3-lxml (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-uno:
 python3-uno depends on python3:any (>= 3.3.2-2~); however:
  Package python3 is not configured yet.

dpkg: error processing package python3-uno (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of apt-clone:
 apt-clone depends on python3:any (>= 3.3.2-2~); however:
  Package python3 is not configured yet.
 apt-clone depends on python3; however:
  Package python3 is not configured yet.

dpkg: error processing package apt-clone (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of dh-python:
 dh-python depends on python3:any (>= 3.3.2-2~); however:
  Package python3 is not configured yet.

dpkg: error processing package dh-python (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python3-minimal
 python3
 ubuntu-drivers-common
 gdebi-core
 gdebi
 python3-lxml
 python3-uno
 apt-clone
 dh-python
E: Sub-process /usr/bin/dpkg returned an error code (1)
Düzenleme: Kod etiketi. Lütfen çıktıları kod etiketi içerisinde paylaşınız. Çözülen Başlıkların Etiketlenmesi (http://forum.linuxmint.net.tr/index.php?topic=2058.0)
karakartala
Başlık: Ynt: Python3 Güncelleme Sonrası Hata
Gönderen: Genizcil_N - 15 Temmuz 2015, 20:09:55
Aynı başlık altında yalnızca bir soru/sorun hakkında konuşuyoruz. Bu başlıkta Python hakkında konuşalım. Forumda arama yaparak yedeklemeyle ilgili konulara ulaşabilirsiniz. Eğer yedeklemeyle ilgili başka bir sorunuz olursa yeni bir konu açınız. http://forum.linuxmint.net.tr/index.php?topic=3550.msg22564#msg22564
Python'u kaldırıp kurarken dikkatli olun. Sistemde hasara neden olabilirsiniz. http://belgeler.istihza.com/py3/calistirma.html#cok-onemli-bir-uyari
Şu iletidekileri deneyebilir misiniz? http://forum.linuxmint.net.tr/index.php?topic=3178.msg20233#msg20233
Başlık: Ynt: Python3 Güncelleme Sonrası Hata
Gönderen: Anafartalar - 15 Temmuz 2015, 22:01:26
Yanıtınız ve uyarılarınız için teşekkürler, Python ile ilgili gönderdiğiniz yazıyı daha önce okusaydım ne güzel olurdu, windows'dan gelen alışkanlıkla bir şeyleri kaldırıp yüklerken düşünmüyoruz. Herneyse; link içerisindeki kodları çalıştırdım "sudo dpkg --configure -a" komutu aşağıdaki çıktıyı verdi. "sudo apt-get install -f" komutuda yine ilk iletimde yazdığım hatayı verdi.

Kod: [Seç]
Setting up python3-minimal (3.4.0-0ubuntu2) ...
Failed to import the site module
Traceback (most recent call last):
  File "/usr/lib/python3.4/site.py", line 586, in <module>
    main()
  File "/usr/lib/python3.4/site.py", line 572, in main
    known_paths = addusersitepackages(known_paths)
  File "/usr/lib/python3.4/site.py", line 287, in addusersitepackages
    user_site = getusersitepackages()
  File "/usr/lib/python3.4/site.py", line 263, in getusersitepackages
    user_base = getuserbase() # this will also set USER_BASE
  File "/usr/lib/python3.4/site.py", line 253, in getuserbase
    USER_BASE = get_config_var('userbase')
  File "/usr/lib/python3.4/sysconfig.py", line 597, in get_config_var
    return get_config_vars().get(name)
  File "/usr/lib/python3.4/sysconfig.py", line 540, in get_config_vars
    _init_posix(_CONFIG_VARS)
  File "/usr/lib/python3.4/sysconfig.py", line 412, in _init_posix
    from _sysconfigdata import build_time_vars
  File "/usr/lib/python3.4/_sysconfigdata.py", line 6, in <module>
    from _sysconfigdata_m import *
ImportError: No module named '_sysconfigdata_m'
dpkg: error processing package python3-minimal (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 python3-minimal
Başlık: Ynt: Python3 Güncelleme Sonrası Hata
Gönderen: Genizcil_N - 15 Temmuz 2015, 23:22:24
Python3-minimal paketini kaldırıp tekrar kurmayı deneyebilirsiniz. Bu sorunu çözer mi yoksa durum daha da mı kötüye gider bilmiyorum. Deneyimli üyelerin yanıt yazamasını beklemenizi öneririm.
Kod: [Seç]
sudo apt-get install --reinstall python3-minimal
Kod: [Seç]
sudo apt-get install --fix-broken
Başlık: Ynt: Python3 Güncelleme Sonrası Hata
Gönderen: Butterfly - 16 Temmuz 2015, 00:28:18
Alıntı
ImportError: No module named '_sysconfigdata_m'

Buradaki (http://www.elevenbits.com/blog/25/) öneriyi uygulamayı deneyelim.

Önce aşağıdaki komutla /etc/bash.bashrc dosyasını yedekleyelim.

Kod: [Seç]
sudo cp /etc/bash.bashrc /etc/bash.bashrc.ydk
Şimdi aşağıdaki komut ile /etc/bash.bashrc dosyasını açınız.
(Mate masaüstü için gedit yerine pluma yazınız.)

Kod: [Seç]
sudo gedit /etc/bash.bashrc
Açılan dosyada aşağıdaki satırı bulup,

Kod: [Seç]
/usr/bin/python /usr/lib/command-not-found -- $1
girintilere dikkat ederek aşağıdaki şekilde düzenleyip kaydetmeyi deneyiniz.

Kod: [Seç]
/usr/lib/command-not-found -- $1
Aşağıdaki gibi olacak.
Kod: [Seç]
# if the command-not-found package is installed, use it
if [ -x /usr/lib/command-not-found ]; then
function command_not_found_handle {
        # check because c-n-f could've been removed in the meantime
                if [ -x /usr/lib/command-not-found ]; then
   /usr/lib/command-not-found -- $1
                   return $?
else
   return 127
fi
}
fi

Sonra aşağıdaki komut ile kuruluma devam etmeyi deneyebilirsiniz.

Kod: [Seç]
sudo apt-get install -f
Başlık: Ynt: Python3 Güncelleme Sonrası Hata
Gönderen: Anafartalar - 16 Temmuz 2015, 11:54:45
Merhaba,

Söylediğiniz işlemleri yaptım ama değişen bir şey olmadı.

/etc/bash.bashrc  dosyasının çıktısı aşağıda
Kod: [Seç]
if [ -x /usr/lib/command-not-found ]; then
function command_not_found_handle {
        # check because c-n-f could've been removed in the meantime
                if [ -x /usr/lib/command-not-found ]; then
   /usr/lib/command-not-found -- $1
                   return $?
else
   return 127
fi
}
fi
sudo apt-get install -f yaptığımda da yine ilk iletimde belirttiğim hatayı alıyorum.
Başlık: Ynt: Python3 Güncelleme Sonrası Hata
Gönderen: Butterfly - 16 Temmuz 2015, 18:15:46
Önce [member=9]karakartala[/member]'nın önceki mesajındaki önerileri uygulamayı deneyiniz.

Sorun çözülmezse

Kod: [Seç]
/usr/bin/python /usr/lib/command-not-found -- $1
satırını

Kod: [Seç]
/usr/bin/python3.4 /usr/lib/command-not-found -- $1
olarak değiştirmeyi deneyebilirsiniz.

Kaynak (http://forums.linuxmint.com/viewtopic.php?f=90&t=182468)
Başlık: Ynt: Python3 Güncelleme Sonrası Hata
Gönderen: Anafartalar - 17 Temmuz 2015, 19:59:47
[member=9]karakartala[/member] ve [member=8]Butterfly[/member] söylediğiniz işlemleri yaptım ama değişen birşey yok. O yüzden yeniden kulum yapacağım. Desteğiniz için çok teşekkürler. Aşağıdaki sorunla ilgili destek olabilir misiniz?

http://forum.linuxmint.net.tr/index.php?topic=3700.0 (http://forum.linuxmint.net.tr/index.php?topic=3700.0)
Başlık: Ynt: Python3 Güncelleme Sonrası Hata
Gönderen: Butterfly - 17 Temmuz 2015, 23:21:32
Yeni kuruluma gidildiği için konuyu etiketlemeden kilitliyorum.