Project

General

Profile

Bug #1680

Ubuntu packages overwrites files on upgrade

Added by Thomas Novin over 9 years ago. Updated over 7 years ago.

Status:
Invalid
Priority:
Normal
Assignee:
-
Category:
General
Target version:
Start date:
2013-04-03
Due date:
% Done:

0%

Estimated time:
Found in version:
3.2.34~gfaee94b~precise
Affected Versions:

Description

I have my hts-data @ /home/hts/.hts/tvheadend

When I upgraded 3.2-precise to 3.2.34~gfaee94b~precise it overwrote the file superuser in that dir. It should have been skipped or copied as superuser.dpkg-new or something.

History

#1

Updated by Adam Sutton over 9 years ago

  • Status changed from New to Rejected

I cannot repeat this, I upgrade my system regularly and it's never overwritten my configuration.

Did it ask for a username/password? And what did it replace the config with?

Adam

#2

Updated by Thomas Novin over 9 years ago

No questions asked.

[email protected]:/home/hts/.hts/tvheadend$ sudo cat superuser {
"username": "myuser",
"password": "mypassword"
}
[email protected]:/home/hts/.hts/tvheadend$ sudo -s
[email protected]:/home/hts/.hts/tvheadend# cp superuser superuser.working
[email protected]:/home/hts/.hts/tvheadend# aptitude reinstall tvheadend
The following packages will be REINSTALLED:
tvheadend
0 packages upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 1 not upgraded.
Need to get 0 B/2 142 kB of archives. After unpacking 0 B will be used.
Preconfiguring packages ...
(Reading database ... 313810 files and directories currently installed.)
Preparing to replace tvheadend 3.2.34~gfaee94b~precise (using .../tvheadend_3.2.34~gfaee94b~precise_i386.deb) ...
tvheadend stop/waiting
Unpacking replacement tvheadend ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for man-db ...
Setting up tvheadend (3.2.34~gfaee94b~precise) ...
tvheadend start/running, process 4840

[email protected]:/home/hts/.hts/tvheadend# cat superuser {
"username": "",
"password": ""
}

#3

Updated by Adam Sutton over 9 years ago

  • Status changed from Rejected to New

I've just realised, I was far to quick to my observation. I don't actually run TVH as the default user!

Let me take another look. Sorry.

Adam

#4

Updated by Adam Sutton over 9 years ago

Ok, just updated my laptop from /unstable and it didn't overwrite the superuser file.

I also tried the aptitude reinstall, no change, my config is untouched...

#5

Updated by Adam Sutton over 9 years ago

  • Status changed from New to Accepted
  • Target version set to 57

Ah, ok, just read the script (probably should have done that first) and now I see what is happening.

It always rebuilds that file, but it uses the configuration from the deb system. So if you've changed that file (outside of deb system - i.e. manually) then it will rebuild it automatically using the previously entered information.

I agree this is wrong, and actually I have some other concerns here that I need to look into.

Adam

P.S.

To change the superuser account run:
sudo dpkg-reconfigure tvheadend

#6

Updated by Adam Sutton over 9 years ago

  • Status changed from Accepted to Invalid

Ok, on further inspection I've realised this will not work. The reason is that the intended means of changing that file is:

sudo dpkg-reconfigure tvheadend

Any change that would stop it overwriting this file, will also mean the above will not work. Therefore please use the above to change the superuser account.

Adam

#7

Updated by Jaroslav Kysela over 7 years ago

  • Target version changed from 57 to 3.4

Also available in: Atom PDF