LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Could not install Handbreak through terminal, Returns error (https://www.linuxquestions.org/questions/linux-software-2/could-not-install-handbreak-through-terminal-returns-error-4175637432/)

u9477100 08-29-2018 11:19 PM

Could not install Handbreak through terminal, Returns error
 
Dear Sir/Madam,
I am a newbi, a complete novice. I have successfully installed Linux distro "Tara" in my computer . I have installed other required programmes also without any problem through terminal.
But in installing Handbrake when I am giving the command to install Handbrake-cli I am getting an error at the end as follows:
"Errors were encountered while Processing:
Postfix
E: sub-process/usr/bin/dpkg returned an error code (1)
:-$
Please help me to solve this problem.

ondoho 08-30-2018 01:13 AM

please show us ALL commands issued and their COMPLETE output.
please use code tags for code (see my signature).

u9477100 08-30-2018 06:34 AM

to Ondoho:
I issued the following commands:
$ sudo add-apt-repository ppa:stebbins/handbrake-release
$ sudo apt-get update
$ sudo apt-get install handbrake-gtk handbrake-cli

after issuing the last command the terminal gave the error message code(1)

But surprisingly I found Handbrake under the menu ' Sound & Video' after some time.
Incidentally I do not know how to take the total output coming (scrawling)in the terminal, I am great noice, you know.

Moreover if I go to install any software through Software Manager in all cases it gives a dialogue box with an error message that intallation or removal failed. When I close the dialogue Box the LAUNCH button comes up and pressing the same the programme sometimmes is launched and sometimes I do not find trace of the programme. In case of Removal of any same Programme same thing happens but the programme is removed.

My mobo is Gygabyte dual bios B85M-D3H
OS is Linux Mint 19 Cinamon ver 3.8.8
RAM 8GB
Processor i-5 @ 3.10 X4
HDD: 1TB
I am using Dual booting with MS Windows10 build 1803

I have installed Linux only 7 days ago in Drive D: having 299GB space, C: Drive hosing Windows 10 and D; drive is resident of all important files.
Hope I have answered all your quiries except one about Total output (due to ignorance of my knowledge).

u9477100 08-30-2018 09:20 AM

To ONDOHO
Here is the complete output against commands given

soma@soma-B85M-D3H:~$ sudo apt-get install hplip-gui
[sudo] password for soma:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
hplip-gui
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/19.0 kB of archives.
After this operation, 151 kB of additional disk space will be used.
Selecting previously unselected package hplip-gui.
(Reading database ... 301327 files and directories currently installed.)
Preparing to unpack .../hplip-gui_3.17.10+repack0-5_all.deb ...
Unpacking hplip-gui (3.17.10+repack0-5) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23+linuxmint3) ...
Processing triggers for man-db (2.8.3-2) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Setting up hplip-gui (3.17.10+repack0-5) ...
Setting up postfix (3.3.0-1) ...

Postfix (main.cf) configuration was not changed. If you need to make changes,
edit /etc/postfix/main.cf (and others) as needed. To view Postfix
configuration values, see postconf(1).

After modifying main.cf, be sure to run 'service postfix reload'.

Running newaliases
newaliases: warning: valid_hostname: misplaced delimiter: soma-B85M-D3H..name
newaliases: fatal: file /etc/postfix/main.cf: parameter myhostname: bad parameter value: soma-B85M-D3H..name
dpkg: error processing package postfix (--configure):
installed postfix package post-installation script subprocess returned error exit status 75
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Errors were encountered while processing:
postfix
E: Sub-process /usr/bin/dpkg returned an error code (1)
soma@soma-B85M-D3H:~$ sudo apt-get update
Ign:1 http://packages.linuxmint.com tara InRelease
Hit:2 http://packages.linuxmint.com tara Release
Hit:4 http://archive.canonical.com/ubuntu bionic InRelease
Hit:5 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:6 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Hit:7 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:8 http://ppa.launchpad.net/openshot.developers/ppa/ubuntu bionic InRelease
Hit:9 https://deb.opera.com/opera-stable stable InRelease
Hit:10 http://ppa.launchpad.net/qbittorrent...-stable/ubuntu bionic InRelease
Hit:11 http://ppa.launchpad.net/rebuntu16/a...fficial/ubuntu bionic InRelease
Hit:12 http://ppa.launchpad.net/stebbins/ha...eleases/ubuntu bionic InRelease
Get:13 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Fetched 172 kB in 36s (4,745 B/s)
Reading package lists... Done
soma@soma-B85M-D3H:~$

fatmac 08-30-2018 11:05 AM

Possibly got corrupted over the internet, just try installing it again.

Habitual 08-30-2018 11:33 AM

Quote:

Originally Posted by u9477100 (Post 5897801)
Dear Sir/Madam,
I am a newbi, a complete novice. I have successfully installed Linux distro "Tara" in my computer .

LinuxMint 19


Open a terminal and issue:
Code:

sudo apt-get install -y handbrake-cli
When prompted, enter your password.

Have fun!

u9477100 08-31-2018 02:07 AM

Quote:

Originally Posted by ondoho (Post 5897831)
please show us ALL commands issued and their COMPLETE output.
please use code tags for code (see my signature).

#include <stdio.h>

int main()
{
.soma@soma-B85M-D3H:~$ sudo apt-get install hplip-gui
[sudo] password for soma:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
hplip-gui
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/19.0 kB of archives.
After this operation, 151 kB of additional disk space will be used.
Selecting previously unselected package hplip-gui.
(Reading database ... 301327 files and directories currently installed.)
Preparing to unpack .../hplip-gui_3.17.10+repack0-5_all.deb ...
Unpacking hplip-gui (3.17.10+repack0-5) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23+linuxmint3) ...
Processing triggers for man-db (2.8.3-2) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Setting up hplip-gui (3.17.10+repack0-5) ...
Setting up postfix (3.3.0-1) ...

Postfix (main.cf) configuration was not changed. If you need to make changes,
edit /etc/postfix/main.cf (and others) as needed. To view Postfix
configuration values, see postconf(1).

After modifying main.cf, be sure to run 'service postfix reload'.

Running newaliases
newaliases: warning: valid_hostname: misplaced delimiter: soma-B85M-D3H..name
newaliases: fatal: file /etc/postfix/main.cf: parameter myhostname: bad parameter value: soma-B85M-D3H..name
dpkg: error processing package postfix (--configure):
installed postfix package post-installation script subprocess returned error exit status 75
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Errors were encountered while processing:
postfix
E: Sub-process /usr/bin/dpkg returned an error code (1)..
}

My mobo is Gigabyte B85M-D3H dual bios
Processor : i-5 @ 3.10 Ghz X4
Memory: 8GB
OS: Linux-Mint 19 TARA
I was a window user and installed Linux 7 days ago with a dual booting mode on bios legacy
Mysteriously, Handbrake is installed and working properly. But the problem of Postfix and error return continuing in all cases. Even when I am installing or removing any application through "Software Manager" at the end a dialogue box appears showing " The installation or Removal has failed". But sometimes the installation is done sometimes not. Similar is wirh removal. I presume both the errors are linked together.
In this code I tried to install HPLIP-Gtk current version (3.18.7) .But error came yet the programme Hplip is installed
So please help me how to get rid of such error in my system.
With regards.

u9477100 08-31-2018 06:15 AM

Quote:

Originally Posted by u9477100 (Post 5898306)
#include <stdio.h>

int main()
{
.soma@soma-B85M-D3H:~$ sudo apt-get install hplip-gui
[sudo] password for soma:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
hplip-gui
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/19.0 kB of archives.
After this operation, 151 kB of additional disk space will be used.
Selecting previously unselected package hplip-gui.
(Reading database ... 301327 files and directories currently installed.)
Preparing to unpack .../hplip-gui_3.17.10+repack0-5_all.deb ...
Unpacking hplip-gui (3.17.10+repack0-5) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23+linuxmint3) ...
Processing triggers for man-db (2.8.3-2) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Setting up hplip-gui (3.17.10+repack0-5) ...
Setting up postfix (3.3.0-1) ...

Postfix (main.cf) configuration was not changed. If you need to make changes,
edit /etc/postfix/main.cf (and others) as needed. To view Postfix
configuration values, see postconf(1).

After modifying main.cf, be sure to run 'service postfix reload'.

Running newaliases
newaliases: warning: valid_hostname: misplaced delimiter: soma-B85M-D3H..name
newaliases: fatal: file /etc/postfix/main.cf: parameter myhostname: bad parameter value: soma-B85M-D3H..name
dpkg: error processing package postfix (--configure):
installed postfix package post-installation script subprocess returned error exit status 75
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Errors were encountered while processing:
postfix
E: Sub-process /usr/bin/dpkg returned an error code (1)..
}

My mobo is Gigabyte B85M-D3H dual bios
Processor : i-5 @ 3.10 Ghz X4
Memory: 8GB
OS: Linux-Mint 19 TARA
I was a window user and installed Linux 7 days ago with a dual booting mode on bios legacy
Mysteriously, Handbrake is installed and working properly. But the problem of Postfix and error return continuing in all cases. Even when I am installing or removing any application through "Software Manager" at the end a dialogue box appears showing " The installation or Removal has failed". But sometimes the installation is done sometimes not. Similar is wirh removal. I presume both the errors are linked together.
In this code I tried to install HPLIP-Gtk current version (3.18.7) .But error came yet the programme Hplip is installed
So please help me how to get rid of such error in my system.
With regards.


Subsequently I found a post where the same error was referred in the year 2015 and was answered by BROTO. He advised some commands for resolving. I tried all those commands seperately. the total output is given below :
oma@soma-B85M-D3H:~$ sudo dpkg --purge refind
[sudo] password for soma:
dpkg: warning: ignoring request to remove refind which isn't installed
soma@soma-B85M-D3H:~$ sudo dpkg --configure -a
Setting up postfix (3.3.0-1) ...

Postfix (main.cf) configuration was not changed. If you need to make changes,
edit /etc/postfix/main.cf (and others) as needed. To view Postfix
configuration values, see postconf(1).

After modifying main.cf, be sure to run 'service postfix reload'.

Running newaliases
newaliases: warning: valid_hostname: misplaced delimiter: soma-B85M-D3H..name
newaliases: fatal: file /etc/postfix/main.cf: parameter myhostname: bad parameter value: soma-B85M-D3H..name
dpkg: error processing package postfix (--configure):
installed postfix package post-installation script subprocess returned error exit status 75
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Errors were encountered while processing:
postfix
soma@soma-B85M-D3H:~$ sudo dpkg --audit
The following packages are only half configured, probably due to problems
configuring them the first time. The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
postfix High-performance mail transport agent

soma@soma-B85M-D3H:~$ sudo apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Hit:3 http://ppa.launchpad.net/openshot.developers/ppa/ubuntu bionic InRelease
Hit:4 http://archive.canonical.com/ubuntu bionic InRelease
Get:5 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Hit:6 http://ppa.launchpad.net/qbittorrent...-stable/ubuntu bionic InRelease
Hit:7 http://ppa.launchpad.net/rebuntu16/a...fficial/ubuntu bionic InRelease
Hit:8 https://deb.opera.com/opera-stable stable InRelease
Hit:9 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Ign:10 http://packages.linuxmint.com tara InRelease
Hit:11 http://ppa.launchpad.net/stebbins/ha...eleases/ubuntu bionic InRelease
Hit:12 http://packages.linuxmint.com tara Release
Fetched 172 kB in 2s (84.7 kB/s)
Reading package lists... Done
soma@soma-B85M-D3H:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 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 postfix (3.3.0-1) ...

Postfix (main.cf) configuration was not changed. If you need to make changes,
edit /etc/postfix/main.cf (and others) as needed. To view Postfix
configuration values, see postconf(1).

After modifying main.cf, be sure to run 'service postfix reload'.

Running newaliases
newaliases: warning: valid_hostname: misplaced delimiter: soma-B85M-D3H..name
newaliases: fatal: file /etc/postfix/main.cf: parameter myhostname: bad parameter value: soma-B85M-D3H..name
dpkg: error processing package postfix (--configure):
installed postfix package post-installation script subprocess returned error exit status 75
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Errors were encountered while processing:
postfix
E: Sub-process /usr/bin/dpkg returned an error code (1)
soma@soma-B85M-D3H:~$

The post was marked as solved. But alas my problem is not solved.
Please provide me help
Thanking you.

u9477100 08-31-2018 06:40 AM

#include <stdio.h>

int main()
{soma@soma-B85M-D3H:~$ sudo dpkg --purge refind
[sudo] password for soma:
dpkg: warning: ignoring request to remove refind which isn't installed
soma@soma-B85M-D3H:~$ sudo dpkg --configure -a
Setting up postfix (3.3.0-1) ...

Postfix (main.cf) configuration was not changed. If you need to make changes,
edit /etc/postfix/main.cf (and others) as needed. To view Postfix
configuration values, see postconf(1).

After modifying main.cf, be sure to run 'service postfix reload'.

Running newaliases
newaliases: warning: valid_hostname: misplaced delimiter: soma-B85M-D3H..name
newaliases: fatal: file /etc/postfix/main.cf: parameter myhostname: bad parameter value: soma-B85M-D3H..name
dpkg: error processing package postfix (--configure):
installed postfix package post-installation script subprocess returned error exit status 75
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Errors were encountered while processing:
postfix
soma@soma-B85M-D3H:~$ sudo dpkg --audit
The following packages are only half configured, probably due to problems
configuring them the first time. The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
postfix High-performance mail transport agent

soma@soma-B85M-D3H:~$ sudo apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Hit:3 http://ppa.launchpad.net/openshot.developers/ppa/ubuntu bionic InRelease
Hit:4 http://archive.canonical.com/ubuntu bionic InRelease
Get:5 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Hit:6 http://ppa.launchpad.net/qbittorrent...-stable/ubuntu bionic InRelease
Hit:7 http://ppa.launchpad.net/rebuntu16/a...fficial/ubuntu bionic InRelease
Hit:8 https://deb.opera.com/opera-stable stable InRelease
Hit:9 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Ign:10 http://packages.linuxmint.com tara InRelease
Hit:11 http://ppa.launchpad.net/stebbins/ha...eleases/ubuntu bionic InRelease
Hit:12 http://packages.linuxmint.com tara Release
Fetched 172 kB in 2s (84.7 kB/s)
Reading package lists... Done
soma@soma-B85M-D3H:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 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 postfix (3.3.0-1) ...

Postfix (main.cf) configuration was not changed. If you need to make changes,
edit /etc/postfix/main.cf (and others) as needed. To view Postfix
configuration values, see postconf(1).

After modifying main.cf, be sure to run 'service postfix reload'.

Running newaliases
newaliases: warning: valid_hostname: misplaced delimiter: soma-B85M-D3H..name
newaliases: fatal: file /etc/postfix/main.cf: parameter myhostname: bad parameter value: soma-B85M-D3H..name
dpkg: error processing package postfix (--configure):
installed postfix package post-installation script subprocess returned error exit status 75
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Errors were encountered while processing:
postfix
E: Sub-process /usr/bin/dpkg returned an error code (1)
soma@soma-B85M-D3H:~$
}

hydrurga 08-31-2018 09:40 AM

@OP, please paste the output from the following command so we can see if you have any broken packages (please paste it within CODE tags or do not include the line of equals):

Code:

dpkg -l | grep -v "^ii"

ondoho 09-01-2018 03:42 PM

Quote:

Originally Posted by u9477100 (Post 5898306)
#include <stdio.h>

int main()
{
.soma@soma-B85M-D3H:~$ sudo apt-get install hplip-gui
[sudo] password for soma:
...

it starts like a C program, then continues like shell commands.
I'm seriously baffled - this makes zero sense to me, so little that I cannot even ask the right questions.
I hope hydrurga can handle this in their usual straightforward & relentless manner.

u9477100 09-01-2018 09:55 PM

Reply to Hydruga
 
Code:

soma@soma-B85M-D3H:~$ dpkg -l | grep -v "^ii"
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                      Version                                                      Architecture Description
+++-==========================================-============================================================-============-===============================================================================
ic  libbonobo2-0:amd64                        2.32.1-3                                                    amd64        Bonobo CORBA interfaces library
ic  libbonobo2-common                          2.32.1-3                                                    all          Bonobo CORBA interfaces library -- support files
ic  libgnome-keyring0:amd64                    3.12.0-1build1                                              amd64        GNOME keyring services library
ic  libgnome2-common                          2.32.1-6                                                    all          Deprecated GNOME 2 library - common files
ic  libgnomevfs2-common                        1:2.24.4-6.1ubuntu2                                          amd64        GNOME Virtual File System (common files)
ic  libgnomevfs2-extra:amd64                  1:2.24.4-6.1ubuntu2                                          amd64        GNOME Virtual File System (extra modules)
pc  mail-notification                          5.4.dfsg.1-14ubuntu2                                        amd64        mail notification in system tray
ic  pct-scanner-scripts                        0.0.4-3ubuntu1                                              all          scan and create merged DjVu and PDF documents for archiving
iF  postfix                                    3.3.0-1                                                      amd64        High-performance mail transport agent
ic  sane                                      1.0.14-12build1                                              amd64        scanner graphical frontends
ic  sane-utils                                1.0.27-1~experimental3ubuntu2                                amd64        API library for scanners -- utilities
pc  xpaint                                    2.9.1.4-3.2                                                  amd64        simple paint program for X



soma@soma-B85M-D3H:~$

hydrurga 09-02-2018 03:20 AM

I asked you kindly to "please paste it within CODE tags or do not include the line of equals".

You did neither and thus the width of this thread is now unmanageable.

I have asked a mod to rectify the situation.

u9477100 09-03-2018 09:41 PM

Reply to Hydruga
 
Dear Hydruga,
I am extremely sorry. I am a great novice and do not know how to send the output of your advised code in the way you asked me.
However I have re-installed Linux-mint 19 Tara as other problems also cropped up due to my mishandling and possibly running BleachBit.
I am trying to use Tara as per guidelines from Internet & "its Foss". If any further problem arises I shall seek help from forum.
But still I would like to know what you meant by sending output in quotes or not to include equals. Kindly send me a reply to enlighten me.

hydrurga 09-04-2018 04:24 AM

Quote:

Originally Posted by u9477100 (Post 5899636)
Dear Hydruga,
I am extremely sorry. I am a great novice and do not know how to send the output of your advised code in the way you asked me.
However I have re-installed Linux-mint 19 Tara as other problems also cropped up due to my mishandling and possibly running BleachBit.
I am trying to use Tara as per guidelines from Internet & "its Foss". If any further problem arises I shall seek help from forum.
But still I would like to know what you meant by sending output in quotes or not to include equals. Kindly send me a reply to enlighten me.

Hi there. The output of the command I asked you to run in post #11 unfortunately produces a long line of equals signs (=) as part of its output. If that line is pasted in to a normal Linux Questions reply window then the LQ code does not know how to break the line up, thus resulting in a very long line which stretches the width of the post and thus the whole thread.

Two ways of mitigating this are to post the output within CODE tags (see the # symbol on LQ's advanced edit toolbar) or to remove the equals signs from the output that is posted. This is what I asked you to do. If you didn't understand my request then you could have asked me at the time before posting.

As it is, the mods appear to have ignored my request to remove the equals signs and this thread remains stretched and difficult to manage for those with smaller screens.

Good luck with your new install of Tara - I hope it goes well! Let us know if you face any further difficulties.


All times are GMT -5. The time now is 05:24 PM.