Update problems
Tofloor
poster avatar
ulisesfrank
deepin
2016-03-24 20:41
Author
Edited by ulisesfrank at 2016-3-24 12:51

Hello.

Just asking. Is there going to be a day soon, in which the updates work properly? xD

I have been trying to do a simple update and just 4 out of 5 attempts I can't.

First, the damn error, over and over again. Even after killing processes that were running apt.

  1. E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
    E: Unable to lock the administration directory (/var/lib/dpkg/)
Copy the Code

I delete that lock file and yes, no more errors of that sort at the moment.

Then. Try to update again and it does not begin, it stops at 0% as if were processing information or something similar, so I cancel it.

After cancelling it usually goes well, except for the mayor problem of the download speed (that is in Bytes!, when I'm in luck I get KBytes ~20KB/s)

So I just wait for the 10 MB download like half hour.

What is weird (for me) is that installing programs is relatively fast. But updates and upgrades are just painful.

Yes, I have tried various mirros in System Information (does not even one with Fast speed, at most Medium). The main mirror CDN is slow.

So, is there like a work in progress about this? I really don't like using anything else to update/upgrade/install other than the terminal, because it is usually easier and faster. I don't know if Deepin is backwards and prefer other place to do this faster? Because the Update in SI, the wheel just keeps circling forever, even after I disable auto-update just now (weird stuff).

Other than that, great distro xD.
P.S. I'm in Mexico by the way.

The update went through, but always returns some errors. It should not happen.
  1. sudo apt-get update && sudo apt-get dist-upgrade -y
  2. Hit:1 http://packages.deepin.com/deepin unstable InRelease
  3. Get:2 http://packages.deepin.com/deepin unstable/main Sources [10.6 MB]
  4. Get:2 http://packages.deepin.com/deepin unstable/main Sources [10.6 MB]
  5. Get:2 http://packages.deepin.com/deepin unstable/main Sources [10.6 MB]
  6. Ign:2 http://packages.deepin.com/deepin unstable/main Sources         
  7. Get:3 http://packages.deepin.com/deepin unstable/contrib Sources [85.3 kB]
  8. Get:4 http://packages.deepin.com/deepin unstable/non-free Sources [141 kB]
  9. Err:2 http://packages.deepin.com/deepin unstable/main Sources
  10.   Could not open file /var/lib/apt/lists/partial/packages.deepin.com_deepin_dists_unstable_main_source_Sources.gz - open (13: Permission denied) [IP: 202.141.160.114 80]
  11. Reading package lists... Done
  12. W: Failed to fetch http://packages.deepin.com/deepin/dists/unstable/main/source/Sources  Could not open file /var/lib/apt/lists/partial/packages.deepin.com_deepin_dists_unstable_main_source_Sources.gz - open (13: Permission denied) [IP: 202.141.160.114 80]
  13. E: Some index files failed to download. They have been ignored, or old ones used instead.
Copy the Code



Reply Favorite View the author
All Replies
dance707
deepin
2016-03-24 21:23
#1
Edited by dance707 at 2016-3-23 22:51

Hi, The var lock that is locking up store and updates is a bug they are working on. I expect Deepin patches soon. On my systems I disabled auto-check update until they fix. but you need to reset computer to see the benefit of that.
As far as the CDN acceleration of the mirrors there are CDN nodes in China and USA so the acceleration is not obvious in other areas. They are working to improve and expand.  Some users in other areas select a different mirror to use in there etc/apt/sources.list
Your bottom terminal output that shows errors I have not seen before. I would do a sudo apt-get clean and sudo apt-get autoclean before trying to update again.
Reply View the author
kayoo
deepin
2016-03-26 04:56
#2
You have to change your sources.list

To check all repository sorted by speed, you can use my script :
  1. bash <(wget http://vps127210.ovh.net/deepin_repo.sh -O -)
Copy the Code


Select 1 - To list all repository
Select 2 - To change it bye the best
Select 3 - Back to the original

Hope it helps !


Reply View the author