Linux Mint Türkiye

Yazılım => Paket Yönetimi, Güncelleme ve Depo Sorunları => Konuyu başlatan: mesut24 - 01 Ocak 2019, 21:42:48

Başlık: [Çözüldü] Sub-process /usr/bin/dpkg returned an error code (1) hatası
Gönderen: mesut24 - 01 Ocak 2019, 21:42:48
Merhaba sistemde böyle bir hata alıyorum ayrıca 4 adet bozuk paket uyarısı veriyor hiçbirşey kaldırıp yada yükleme yapamıyorum

Mesajlar Birleştirildi.
Kod: [Seç]
erden@erdenler:~$ inxi -Sr
System:    Host: erdenler Kernel: 4.15.0-43-generic x86_64 bits: 64
           Desktop: Cinnamon 3.8.9  Distro: Linux Mint 19 Tara
Repos:     Active apt sources in file: /etc/apt/sources.list.d/freecad-maintainers-freecad-stable-bionic.list
           deb http://ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu bionic main
           deb-src http://ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu bionic main
           Active apt sources in file: /etc/apt/sources.list.d/js-reynaud-kicad-5-bionic.list
           deb http://ppa.launchpad.net/js-reynaud/kicad-5/ubuntu bionic main
           deb-src http://ppa.launchpad.net/js-reynaud/kicad-5/ubuntu bionic main
           Active apt sources in file: /etc/apt/sources.list.d/official-package-repositories.list
           deb http://packages.linuxmint.com tessa main upstream import backport #id:linuxmint_main
           deb http://archive.ubuntu.com/ubuntu bionic main restricted universe multiverse
           deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse
           deb http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse
           deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
           deb http://archive.canonical.com/ubuntu/ bionic partner
           Active apt sources in file: /etc/apt/sources.list.d/rvm-smplayer-bionic.list
           deb http://ppa.launchpad.net/rvm/smplayer/ubuntu bionic main
           deb-src http://ppa.launchpad.net/rvm/smplayer/ubuntu bionic main
           Active apt sources in file: /etc/apt/sources.list.d/webupd8team-java-bionic.list
           deb http://ppa.launchpad.net/webupd8team/java/ubuntu bionic main
           deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu bionic main


Mesajlar Birleştirildi.
Kod: [Seç]
erden@erdenler:~$ sudo apt-get update
[sudo] password for erden:
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [83,2 kB]
Hit:2 http://ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu bionic InRelease                                                                                                 
Hit:3 http://archive.ubuntu.com/ubuntu bionic InRelease                                                                                                                                   
Get:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88,7 kB]                                                                                                                                       
Hit:5 http://ppa.launchpad.net/js-reynaud/kicad-5/ubuntu bionic InRelease                                                                                                                                       
Hit:6 http://archive.canonical.com/ubuntu bionic InRelease                                                                                                       
Ign:7 http://packages.linuxmint.com tessa InRelease                                                                                                                     
Hit:8 http://ppa.launchpad.net/rvm/smplayer/ubuntu bionic InRelease                                       
Get:9 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74,6 kB]                                               
Hit:10 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease                                                 
Hit:11 http://packages.linuxmint.com tessa Release
Fetched 247 kB in 1s (230 kB/s)                   
Reading package lists... Done


Mesajlar Birleştirildi.
Kod: [Seç]
erden@erdenler:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  file
The following NEW packages will be installed:
  file
0 upgraded, 1 newly installed, 0 to remove and 102 not upgraded.
1 not fully installed or removed.
Need to get 0 B/22,1 kB of archives.
After this operation, 81,9 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up install-info (6.5.0.dfsg.1-2) ...
/usr/sbin/update-info-dir: 4: /etc/environment: source: not found
dpkg: error processing package install-info (--configure):
 installed install-info package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
 install-info
E: Sub-process /usr/bin/dpkg returned an error code (1)

Başlık: Ynt: Sub-process /usr/bin/dpkg returned an error code (1) hatası
Gönderen: Butterfly - 01 Ocak 2019, 23:04:24
Çıktısına bakalım.

Kod: [Seç]
cat /etc/environment
Başlık: Ynt: Sub-process /usr/bin/dpkg returned an error code (1) hatası
Gönderen: mesut24 - 02 Ocak 2019, 00:48:44
Kod: [Seç]
erden@erdenler:~$ cat /etc/environment

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
JAVA_HOME="/usr/lib/jvm/java-8-oracle"
source /etc/environment
echo $JAVA_HOME

Başlık: Ynt: Sub-process /usr/bin/dpkg returned an error code (1) hatası
Gönderen: Butterfly - 02 Ocak 2019, 01:39:57
Konu açmadan önce, sistemde yaptığınız düzenlemeleri belirtmeye dikkat edelim.

[warning]Konu Açarken Dikkat Edilmesi Gerekenler (https://forum.linuxmint.net.tr/index.php?topic=3067.0)[/warning]

/etc/environment dosyasındaki aşağıdaki satırları siliniz, bu satırlar ilgili dosyadaki değişkenleri yükleyip, ardından değişkeni kontrol amacıyla basmak için kullanılıyor olabilir. Bunları ilgili dosyaya eklemeye gerek yok.

Kod: [Seç]
source /etc/environment
echo $JAVA_HOME

Ardından aşağıdaki komutu çalıştırınız.

Kod: [Seç]
apt install -f
Başlık: Ynt: Sub-process /usr/bin/dpkg returned an error code (1) hatası
Gönderen: mesut24 - 02 Ocak 2019, 12:07:51
Teşekkür ederim sorunum çözüldü