Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts

Sunday, November 1, 2020

gnome-terminal not opening in Ubuntu

While logged into GNOME in Ubuntu, gnome-terminal will not open. Log file shows as below:
Nov  2 04:42:36 dhcp-31 dbus-daemon[1178]: [session uid=1000 pid=1178] Activating service name='org.gnome.Nautilus' requested by ':1.35' (uid=1000 pid=1415 comm="/usr/bin/gnome-shell " label="unconfined")
Nov  2 04:42:36 dhcp-31 dbus-daemon[1178]: [session uid=1000 pid=1178] Activating service name='org.gnome.Calculator.SearchProvider' requested by ':1.35' (uid=1000 pid=1415 comm="/usr/bin/gnome-shell " label="unconfined")
Nov  2 04:42:36 dhcp-31 dbus-daemon[1178]: [session uid=1000 pid=1178] Activating service name='org.gnome.Characters.BackgroundService' requested by ':1.35' (uid=1000 pid=1415 comm="/usr/bin/gnome-shell " label="unconfined")
Nov  2 04:42:36 dhcp-31 dbus-daemon[1178]: [session uid=1000 pid=1178] Successfully activated service 'org.gnome.Characters.BackgroundService'
Nov  2 04:42:36 dhcp-31 dbus-daemon[1178]: [session uid=1000 pid=1178] Successfully activated service 'org.gnome.Nautilus'
Nov  2 04:42:36 dhcp-31 dbus-daemon[1178]: [session uid=1000 pid=1178] Successfully activated service 'org.gnome.Calculator.SearchProvider'
Nov  2 04:42:39 dhcp-31 systemd[1162]: Started Application launched by gnome-shell.
Nov  2 04:42:49 dhcp-31 gnome-shell[1997]: # Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling StartServiceByName for org.gnome.Terminal: Timeout was reached
Nov  2 04:43:04 dhcp-31 gnome-shell[1415]: Received error from DBus search provider org.gnome.Terminal.desktop during XUbuntuCancel: Gio.IOErrorEnum: Timeout was reached
Nov  2 04:43:04 dhcp-31 org.gnome.Terminal.desktop[2052]: # Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling StartServiceByName for org.gnome.Terminal: Timeout was reached
Nov  2 04:43:04 dhcp-31 systemd[1162]: gnome-launched-org.gnome.Terminal.desktop-2050.scope: Succeeded.
This can be resolved by defining LANG in locale.
root@dhcp2066-31:~# cat /etc/default/locale 
#  File generated by update-locale
LANG="en_US"
LANGUAGE="en_US:"
LANG=en_US.UTF-8
Rebooted and problem solved!!!

Wednesday, August 5, 2020

apt-mirror fix to download installer files

Here are the changes I had to make to be able to download complete Ubuntu repository with X86_64 installer (netboot) directory contents. The apt-mirror was also failing for in18n directory as some files with extensions xz needed to be downloaded - that is fixed as well. Pay attention to less than symbol "<"

root@dhcp2064-29:~# diff /usr/bin/apt-mirror /usr/bin/apt-mirror.ori
> 
423,430d451
<             add_url_to_download( $url . $_ . "/cnf/Commands-" . $arch . ".xz" );            
<             add_url_to_download( $url . $_ . "/installer-amd64/current/legacy-images/netboot/" . "boot.img.gz" );            
<             add_url_to_download( $url . $_ . "/installer-amd64/current/legacy-images/netboot/" . "ldlinux.c32" );            
<             add_url_to_download( $url . $_ . "/installer-amd64/current/legacy-images/netboot/" . "mini.iso" );            
<             add_url_to_download( $url . $_ . "/installer-amd64/current/legacy-images/netboot/" . "netboot.tar.gz" );            
<             add_url_to_download( $url . $_ . "/installer-amd64/current/legacy-images/netboot/" . "pxelinux.0" );            
<             add_url_to_download( $url . $_ . "/installer-amd64/current/legacy-images/netboot/ubuntu-installer/amd64/" . "initrd.gz" );            
<             add_url_to_download( $url . $_ . "/installer-amd64/current/legacy-images/netboot/ubuntu-installer/amd64/" . "linux" );            
466,467c487
<     #$uri =~ s/^([^@]+)?@?// if $uri =~ /@/;
<     $uri =~ s/^([^@]+)?@?// if (split '/',$uri)[0] =~ /@/;
---
>     $uri =~ s/^([^@]+)?@?// if $uri =~ /@/;
503c523
<                     if ( $filename =~ m{^$component/i18n/Translation-[^./]*\.(bz2|xz)$} )
---
>                     if ( $filename =~ m{^$component/i18n/Translation-[^./]*\.bz2$} )
1046d1065
<