Upgrade Single Package in Ubuntu

Refer: upgrade-single-package

As usual you need to fetch an updated index from the Internet:

sudo apt-get update

Now upgrade a package, where Package is whatever you want.

sudo apt-get --only-upgrade install Package
sudo apt-get install Package

Bonus, see list of packages available for upgrade

sudo apt-get update
sudo apt list --upgradable

Upgrade to Ubuntu 20.04

There are issues using a GUI to upgrade, sometimes you cannot get to an acceptance button or the like. It's better to just upgrade from the terminal itself.

Refer: https://ubuntu.com/blog/how-to-upgrade-from-ubuntu-18-04-lts-to-20-04-lts-today

Use the following to see if an upgrade is available

sudo do-release-upgrade -c

Perform the actual upgrade

sudo do-release-upgrade

DVD Playback with Ubuntu 21.04
Refer: https://linuxconfig.org/unable-to-play-the-file-missing-decoder-on-ubuntu-20-04-lts-focal-fossa

PLEASE NOTE: VLC is still a better player option

sudo apt install -y ubuntu-restricted-extras
sudo apt install -y libdvdnav4 libdvd-pkg gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly

Desktop Icons No Longer work with Nautilus

Refer: https://markperez.dev/blog/organize-desktop-icons-ubuntu/

You will need to make Nemo your default desktop controller

Disable Nautilus desktop

gsettings set org.gnome.desktop.background show-desktop-icons false

Install the software and remove gnome extension

sudo apt install nemo dconf-editor ; sudo apt remove gnome-shell-extension-desktop-icons

Autostart the nemo desktop icons, but this needs added as startup action:

nemo-desktop

Then in UI GUI "Startup Applications", add

Name: nemo-desktop
Command: nemo-desktop
Comment: Get icons working on Desktop

Reboot, to complete Desktop setup

Charles did NOT upgrade

Remove it

sudo apt-get remove charles-proxy

Refer: https://www.charlesproxy.com/latest-release/download.do

Extract the download, and launch

/home/mruckman/Downloads/charles/bin/charles

The following DOES NOT Work!

wget -q -O - https://www.charlesproxy.com/packages/apt/PublicKey | sudo apt-key add -
sudo apt-get update
sudo apt-get install charles-proxy

Stacer needed re-installed, use software center

Update How Visual Studio Code Works

Remove all parts of "Visual Studio Code"

sudo apt purge code
sudo apt autoremove

Delete launchers

/usr/share/applications
~/.local/share/applications

Visual Studio Code is going to have problems, ended up removing references to it from menu editor.

Refer: https://github.com/microsoft/vscode/issues/41037

sudo apt-get install code

You need to delete this file and create a new one with menu editor.

/home/mruckman/.local/share/applications

[Desktop Entry]
Version=1.1
Type=Application
Name=Visual Studio Code
Comment=Editor
Icon=com.visualstudio.code
Exec=/usr/share/code/code --no-sandbox --unity-launch %F
Actions=
Categories=Development;

You can use this file instead of creating it:

menulibre-visual-studio-code.desktop

Fonts Need Updated

ttf-fscorefonts

Refer for Patch: https://www.leowkahman.com/2018/01/02/workaround-to-failure-to-download-extra-files-ttf-mscorefonts-installer/

Go here: https://sourceforge.net/projects/corefonts/files/the%20fonts/final/

Delete flash plug-in if it exists

sudo su -
cd /var/lib/update-notifier/package-data-downloads/partial
dpkg-reconfigure ttf-mscorefonts-installer
fc-cache -vr

Refer: http://people.uleth.ca/~daniel.odonnell/Blog/fixing-failure-to-download-extra-fonts-error-in-ubuntu-1910
Refer: https://ranatauqeer.blogspot.com/2019/03/failure-to-download-extra-data-files.html

ttf-mscorefonts-installer_3.7_all-deb

Use the above file or download them fresh again

sudo apt-get install ubuntu-restricted-extras
wget http://ftp.de.debian.org/debian/pool/contrib/m/msttcorefonts/ttf-mscorefonts-installer_3.7_all.deb
sudo apt purge ttf-mscorefonts-installer -y
sudo dpkg -i ttf-mscorefonts-installer_3.7_all.deb

Spring / Struts Upgrade

Want to start using Spring annotations and also to update Struts to avoid pitfalls with current application.

Spring upgrade to 2.5.6.0.3 and Struts 2.3.4 (going to release 2.3.5 soon)

Struts 1.2.9 for Struts 1.0 application

and then 3.1.2.RELEASE for Spring

From: Virginia Angélica Martz [mailto:vmartz@hexacta.com]
Sent: Tuesday, August 28, 2012 7:54 AM
To: Guillaume Radde
Cc: Thompson, Sonya (HAL); Ruckman, Maurice (HAL); Fillman, Eric (HAL); Mario Hartman; Ignacio Peluffo
Subject: WITG-146 Pending dependencies

Hello all,

Yesterday we were changing third-party dependencies in order to take them from Central Repository.

This is a summary of the dependencies that are still pending for changes.

Some of them are not available in Central, others don’t have a well defined version and in all these cases your help would be appreciated.

struts2-ssl-plugin-1.2

<dependency>
<groupId>com.hal.thirdparty</groupId>
<artifactId>struts2-ssl-plugin-1.2</artifactId>
<version>0.1-hal</version>
<scope>runtime</scope>
</dependency>

This dependency is not in Central nor in our Google Code mirror in Nexus, so I cannot replace it with the last version (1.2.1) .

Two options:

1)      download from this site http://code.google.com/p/struts2-ssl-plugin/ the 1.2.1 version and make it manually available in third-party.

2)      Update GoogleCode mirror in Nexus.

IngrianLog4j/ IngrianNAE-5.1.1

<dependency>
<groupId>com.hal.thirdparty</groupId>
<artifactId>IngrianLog4j</artifactId>
<version>0.1-hal</version>
</dependency>

<dependency>
<groupId>com.hal.thirdparty</groupId>
<artifactId>IngrianNAE-5.1.1</artifactId>
<version>0.1-hal</version>
</dependency>

They are third-party but I think they should be kept in this way.

gson-1.4-javadoc

<dependency>
<groupId>com.hal.thirdparty</groupId>
<artifactId>gson-1.4-javadoc</artifactId>
<version>0.1-hal</version>
<scope>runtime</scope>
</dependency>

Is this dependency used for anything? In general javadoc dependencies are not needed.

sslext

<dependency>
<groupId>com.hal.thirdparty</groupId>
<artifactId>sslext</artifactId>
<version>0.1-hal</version>
<scope>runtime</scope>
</dependency>

I don’t know which version we should use.

http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22sslext%22%20AND%20a%3A%22sslext%22

ojdbc14

<dependency>

<groupId>com.hal.thirdparty</groupId>

<artifactId>ojdbc14</artifactId>

<version>0.1-hal</version>

<scope>runtime</scope>

</dependency>

When I replaced it with the dependency in Central it failed…. dependency is empty in central and maven repository (0 bytes)

http://mvnrepository.com/artifact/ojdbc/ojdbc/14

http://search.maven.org/#artifactdetails%7Cojdbc%7Cojdbc%7C14%7Cjar

We are still analyzing if “spring-webmvc” is needed. We think that it can be removed but we are testing to be sure.

Thanks again!

Virginia

From: Virginia Angélica Martz [mailto:vmartz@hexacta.com]
Sent: Tuesday, September 11, 2012 11:20 AM
To: Fillman, Eric (HAL); Augustine, Anila (HAL)
Cc: Ruckman, Maurice (HAL); Thompson, Sonya (HAL); Ignacio Peluffo
Subject: RE: WITG-146: Update

Hi Eric,

Good questions… I’ll try to answer them J

1)      Basically one of the changes from Spring 2 to Spring 3 is the organization of the framework. While in Spring 2 there was only one jar, Spring 3 has a set of jars and you have the opportunity to include only the functionality that you need. This link can help you: http://dushyanthinguva.blogspot.com/2010/03/what-to-expect-while-migrating-to.html. In short it says:   The first thing you will notice when upgrading to Spring 3 from Spring 2 is that it is packaged in a bunch of jars (or maven dependencies). This changed in Spring 2.5 and is generally regarded a good move although it makes upgrading a bit of a pain (even with maven). The good part is, the jar/dependency names are pretty self descriptive.” More info here à http://blog.springsource.com/2009/12/02/obtaining-spring-3-artifacts-with-maven/

2)      You are right, spring-context dependency is duplicated L. Can I fix it in the same feature branch or we have to create a new one? Please let me know and I’ll do it as soon as possible.

3)      It’s true, some of the dependencies are not necessary in hal-web, but we need them in both places because of the way you are deploying. From what I’ve talked with Mario, Guillaume and Ignacio, you need the dependency in the module for compilation purposes and then you need it also in hal-web in order to be placed in WEB-INF/lib folder during the deploy.

I hope this helps, if something is not clear or you need more info just let me know..

Regards,

Virginia

Errors during VM update, JBoss no longer starts

The following two files were missing:

  • /usr/lib/jvm/java-1.6.0/jre/lib/security/US_export_policy.jar
  • /usr/lib/jvm/java-1.6.0/jre/lib/security/local_policy.jar

Example error log snippet:

15 Mar 2012 21:19:27,768 ERROR AbstractKernelController : incrementState : 959 - Error installing to Start: name=WebServer state=Create
java.lang.NoClassDefFoundError: Could not initialize class javax.crypto.SunJCE_b
at javax.crypto.Cipher.getInstance(DashoA13*..)
at com.sun.net.ssl.internal.ssl.JsseJce.getCipher(JsseJce.java:180)