Upgrade from 9.1.6 to 10.0.10 didn't remove old version

upgrade

#1

After upgrading form 9.1.6 to 10.0.10 the old version still there.

################
dpkg -l | grep -i owncloud
rc owncloud 9.1.6-1.1 all ownCloud - Server
rc owncloud-config-apache 8.2.2-1.1 all The ownCloud configuration for the apache web server
ii owncloud-deps-php5 9.1.6-1.1 all ownCloud - dependencies for php5
ii owncloud-files 10.0.10-1+1.1 all ownCloud - Server

apt-get autoremove wants to uninstall the new version

Remv owncloud-files [10.0.10-1+1.1] [php-pear:amd64 ]

How to tell debian 8.11 that 10.0.10 is the correct package und to remove the old one.

Steps to reproduce

  1. upgrade with apt-get dist-upgrade from owncloud repo

  2. sudo -u www-data php /var/www/owncloud/occ upgrade

  3. apt-get -s autoremove

Expected behaviour

system recognize new version as installed not the old one

Actual behaviour

system wants to remove the new version

Server configuration

Operating system:
Debian GNU/Linux 8.11

Web server:
Server version: Apache/2.4.10 (Debian)
Server built: Mar 31 2018 09:39:03

Database:
mysql-server-5.5 5.5.60-0+deb8u1

PHP version:
PHP 5.6.38-0+deb8u1 (cli) (built: Sep 20 2018 02:32:02)
Copyright © 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright © 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright © 1999-2016, by Zend Technologies

ownCloud version: (see ownCloud admin page)
ownCloud 10.0.10 (stable)

Updated from an older ownCloud or fresh install:
updated from 9.1.6

Where did you install ownCloud from:
deb http://download.owncloud.org/download/repositories/stable/Debian_8.0/ /
deb http://download.owncloud.org/download/repositories/10.0/Debian_8.0/ /

Signing status (ownCloud 9.0 and above):

No errors have been found.

The content of config/config.php:

{
“system”: {
“instanceid”: “oc177cffe11a”,
“passwordsalt”: “REMOVED SENSITIVE VALUE”,
“trusted_domains”: [
“xxxxxxxxx”,
“xxxxxx.xxxx.xx”
],
“datadirectory”: “/var/www/owncloud/data”,
“dbtype”: “mysql”,
“version”: “10.0.10.4”,
“dbname”: “owncloud”,
“dbhost”: “localhost”,
“dbtableprefix”: “oc_”,
“dbuser”: “REMOVED SENSITIVE VALUE”,
“dbpassword”: “REMOVED SENSITIVE VALUE”,
“installed”: true,
“has_internet_connection”: true,
“theme”: “”,
“maintenance”: false,
“secret”: “REMOVED SENSITIVE VALUE”,
“loglevel”: 2,
“trashbin_retention_obligation”: “auto”,
“updatechecker”: false,
“mail_smtpmode”: “php”,
“singleuser”: false
}
}

List of activated apps:

Enabled:

  • activity: 2.3.8
  • comments: 0.3.0
  • configreport: 0.1.1
  • dav: 0.4.0
  • federatedfilesharing: 0.3.1
  • federation: 0.1.0
  • files: 1.5.1
  • files_external: 0.7.1
  • files_pdfviewer: 0.9.0
  • files_sharing: 0.11.0
  • files_texteditor: 2.2.1
  • files_trashbin: 0.9.1
  • files_versions: 1.3.0
  • files_videoplayer: 0.9.8
  • gallery: 16.1.0
  • market: 0.2.5
  • notifications: 0.3.5
  • provisioning_api: 0.5.0
  • systemtags: 0.3.0
  • templateeditor: 0.3.1
  • updatenotification: 0.2.1
    Disabled:
  • dashboard-1.2
  • encryption
  • external
  • firstrunwizard
  • user_external

Are you using external storage, if yes which one: local/smb/sftp/…
no

Are you using encryption: yes/no
no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/…
no


#2

Hey,

i think you could try to work with “remove” instead of “autoremove”:

apt-get remove --purge owncloud-deps-php5 owncloud owncloud-config-apache

From what i know only the “owncloud-files” package is the one which can/should be used.


#3

hi tom42

after the purge, the system still wants to remove owncloud-files 10.0.10.


#4

Hey,

mhhh then i think you could have a look at some tutorials or the apt-get documentation which could tell you how to research why apt-get wants to remove an installed package.