Page 4 of 4 FirstFirst ... 234
Results 31 to 36 of 36

Thread: How to remove file?

  1. #31
    Join Date
    Aug 2008
    Beans
    72

    Re: How to remove file?

    Code:
    dale@dale-System-Product-Name:~$ 
    dale@dale-System-Product-Name:~$ ls -l /usr/lib/xorg
    total 68
    drwxr-xr-x 6 root root  4096 Feb 14 19:04 modules
    -rw-r--r-- 1 root root 31246 Dec 17 03:06 protocol-precise.txt
    -rw-r--r-- 1 root root 31246 Oct 16 10:47 protocol.txt
    dale@dale-System-Product-Name:~$
    Code:
    dale@dale-System-Product-Name:~$ 
    dale@dale@dale-System-Product-Name:~$ dpkg-divert --list | grep xorg
    diversion of /usr/lib/xorg/protocol.txt to /usr/lib/xorg/protocol-precise.txt by xserver-common-lts-raring
    dale@dale-System-Product-Name:~$ 
    
    dale-System-Product-Name:~$ 
    dale@dale-System-Product-Name:~$ ls -la /var/cache/apt/archives/xserver-common*
    -rw-r--r-- 1 root root 31794 Oct 17 11:14 /var/cache/apt/archives/xserver-common_2%3a1.11.4-0ubuntu10.14_all.deb
    -rw-r--r-- 1 root root 31768 Nov  5 08:38 /var/cache/apt/archives/xserver-common_2%3a1.13.0-0ubuntu6.5_all.deb
    -rw-r--r-- 1 root root 31836 Dec 17 03:18 /var/cache/apt/archives/xserver-common_2%3a1.14.5-1ubuntu2~saucy1_all.deb
    -rw-r--r-- 1 root root 23036 Oct 17 11:14 /var/cache/apt/archives/xserver-common-lts-raring_2%3a1.13.3-0ubuntu6~precise3_all.deb
    dale@dale-System-Product-Name:~$
    Code:
    dale@dale-System-Product-Name:~$ sudo apt-get install synaptic
    [sudo] password for dale: 
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following package was automatically installed and is no longer required:
      printer-driver-hpijs
    Use 'apt-get autoremove' to remove it.
    The following extra packages will be installed:
      docbook-xml libept1.4.12 librarian0 rarian-compat sgml-data
    Suggested packages:
      docbook docbook-dsssl docbook-xsl docbook-defguide perlsgml w3-recs opensp
      libxml2-utils dwww menu deborphan tasksel
    The following packages will be REMOVED:
      xserver-common-lts-raring
    The following NEW packages will be installed:
      docbook-xml libept1.4.12 librarian0 rarian-compat sgml-data synaptic
    0 upgraded, 6 newly installed, 1 to remove and 0 not upgraded.
    1 not fully installed or removed.
    Need to get 3,360 kB of archives.
    After this operation, 10.7 MB of additional disk space will be used.
    Do you want to continue [Y/n]? y
    Get:1 http://us.archive.ubuntu.com/ubuntu/ saucy/main sgml-data all 2.0.9-1 [277 kB]
    Get:2 http://us.archive.ubuntu.com/ubuntu/ saucy/main docbook-xml all 4.5-7.2 [336 kB]
    Get:3 http://us.archive.ubuntu.com/ubuntu/ saucy/main libept1.4.12 i386 1.0.9 [136 kB]
    Get:4 http://us.archive.ubuntu.com/ubuntu/ saucy/main librarian0 i386 0.8.1-5build1 [58.4 kB]
    Get:5 http://us.archive.ubuntu.com/ubuntu/ saucy/main rarian-compat i386 0.8.1-5build1 [100 kB]
    Get:6 http://us.archive.ubuntu.com/ubuntu/ saucy/universe synaptic i386 0.80.2 [2,452 kB]
    Fetched 3,360 kB in 38s (87.4 kB/s)                                            
    (Reading database ... 200496 files and directories currently installed.)
    Removing xserver-common-lts-raring ...
    Removing 'diversion of /usr/lib/xorg/protocol.txt to /usr/lib/xorg/protocol-precise.txt by xserver-common-lts-raring'
    dpkg-divert: error: rename involves overwriting `/usr/lib/xorg/protocol.txt' with
      different file `/usr/lib/xorg/protocol-precise.txt', not allowed
    dpkg: error processing xserver-common-lts-raring (--remove):
     subprocess installed post-removal script returned error exit status 2
    No apport report written because MaxReports is reached already
                                                                  Errors were encountered while processing:
     xserver-common-lts-raring
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    dale@dale-System-Product-Name:~$
    Code:
    dale@dale-System-Product-Name:~$ cd /var/lib/dpkg/info
    dale@dale-System-Product-Name:/var/lib/dpkg/info$
    Code:
    dale@dale-System-Product-Name:~$ sudo rm xserver-common-lts-raring.*
    [sudo] password for dale: 
    rm: cannot remove ‘xserver-common-lts-raring.*’: No such file or directory
    dale@dale-System-Product-Name:~$
    Code:
    dale@dale-System-Product-Name:~$ sudo dpkg --remove --force-remove-reinstreq xserver-common-lts-raring
    [sudo] password for dale: 
    (Reading database ... 200496 files and directories currently installed.)
    Removing xserver-common-lts-raring ...
    Removing 'diversion of /usr/lib/xorg/protocol.txt to /usr/lib/xorg/protocol-precise.txt by xserver-common-lts-raring'
    dpkg-divert: error: rename involves overwriting `/usr/lib/xorg/protocol.txt' with
      different file `/usr/lib/xorg/protocol-precise.txt', not allowed
    dpkg: error processing xserver-common-lts-raring (--remove):
     subprocess installed post-removal script returned error exit status 2
    Errors were encountered while processing:
     xserver-common-lts-raring
    dale@dale-System-Product-Name:~$
    dale@dale-System-Product-Name:~$ dpkg-divert --list | grep xorg
    diversion of /usr/lib/xorg/protocol.txt to /usr/lib/xorg/protocol-precise.txt by xserver-common-lts-raring
    dale@dale-System-Product-Name:~$dale@dale-System-Product-Name:~$
    dale@dale-System-Product-Name:~$ ls -l /usr/lib/xorg
    total 68
    drwxr-xr-x 6 root root 4096 Feb 14 19:04 modules
    -rw-r--r-- 1 root root 31246 Dec 17 03:06 protocol-precise.txt
    -rw-r--r-- 1 root root 31246 Oct 16 10:47 protocol.txt
    dale@dale-System-Product-Name:~$ code
    dale@dale-System-Product-Name:~$ ls -la /var/cache/apt/archives/xserver-common*
    -rw-r--r-- 1 root root 31794 Oct 17 11:14 /var/cache/apt/archives/xserver-common_2%3a1.11.4-0ubuntu10.14_all.deb
    -rw-r--r-- 1 root root 31768 Nov 5 08:38 /var/cache/apt/archives/xserver-common_2%3a1.13.0-0ubuntu6.5_all.deb
    -rw-r--r-- 1 root root 31836 Dec 17 03:18 /var/cache/apt/archives/xserver-common_2%3a1.14.5-1ubuntu2~saucy1_all.deb
    -rw-r--r-- 1 root root 23036 Oct 17 11:14 /var/cache/apt/archives/xserver-common-lts-raring_2%3a1.13.3-0ubuntu6~precise3_all.deb
    dale@dale-System-Product-Name:~$
    Last edited by Buenadriver; February 24th, 2014 at 05:08 PM.

  2. #32
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    6,163
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: How to remove file?

    Buenadriver; Ummphh,

    Not real surprised as
    rH xserver-common-lts-raring
    the 'rh' denotes -Removed- but only -Halfway-.
    What now have we got to work with on the system (??):
    show us:
    Code:
    ls -la /var/cache/apt/archives/xserver-common*
    One way or another
    we will work through this
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubutu'n !

  3. #33
    Join Date
    Apr 2012
    Beans
    5,169

    Re: How to remove file?

    Can we also see

    Code:
    dpkg-divert --list | grep xorg
    
    ls -l /usr/lib/xorg

  4. #34
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    6,163
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: How to remove file?

    Hey steeldriver !

    Welcome to the party ! This has indeed turned interesting !

    inquiring minds want to know
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubutu'n !

  5. #35
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    7,210

    Re: How to remove file?

    Quote Originally Posted by Bashing-om View Post
    Hey steeldriver !

    Welcome to the party ! This has indeed turned interesting !
    inquiring minds want to know
    +1

    I have nothing to contribute at this level, so I'm reading and learning

  6. #36
    Join Date
    Apr 2012
    Beans
    5,169

    Re: How to remove file?

    Well iirc someone had the same diversion error a couple of weeks ago, and the solution was to edit the post-install script directly - I don't really know anything about dpkg file diversions but it would be nice if we could figure out a more elegant way (or at least figure out if editing the post-rm is safe)

Page 4 of 4 FirstFirst ... 234

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •