upgrade apt and java cookbook