2 days back I began by trying to install Unetbootin, something I've successfully done many times before. This time it failed with the error message above.
I've tried several so called fixes from the 'net, all seeming to come back to the same error message1.
Assuming that as Unetbootin only partially installed and it was the author if its own demise, I've tried what few tricks I have in my notebook (paper and pencil type) to remove it. Failed at every turn.
I've cautiously searched my system files, hoping to find a Unetbootin folder I could remove, but nay.
I seem to have run into a fairly solid wall at this point and am beginning to move in circles.
The doc is a copy of all my Terminal commands from yesterday and today - in case it is helpful.
Cheers
P
Hmm, seems I can not upload a doc here, will paste it as another page.
bic@bic-System-Product-Name:~$ sudo apt-get install unetbootin
[sudo] password for bic:
Reading package lists... Done
Building dependency tree
Reading state information... Done
unetbootin is already the newest version (667-1~bionic2).
0 to upgrade, 0 to newly install, 0 to remove and 8 not to upgrade.
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 install-info (6.5.0.dfsg.1-2) ...
/usr/sbin/update-info-dir: 5: /etc/environment: ...: 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)
bic@bic-System-Product-Name:~$ sudo add-apt-repository ppa:gezakovacs/ppa
Cannot add PPA: 'ppa:~gezakovacs/ubuntu/ppa'.
ERROR: '~gezakovacs' user or team does not exist.
bic@bic-System-Product-Name:~$ sudo apt-get update
Hit:1 Index of /inkscape.dev/stable/ubuntu bionic InRelease
Hit:2 Index of /ubuntu bionic InRelease
Hit:3 Index of /ubuntu bionic InRelease
Get:4 Index of /ubuntu bionic-updates InRelease [88.7 kB]
Hit:5 Index of /zorinos/apps/ubuntu bionic InRelease
Get:6 Index of /ubuntu bionic-backports InRelease [83.3 kB]
Get:7 Index of /ubuntu bionic-security InRelease [88.7 kB]
Hit:8 Index of /wine-builds/ubuntu bionic InRelease
Hit:9 Index of /stable/ bionic InRelease
Hit:10 Index of /zorinos/drivers/ubuntu bionic InRelease
Hit:11 Index of /patches/ bionic InRelease
Get:12 Index of /ubuntu bionic-updates/main amd64 Packages [2,790 kB]
Hit:13 Index of /yandex-browser/deb/ stable InRelease
Hit:14 Index of /apps/ bionic InRelease
Hit:15 Index of /drivers/ bionic InRelease
Hit:16 Index of /zorinos/patches/ubuntu bionic InRelease
Hit:17 Index of /zorinos/stable/ubuntu bionic InRelease
Get:18 Index of /ubuntu bionic-updates/main i386 Packages [1,562 kB]
Get:19 Index of /ubuntu bionic-updates/main amd64 DEP-11 Metadata [297 kB]
Get:20 Index of /ubuntu bionic-updates/universe amd64 DEP-11 Metadata [302 kB]
Get:21 Index of /ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2,468 B]
Get:22 Index of /ubuntu bionic-backports/main amd64 DEP-11 Metadata [8,136 B]
Get:23 Index of /ubuntu bionic-backports/universe amd64 DEP-11 Metadata [10.1 kB]
Get:24 Index of /ubuntu bionic-security/main amd64 DEP-11 Metadata [55.2 kB]
Get:25 Index of /ubuntu bionic-security/universe amd64 DEP-11 Metadata [61.1 kB]
Get:26 Index of /ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2,464 B]
Fetched 5,351 kB in 7s (745 kB/s)
Reading package lists... Done
bic@bic-System-Product-Name:~$ sudo apt-get install --reinstall ca-certificates
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 to upgrade, 0 to newly install, 1 reinstalled, 0 to remove and 8 not to upgrade.
1 not fully installed or removed.
Need to get 144 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 Index of /ubuntu bionic-updates/main amd64 ca-certificates all 20211016~18.04.1 [144 kB]
Fetched 144 kB in 1s (133 kB/s)
Preconfiguring packages ...
Setting up install-info (6.5.0.dfsg.1-2) ...
/usr/sbin/update-info-dir: 5: /etc/environment: ...: 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)
bic@bic-System-Product-Name:~$ sudo -E add-apt-repository ppa:linrunner/tlp
Cannot add PPA: 'ppa:~linrunner/ubuntu/tlp'.
ERROR: '~linrunner' user or team does not exist.
bic@bic-System-Product-Name:~$ sudo apt-get update && sudo apt-get install ca-certificates -y && sudo update-ca-certificates
Hit:1 Index of /ubuntu bionic InRelease
Hit:2 Index of /ubuntu bionic-updates InRelease
Hit:3 Index of /inkscape.dev/stable/ubuntu bionic InRelease
Hit:4 Index of /ubuntu bionic-backports InRelease
Hit:5 Index of /ubuntu bionic InRelease
Hit:6 Index of /ubuntu bionic-security InRelease
Hit:7 Index of /wine-builds/ubuntu bionic InRelease
Hit:8 Index of /zorinos/apps/ubuntu bionic InRelease
Hit:9 Index of /zorinos/drivers/ubuntu bionic InRelease
Hit:10 Index of /stable/ bionic InRelease
Hit:11 Index of /yandex-browser/deb/ stable InRelease
Hit:12 Index of /zorinos/patches/ubuntu bionic InRelease
Hit:13 Index of /patches/ bionic InRelease
Hit:14 Index of /apps/ bionic InRelease
Hit:15 Index of /zorinos/stable/ubuntu bionic InRelease
Hit:16 Index of /drivers/ bionic InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
ca-certificates is already the newest version (20211016~18.04.1).
0 to upgrade, 0 to newly install, 0 to remove and 8 not to upgrade.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up install-info (6.5.0.dfsg.1-2) ...
/usr/sbin/update-info-dir: 5: /etc/environment: ...: 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)
bic@bic-System-Product-Name:~$ sudo dpkg --configure -a
Setting up install-info (6.5.0.dfsg.1-2) ...
/usr/sbin/update-info-dir: 5: /etc/environment: ...: 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
bic@bic-System-Product-Name:~$ sudo apt install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 to upgrade, 0 to newly install, 0 to remove and 8 not to upgrade.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up install-info (6.5.0.dfsg.1-2) ...
/usr/sbin/update-info-dir: 5: /etc/environment: ...: 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)
bic@bic-System-Product-Name:~$ sudo apt install --fix-broken
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 to upgrade, 0 to newly install, 0 to remove and 8 not to upgrade.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up install-info (6.5.0.dfsg.1-2) ...
/usr/sbin/update-info-dir: 5: /etc/environment: ...: 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)
bic@bic-System-Product-Name:~$ sudo dpkg --configure -a
Setting up install-info (6.5.0.dfsg.1-2) ...
/usr/sbin/update-info-dir: 5: /etc/environment: ...: 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
bic@bic-System-Product-Name:~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 to upgrade, 0 to newly install, 0 to remove and 8 not to upgrade.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up install-info (6.5.0.dfsg.1-2) ...
/usr/sbin/update-info-dir: 5: /etc/environment: ...: 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)
bic@bic-System-Product-Name:~$ sudo dpkg ––list
dpkg: error: need an action option
Type dpkg --help for help about installing and uninstalling packages [*];
Use 'apt' or 'aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Options marked [*] produce a lot of output - pipe it through 'less' or 'more' !
bic@bic-System-Product-Name:~$ sudo dpkg–query –l | grep unetbootin
sudo: dpkg–query: command not found
bic@bic-System-Product-Name:~$ sudo apt-get remove unetbootin
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
extlinux syslinux syslinux-common
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED
unetbootin
0 to upgrade, 0 to newly install, 1 to remove and 8 not to upgrade.
1 not fully installed or removed.
After this operation, 893 kB disk space will be freed.
Do you want to continue? [Y/n] y
Setting up install-info (6.5.0.dfsg.1-2) ...
/usr/sbin/update-info-dir: 5: /etc/environment: ...: 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)
bic@bic-System-Product-Name:~$ sudo apt-get remove ––purge unetbootin
[sudo] password for bic:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ––purge
bic@bic-System-Product-Name:~$ sudo apt-get clean
bic@bic-System-Product-Name:~$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 to upgrade, 0 to newly install, 0 to remove and 8 not to upgrade.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up install-info (6.5.0.dfsg.1-2) ...
/usr/sbin/update-info-dir: 5: /etc/environment: ...: 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)
Hello, again, thnx for a fast reply
I don't think I ran the first one, will try it, second, yes I think so, 3rd, possibly, need to check my file.
Cheers
P
bic@bic-System-Product-Name:~$ sudo mv /var/lib/dpkg/info/install-info.postinst /var/lib/dpkg/info/install-info.postinst.bkp
[sudo] password for bic:
mv: cannot stat '/var/lib/dpkg/info/install-info.postinst': No such file or directory
bic@bic-System-Product-Name:~$ sudo dpkg --configure -a
bic@bic-System-Product-Name:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 to upgrade, 0 to newly install, 0 to remove and 8 not to upgrade.
bic@bic-System-Product-Name:~$
OK, but before I catch the cat, something worked as we now have uninstalled unitbootin. However, we are now back to the PPA issue from last ThursdaY - not sure if that is progress?
Should I still run the cat thing?
bic@bic-System-Product-Name:~$ sudo apt remove unetbootin
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
extlinux syslinux syslinux-common
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED
unetbootin
0 to upgrade, 0 to newly install, 1 to remove and 8 not to upgrade.
After this operation, 893 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 303444 files and directories currently installed.)
Removing unetbootin (667-1~bionic2) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2+zorin1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
bic@bic-System-Product-Name:~$ sudo add-apt-repository ppa:gezakovacs/ppa
Cannot add PPA: 'ppa:~gezakovacs/ubuntu/ppa'.
ERROR: '~gezakovacs' user or team does not exist.
bic@bic-System-Product-Name:~$
That put the cat among the mouses~
bic@bic-System-Product-Name:~$ cat /usr/sbin/update-info-dir
#!/bin/sh
update-info-dir
create a dir file from all installed info files
Copyright 2009, 2014 Norbert Preining
GPLv2
INFODIR=/usr/share/info
set -e
since user's environment is taken over into root account when sudo-ing
we don't want that one's user LANGUAGE setting changes the messages in
the dir file. Unset LANGUAGE and reload /etc/environment to get
the system wide settings. See bug #536476
unset LANGUAGE
unset LANG
if [ -r /etc/environment ] ; then
. /etc/environment
fi
if [ -r /etc/default/locale ] ; then
. /etc/default/locale
fi
Help ()
{
echo "
SYNOPSIS: update-info-dir [-h,--help] [info-directory]
(re-)creates the index of available documentation in info format
(the file /usr/share/info/dir) which is usually presented by info browsers
on startup."
exit 0
}
if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
Help
fi
if [ -n "$1" ] ; then
INFODIR="$1"
fi
if [ ! -d "$INFODIR" ] ; then
echo "Not a directory: $INFODIR." >&2
exit 1
fi
if [ -r "$INFODIR/dir" ] ; then
rm -f "$INFODIR/dir.old"
cp $INFODIR/dir $INFODIR/dir.old
fi
we have to remove the dir file not make install-info being surprised
rm -f "$INFODIR/dir"
errors=0
find "$INFODIR" -type f | while read file ; do
case $file in /dir|/dir.gz|/dir.old|/dir.old.gz|-[0-9]|-[0-9].gz|-[1-9][0-9]|-[1-9][0-9].gz|.png|.jpg)
# these files are ignored
continue
;;
*)
install-info "$file" "$INFODIR/dir" || {
errors=$((errors+1))
}
;;
esac
done
if [ $errors -gt 0 ] ; then
exec >&2
echo
echo "Updating the index of info documentation produced $errors errors."
fi
I have checked the Launchpad PPA and you have it correctly entered there.
Are you using a Proxy or VPN?
Are you connected to the net?
EDIT: Yep, your last reply just shows the answer to both questions:
Here is the issue.
The export function should not be used in /etc/environment. That value (export) is for use in your User Profile (~/.profile) to export that value to your Environment File.
Ok, if you are not using a Proxy, then your /etc/environment file needs a bit of cleaning.
Please see my edited post above...
Not using any proxy, remove the
Launch your perferred File manager...
Navigate to /etc/environment
Right click and open environment with your preferred text editor
Remove those lines
SAVE the file
Ok, opened file, deleted said lines (didn't leave much) but unable to save, did I want to replace, yes, sorry, you don't have permission. (file is Read only)
I'm thinking I should be doing this in terminal, but how?