LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-10-2014, 10:30 PM   #1
dakoris73
Member
 
Registered: Aug 2008
Posts: 43

Rep: Reputation: 0
Unhappy Problems with ubuntu 14.04 LTS server and apt-get upgrade


On one of my servers I have setup, whenever I try to run the sudo apt-get upgrade command on my Ubuntu 14.04 LTS server, I get the following error:

mikey@Pylit2:/var/lib/apt/lists/partial$ sudo apt-get update
Ign http://download.webmin.com sarge InRelease
Ign http://download.webmin.com sarge Release.gpg
Ign http://us.archive.ubuntu.com trusty InRelease
Ign http://download.webmin.com sarge Release
Ign http://us.archive.ubuntu.com trusty-updates InRelease
Ign http://security.ubuntu.com trusty-security InRelease
Ign http://us.archive.ubuntu.com trusty-backports InRelease
Get:1 http://us.archive.ubuntu.com trusty Release.gpg [933 B]
Get:2 http://security.ubuntu.com trusty-security Release.gpg [933 B]
Get:3 http://us.archive.ubuntu.com trusty-updates Release.gpg [933 B]
Get:4 http://us.archive.ubuntu.com trusty-backports Release.gpg [933 B]
Hit http://security.ubuntu.com trusty-security Release
Get:5 http://us.archive.ubuntu.com trusty Release [58.5 kB]
E: Couldn't create temporary file to work with /var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_trusty_Release - mkstemp (2: No such file or directory)


I have tried looking at that file location, and here is what is listed in the /partial directory:

mikey@Pylit2:/var/lib/apt/lists/partial$ ls
security.ubuntu.com_ubuntu_dists_trusty-security_Release
security.ubuntu.com_ubuntu_dists_trusty-security_Release.gpg
us.archive.ubuntu.com_ubuntu_dists_trusty-backports_Release.gpg
us.archive.ubuntu.com_ubuntu_dists_trusty_Release.gpg
us.archive.ubuntu.com_ubuntu_dists_trusty-updates_Release.gpg
webmin.mirror.somersettechsolutions.co.uk_repository_dists_sarge_Release
webmin.mirror.somersettechsolutions.co.uk_repository_dists_sarge_Release.gpg

I've tried deleting this whole directory to see what gets reloaded, and these files above keep getting reloaded, and when I compare these with another system running the same server, I get very similar files listed, but with a regenerate at the end of the file.

I cant' seem to figure out why I can't update this one system, and if anyone can help me figure this out, that would be totally awesome.....

On a side note, this system had to be step upgraded from 8.04 to 14.04 due to being an older system (Dell poweredge 600) with little video resources available. When I look at the /etc/apt/sources.list file, I get the following. Not sure if the problem is in here or not, but throwing it out there just in case.........

# deb cdrom:[Ubuntu-Server 12.04.4 LTS _Precise Pangolin_ - Release amd64 (20140204)]/ dists/precise/main/binary-i386/
# deb cdrom:[Ubuntu-Server 12.04.4 LTS _Precise Pangolin_ - Release amd64 (20140204)]/ dists/precise/restricted/binary-i386/
# deb cdrom:[Ubuntu-Server 12.04.4 LTS _Precise Pangolin_ - Release amd64 (20140204)]/ precise main restricted

# deb cdrom:[Ubuntu-Server 12.04.4 LTS _Precise Pangolin_ - Release amd64 (20140204)]/ dists/precise/main/binary-i386/
# deb cdrom:[Ubuntu-Server 12.04.4 LTS _Precise Pangolin_ - Release amd64 (20140204)]/ dists/precise/restricted/binary-i386/
# deb cdrom:[Ubuntu-Server 12.04.4 LTS _Precise Pangolin_ - Release amd64 (20140204)]/ precise main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty universe
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ trusty multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty multiverse
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu trusty-security main restricted
deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted
deb http://security.ubuntu.com/ubuntu trusty-security universe
deb-src http://security.ubuntu.com/ubuntu trusty-security universe
deb http://security.ubuntu.com/ubuntu trusty-security multiverse
deb-src http://security.ubuntu.com/ubuntu trusty-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu precise partner
# deb-src http://archive.canonical.com/ubuntu precise partner

## Uncomment the following two lines to add software from Ubuntu's
## 'extras' repository.
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://extras.ubuntu.com/ubuntu precise main
# deb-src http://extras.ubuntu.com/ubuntu precise main
deb http://download.webmin.com/download/respository sarge contrib
deb http://webmin.mirror.somersettechsol....uk/repository sarge contrib

Thank you for any help / suggestions on how to fix this one.....

Mikey
 
Old 11-11-2014, 03:25 PM   #2
AzizHan
LQ Newbie
 
Registered: Oct 2014
Location: Egypt
Distribution: Debian
Posts: 11

Rep: Reputation: Disabled
try the following, hopefully it will fix it:

sudo apt-get clean
sudo mv /var/lib/apt/lists /tmp
sudo mkdir -p /var/lib/apt/lists/partial
sudo apt-get clean
sudo apt-get update

you can check: https://help.ubuntu.com/community/AptGet/Howto
for more information about the limitation in case of slow internet (maintainance commnds no. 7)

Last edited by AzizHan; 11-11-2014 at 03:31 PM. Reason: more information
 
Old 11-11-2014, 03:45 PM   #3
dakoris73
Member
 
Registered: Aug 2008
Posts: 43

Original Poster
Rep: Reputation: 0
AZIZHAN,

Thank you so very muchly for this information. I tried your suggestion and it worked and I'm once again able to do the updates I needed on this server.

Thanks again.
Mikey
 
Old 11-11-2014, 10:35 PM   #4
AzizHan
LQ Newbie
 
Registered: Oct 2014
Location: Egypt
Distribution: Debian
Posts: 11

Rep: Reputation: Disabled
Mikey, You're most welcome.
 
Old 04-13-2016, 11:16 AM   #5
CGDevops
LQ Newbie
 
Registered: Apr 2016
Posts: 1

Rep: Reputation: Disabled
Giving a 2 year later thank you. I couldn't figure this out for the life of me.
 
  


Reply



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: Upgrade ubuntu 14.04 LTS to Ubuntu 14.10 Desktop/Server LXer Syndicated Linux News 0 11-07-2014 12:12 AM
LXer: How to Upgrade Ubuntu Server 12.04 to Ubuntu Server 14.04 LTS LXer Syndicated Linux News 0 06-17-2014 04:20 AM
LXer: How To Upgrade Ubuntu 11.10 To 12.04 LTS (Precise Pangolin) (Desktop & Server) LXer Syndicated Linux News 0 04-27-2012 10:50 AM
LXer: Ubuntu LTS Server upgrade - really difficult? LXer Syndicated Linux News 0 08-21-2010 04:40 AM
No enough space error when trying upgrade ubuntu from 8.04 lts to 10.04 lts flik shen Ubuntu 5 06-15-2010 12:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:13 PM.

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