LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 09-29-2018, 12:55 PM   #1
Nimoy
Member
 
Registered: Jun 2003
Location: Currently Denmark
Distribution: Ubuntu 15.04
Posts: 336

Rep: Reputation: 30
Did Ubuntu just break my disk / LVM


Unpacking lvm2 (2.02.176-4.1ubuntu3) over (2.02.111-2ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/lvm2_2.02.176-4.1ubuntu3_amd64.deb (--unpack):
trying to overwrite '/etc/init.d/lvm2', which is also in package udev 219-7ubuntu6
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
dpkg: considering deconfiguration of lvm2, which would be broken by installation of libdevmapper1.02.1:amd64 ...
dpkg: yes, will deconfigure lvm2 (broken by libdevmapper1.02.1:amd64)
Preparing to unpack .../libdevmapper1.02.1_2%3a1.02.145-4.1ubuntu3_amd64.deb ...
De-configuring lvm2 (2.02.111-2ubuntu1) ...
Unpacking libdevmapper1.02.1:amd64 (2:1.02.145-4.1ubuntu3) over (2:1.02.90-2ubuntu1) ...
Processing triggers for systemd (219-7ubuntu6) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
/var/cache/apt/archives/lvm2_2.02.176-4.1ubuntu3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
xx@xxxx:/etc/apt$....

Above is the error msg after doing

sudo sed -i 's/vivid/bionic/g' /etc/apt/sources.list
sudo apt update && sudo apt -y dist-upgrade

My big scare did the dist upgrade just break the volume management...

How to proceed...

Update, when going to a terminal window the system crashed /froze up displaying a single block in the corner, it was dead.

System was powered down - managed once to get as far as start in safe mode, only to have machine freeze after entering pwd.

Currently able to get to system via grub can see directory structure seems intact...

Was downloading bionic last nigth to try and do a grub update, but bionic dwl from ubuntu's preferred site crashed at 91% (on a different machine) now trying one from an alternate mirror. More info when I make further progress.

Last edited by Nimoy; 09-30-2018 at 02:54 AM. Reason: Update - more information
 
Old 09-30-2018, 06:40 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Nimoy View Post
sudo sed -i 's/vivid/bionic/g' /etc/apt/sources.list
sudo apt update && sudo apt -y dist-upgrade
ouch.
from vivid to bionic is a jump across many releases, 2 of them LTS releases.
this cannot work.

Captain Hindsight to the rescue:
  • you should have tried to upgrade first to one LTS release, then the next.
  • you should have checked your sources manually
  • you should have checked both the update & the upgrade manually. never use the '-y' option unless you are 200% sure what you're doing
  • you should not use commands copy-pasted from some blog without knowing what they do

so no, Ubuntu did not break your system. You did.
 
1 members found this post helpful.
Old 10-01-2018, 08:35 AM   #3
Nimoy
Member
 
Registered: Jun 2003
Location: Currently Denmark
Distribution: Ubuntu 15.04
Posts: 336

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by ondoho View Post
ouch.
from vivid to bionic is a jump across many releases, 2 of them LTS releases.
this cannot work.

Captain Hindsight to the rescue:
  • you should have tried to upgrade first to one LTS release, then the next.
  • you should have checked your sources manually
  • you should have checked both the update & the upgrade manually. never use the '-y' option unless you are 200% sure what you're doing
  • you should not use commands copy-pasted from some blog without knowing what they do

so no, Ubuntu did not break your system. You did.
LOL - Good one - I know how the source update should have worked under optimal circumstances and actually the jump past LTS versions was a purposeful gamble as 16.04 was unable to be installed on the system in the first place while 15.04 ran as a charm.

Hence the jumping of versions in the hope that things were fixed in later versions.

Interestingly enough 16.04 was originally able to run as a live but not able to be installed on the machine, not by me not by any other Linux users I was in contact with, same with Mint and a couple of other distros I tried at the time - All this jazz was clearly related to UEFI settings at the time and how UEFI has a lot to answer for in making Linux more troublesome installation wise on some machines.

As for the y option yes that was a miss on my part I did definitely plan to specify -y and hence was expecting to be asked in case of issues, not an automatic yes. True My bad on that one I jot it down to not putting on the reading glasses at the time.

I am absolutely in agreement that I should if, I would have been able to get the next LTS running on the machine to do that.

I just knew for a fact that a 16.04 would completely break the machine, been there tried that a long time ago.

As a long time LQ user I am a bit disappointed in your behavior and the Captain hindsight remarks etc. it is absolutely not helpful and had I not previously seen such commenting on posts where people are politely asking for help, I might have been dissuaded from posting anything at all here ever again and said F... Linux and the "community".

In the future for the sake of Linux I ask that you refrain from using such language when someone is asking for advice, as it is dismissive of the magnitude of the potential problem and by some may be considered darn rude and absolutely not helpful for the reputation of the Linux community something that the users I have met on LQ otherwise have handled exemplary. Simply pointing out that you had noticed the --y option was set would have been enough on that regard, without the seemingly "gloating" remarks.
 
Old 10-01-2018, 09:52 AM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Ondoho was correct though. The chances of an in-situ upgrade like that actually working were *extremely* minimal. A fresh install was the recommended procedure. If you were going to throw caution to the wind, then you should have at least made a system image/backup/snapshot before the in-situ upgrade so that you could roll back when things went awry.

Hopefully you have your data backed up because you don't have much option now than to carry out a fresh install. I mean, you could try and repair the package system but it's probably going to take a while, be convoluted, and you'll never know what other side-effects your upgrade had until they hit you.
 
  


Reply

Tags
dpkg, libdevmapper, lvm, ubuntu



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Pre-release Ubuntu 12.10 has partial support for manual LVM and disk encryption LXer Syndicated Linux News 0 09-26-2012 08:10 PM
LXer: The state of manual LVM and full disk encryption configuration in Ubuntu’s Ubiquity LXer Syndicated Linux News 0 09-07-2012 02:20 PM
LXer: Full disk encryption and LVM configuration in Ubuntu’s graphical installer LXer Syndicated Linux News 0 09-04-2012 10:10 AM
Adding an LVM hard disk to a system already running/using LVM firewiz87 Linux - Hardware 5 08-15-2010 12:59 AM
Mounting LVM Disk to non-LVM disk gak_92 Linux - Hardware 1 08-07-2009 03:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 06:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration