Friday, November 3, 2017

Cannot upgrade from Ubuntu 14.04 to 16.04

I have the following Ubuntu version: 14.04.6 LTS and I'm trying to upgrade to 16.04 with



sudo do-release-upgrade



This command fails reporting:



An unresolvable problem occurred while calculating the upgrade:
E:Unable to correct problems, you have held broken packages.
This can be caused by:
* Upgrading to a pre-release version of Ubuntu
* Running the current pre-release version of Ubuntu
* Unofficial software packages not provided by Ubuntu



And /var/log/dist-upgrade/main.log says:



2019-09-06 17:15:26,873 ERROR Dist-upgrade failed: 'E:Error, pkgProblemResolver:::Resolve generated breaks, this may be caused by held packages


My question is: how to identify and delete these broken deps?



Thank you.

Will openssl on Ubuntu 12.04 and 14.04 be maintained after Dec 31, 2016?

12.04 (EOL April 2017) and 14.04 (EOL 2019) both appear to use openssl 1.0.1, which is apparently not going to be supported at all after December 31, 2016 (according to openssl.org/source).



Will security fixes be backported into the openssl packages running on 12.04 and 14.04 for as long as those versions are supported? Or will a version upgrade (e.g., to 16.04 for LTS) be required?

command line - Ubuntu login failed


I have Dell Precision T-3620 Workstation and I have installed ubuntu 16.04 in it. It worked well for 1 day. One Day, I had to run a command on the terminal so I pressed Ctrl + Alt + F1 before logging in. I did my work and when I restarted it, I faced a problem. When I write the password, the screen just flashes and the login screen comes again in front of me. When it asks for password, I give it. It waits for sometime and the screen bounces back to the login screen, It recognizes incorrect password and I can login through the terminal but I can't access my files and when I add the correct password, it waits and screen bounces back. Someone said to remove .Xauthority, so I pressed Ctrl + Alt + F1 and typed rm .Xauthority But it still didn't work.


Please anyone help me out.


Thanks in advance..............



Your card is NVIDIA graphic. I have seen many reports of problem. Have a look at this one providing a method to install other drivers: Graphic issues after installing Ubuntu 16.04/16.10 with NVIDIA graphics


Basically, the answer is to wipe out your existing NVIDIA drivers and reinstall them from a specific source.
The center of this answer is :



  1. Log into your account in the TTY.

  2. Run sudo apt-get purge nvidia-*

  3. Run sudo add-apt-repository ppa:graphics-drivers/ppa and then sudo apt-get update.

  4. Run sudo apt-get install nvidia-XXX.

  5. Reboot and your graphics issue should be fixed.


The next question is what driver version is best for you (nvidia-364 as indicated in that answer, nvidia-340, nvidia-304...)?
To know the existing drivers, refer to the following link: Available NVIDIA drivers
It will then be a matter of trying what best suits your computer. In my case, nvidia-340 works best, in which case instruction 4 would be sudo apt-get install nvidia-340


Cannot fix broken packages (apt-get -f install doesn't work)




I have these broken packages that cannot be updated:



$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree... 50%
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
libgegl-0.3-0 : Depends: libjasper1 but it is not installed

libopencv-highgui2.4v5 : Depends: libjasper1 but it is not installed
libqt5core5a : Breaks: libqt5core5a:i386 (!= 5.5.1+dfsg-16ubuntu7) but 5.5.1+dfsg-16ubuntu7.2 is installed
libqt5core5a:i386 : Recommends: qttranslations5-l10n:i386 but it is not installable
Breaks: libqt5core5a (!= 5.5.1+dfsg-16ubuntu7.2) but 5.5.1+dfsg-16ubuntu7 is installed
libqt5svg5 : Depends: qtbase-abi-5-2-1 but it is not installable
Breaks: libqt5svg5:i386 (!= 5.2.1-1) but 5.5.1-2build1 is installed
libqt5svg5:i386 : Breaks: libqt5svg5 (!= 5.5.1-2build1) but 5.2.1-1 is installed
libraw15 : Depends: libjasper1 but it is not installed
libwmf0.2-7 : Breaks: libwmf0.2-7:i386 (!= 0.2.8.4-10.3ubuntu1.14.04.1) but 0.2.8.4-10.5ubuntu1 is installed
libwmf0.2-7:i386 : Recommends: gsfonts:i386 but it is not installable

Breaks: libwmf0.2-7 (!= 0.2.8.4-10.5ubuntu1) but 0.2.8.4-10.3ubuntu1.14.04.1 is installed
E: Unmet dependencies. Try using -f.


When running "sudo apt-get -f install", I get:



$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done

Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
exiv2:i386 gimp-data graphicsmagick:i386 kdelibs5-data libattica0.4 libdbusmenu-qt2 libdlrestrictions1 libdouble-conversion1v5
libdouble-conversion1v5:i386 libevdev2:i386 libexiv2-14 libexiv2-14:i386 libgimp2.0 libgomp1:i386 libgraphicsmagick++-q16-12:i386
libgraphicsmagick-q16-3:i386 libgudev-1.0-0:i386 libinput10:i386 libjasper1:i386 libkdecore5 libkdeui5 libkexiv2-11v5 libkexiv2-data
libmtdev1:i386 libpcre16-3:i386 libqgsttools-p1 libqgsttools-p1:i386 libqt4-svg libqt5core5a:i386 libqt5dbus5:i386 libqt5gui5:i386
libqt5multimedia5:i386 libqt5multimedia5-plugins libqt5multimedia5-plugins:i386 libqt5multimediaquick-p5 libqt5multimediaquick-p5:i386
libqt5multimediawidgets5 libqt5multimediawidgets5:i386 libqt5network5:i386 libqt5opengl5 libqt5opengl5:i386 libqt5qml5 libqt5qml5:i386
libqt5quick5 libqt5quick5:i386 libqt5sql5 libqt5sql5:i386 libqt5sql5-sqlite libqt5sql5-sqlite:i386 libqt5svg5:i386 libqt5widgets5:i386
libqt5xml5 libqt5xml5:i386 libraw15:i386 libwacom2:i386 libwebp5:i386 libwmf0.2-7:i386 libxcb-icccm4:i386 libxcb-image0:i386

libxcb-keysyms1:i386 libxcb-randr0:i386 libxcb-render-util0:i386 libxcb-shape0:i386 libxcb-util1:i386 libxcb-xkb1:i386
libxkbcommon-x11-0:i386 python-appindicator python-gconf python-gi python-gobject python-pexpect python-ptyprocess python-xdg
qml-module-qt-labs-folderlistmodel qml-module-qt-labs-folderlistmodel:i386 qml-module-qt-labs-settings qml-module-qtgraphicaleffects
qml-module-qtgraphicaleffects:i386 qml-module-qtmultimedia qml-module-qtmultimedia:i386 qml-module-qtqml-models2
qml-module-qtqml-models2:i386 qml-module-qtquick-controls qml-module-qtquick-controls:i386 qml-module-qtquick-dialogs
qml-module-qtquick-layouts qml-module-qtquick-layouts:i386 qml-module-qtquick-privatewidgets qml-module-qtquick-window2
qml-module-qtquick-window2:i386 qml-module-qtquick2 qml-module-qtquick2:i386 qt5-image-formats-plugins:i386
qtdeclarative5-qtquick2-plugin
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:

libjasper1 libqt5core5a libqt5svg5 libwmf0.2-7
Suggested packages:
libjasper-runtime libwmf0.2-7-gtk
The following NEW packages will be installed:
libjasper1
The following packages will be upgraded:
libqt5core5a libqt5svg5 libwmf0.2-7
3 upgraded, 1 newly installed, 0 to remove and 227 not upgraded.
10 not fully installed or removed.
Need to get 0 B/2 222 kB of archives.

After this operation, 364 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 266341 files and directories currently installed.)
Preparing to unpack .../libqt5core5a_5.5.1+dfsg-16ubuntu7.2_amd64.deb ...
Unpacking libqt5core5a:amd64 (5.5.1+dfsg-16ubuntu7.2) over (5.5.1+dfsg-16ubuntu7) ...
dpkg: error processing archive /var/cache/apt/archives/libqt5core5a_5.5.1+dfsg-16ubuntu7.2_amd64.deb (--unpack):
trying to overwrite shared '/usr/share/doc/libqt5core5a/changelog.Debian.gz', which is different from other instances of package libqt5core5a:amd64
Preparing to unpack .../libqt5svg5_5.5.1-2build1_amd64.deb ...
Unpacking libqt5svg5:amd64 (5.5.1-2build1) over (5.2.1-1) ...
dpkg: error processing archive /var/cache/apt/archives/libqt5svg5_5.5.1-2build1_amd64.deb (--unpack):

trying to overwrite shared '/usr/share/doc/libqt5svg5/copyright', which is different from other instances of package libqt5svg5:amd64
Preparing to unpack .../libjasper1_1.900.1-debian1-2.4ubuntu1_amd64.deb ...
Unpacking libjasper1:amd64 (1.900.1-debian1-2.4ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/libjasper1_1.900.1-debian1-2.4ubuntu1_amd64.deb (--unpack):
trying to overwrite shared '/usr/share/doc/libjasper1/changelog.Debian.gz', which is different from other instances of package libjasper1:amd64
Preparing to unpack .../libwmf0.2-7_0.2.8.4-10.5ubuntu1_amd64.deb ...
Unpacking libwmf0.2-7:amd64 (0.2.8.4-10.5ubuntu1) over (0.2.8.4-10.3ubuntu1.14.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/libwmf0.2-7_0.2.8.4-10.5ubuntu1_amd64.deb (--unpack):
trying to overwrite shared '/usr/share/lintian/overrides/libwmf0.2-7', which is different from other instances of package libwmf0.2-7:amd64
No apport report written because MaxReports is reached already

dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for libc-bin (2.23-0ubuntu7) ...
Errors were encountered while processing:
/var/cache/apt/archives/libqt5core5a_5.5.1+dfsg-16ubuntu7.2_amd64.deb
/var/cache/apt/archives/libqt5svg5_5.5.1-2build1_amd64.deb
/var/cache/apt/archives/libjasper1_1.900.1-debian1-2.4ubuntu1_amd64.deb
/var/cache/apt/archives/libwmf0.2-7_0.2.8.4-10.5ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)



When tried to remove or update packages via Synaptic, I get:



E: /var/cache/apt/archives/libqt5core5a_5.5.1+dfsg-16ubuntu7.2_amd64.deb: trying to overwrite shared '/usr/share/doc/libqt5core5a/changelog.Debian.gz', which is different from other instances of package libqt5core5a:amd64
E: /var/cache/apt/archives/libqt5svg5_5.5.1-2build1_amd64.deb: trying to overwrite shared '/usr/share/doc/libqt5svg5/copyright', which is different from other instances of package libqt5svg5:amd64
E: /var/cache/apt/archives/libwmf0.2-7_0.2.8.4-10.5ubuntu1_amd64.deb: trying to overwrite shared '/usr/share/lintian/overrides/libwmf0.2-7', which is different from other instances of package libwmf0.2-7:amd64
E: /var/cache/apt/archives/libjasper1_1.900.1-debian1-2.4ubuntu1_amd64.deb: trying to overwrite shared '/usr/share/doc/libjasper1/changelog.Debian.gz', which is different from other instances of package libjasper1:amd64


How should I fix broken packages? I have tried things from #171038, but nothing helped in my case.




I had to search for these packages online, download and install them one by one:



libicu52_52.1-3ubuntu0.5_amd64.deb
libicu52_52.1-3ubuntu0.5_i386.deb
libjasper1_1.900.1-14ubuntu3.3_amd64.deb
libjasper1_1.900.1-14ubuntu3.3_i386.deb
libqt5core5a_5.2.1+dfsg-1ubuntu14.3_amd64.deb
libqt5core5a_5.2.1+dfsg-1ubuntu14.3_i386.deb
libwmf0.2-7_0.2.8.4-10.3ubuntu1.14.04.1_amd64.deb
libwmf0.2-7_0.2.8.4-10.3ubuntu1.14.04.1_i386.deb



Using sudo dpkg -i --force-overwrite .



Then sudo apt-get install -f and sudo apt autoremove.


package management - What is the difference between nvidia-graphics-drivers and nvidia-graphics-drivers-updates



I see that there are two packages nvidia-current and nvidia-current-updates. The apparently stem from nvidia-graphics-drivers and nvidia-graphics-drivers-updates respectively:






I wonder why there are two packages, and what is the difference between these two packages?



The first package is the binary driver that will stay the same version until next ubuntu release. The second driver is the binary driver that will have updates before next ubuntu release.



You can decide which one you want to use by running jockey.


command line - Screen Resolution Problem with Ubuntu 14.04.02 and VirtualBox

I am trying to change screen resolution of Ubuntu 14.04.02 running in VirtualBox. I tried to install Guest additions packages but I'm getting this error -


Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
virtualbox-guest-x11 : Depends: xorg-video-abi-15
Depends: xserver-xorg-core (>= 2:1.14.99.902)
E: Unable to correct problems, you have held broken packages.

What should I do to fix this?

partitioning - Why can't I Resize/Move in GParted?

I have a 12.04 LTS system running on my PC with a 320 GB hard drive.


Unfortunately, I need to use Windows 7 in my lab. I tried doing this using a virtual machine (VirtualBox and VMware) but it was not good enough. I want to make a partition on my hard drive so when the computer starts I'll choose between Windows 7 and 12.04.


I tried using Gparted, but for some reason I'm not getting the Resize/Move option.


There must be a way that I can do this without formatting and installing everything again.

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...