trying to install ubuntu with usb, malformed lines, can't rename

Asked by aaron

ive been trying to install for over a day, ive changed this source list file and seemed to make a little progress but still crashes.. i think its something to do with a "dpkg" heres some notes that i kept..

I had to comment out some deformed lines that were in the addresses (for the sources) online somewhere, so i doubt they're the exact ones i needed. Ive seen postsonline that say, do Apt-get update and apt-get upgrade.. which ive done with errors.. still no dice

E:Malformed line 2 in source list /etc/apt/sources.list (type), E:The list of sources could not be read., E:Problem renaming the file /var/cache/apt/pkgcache.bin.gI1GKD to /var/cache/apt/pkgcache.bin - rename (5: Input/output error), E:The package lists or status file could not be parsed or opened.

original

deb cdrom:[Ubuntu 14.04.3 LTS _Trusty Tahr_ - Beta amd64 (20150805)]/ trusty main restricted
eFiles" use="required" />
                    <xs:attribute name="RootNamespace" />
                </xs:extension>
            </xs:complexContent>
        </xs:complexType>
    </xs:element>
    <xs:element name="CreateProperty" substitutionGroup="msb:Task">
        <xs:complexType>
            <xs:complexContent>
     The problem cannot be reported:
so i added text manually to the file then this error

E:Problem renaming the file /var/cache/apt/pkgcache.bin.4x3zug to /var/cache/apt/pkgcache.bin - rename (5: Input/output error), W:You may want to run apt-get update to correct these problems

deb cdrom:[Ubuntu 14.04.3 LTS _Trusty Tahr_ - Beta amd64 (20150805)]/ trusty main restricted
deb http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse

#deb http://archive.canonical.com/ubuntu partner
#deb-src http://archive.canonical.com/ubuntu partnerdeb http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse

ok, im editing the question, i had a lot of trouble researching due to the firewall in china, i also think i have the correct source list now.. maybe i can install
ok.. i was wrong.. still failed with this
E:Problem renaming the file /var/cache/apt/srcpkgcache.bin.c4Neer to /var/cache/apt/srcpkgcache.bin - rename (5: Input/output error), E:Problem renaming the file /var/cache/apt/pkgcache.bin.TQ0mun to /var/cache/apt/pkgcache.bin - rename (5: Input/output error), E:The package lists or status file could not be parsed or opened.

Sorry, i think it may be too long for copy and paste,I tried piping it to a file called update on my desktop using ubuntu@ubuntu:~$ sudo apt-get update >~/Desktop/update
but my linux skill is too low

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#1

Did you MD5 test the ISO you downloaded?
Why are you using the beta ISO? Trusty has been out for over 2 years now..... Why don't you use the release candidate ISO:

http://releases.ubuntu.com/trusty/ubuntu-14.04.4-desktop-amd64.iso
MD5: 807fa1f246b719d28d0b362fd2f31855

Revision history for this message
Manfred Hampl (m-hampl) said :
#2

1. errors containing the string "5: Input/output error" often indicate a disk or file system problem.
I suggest that you boot into a live system from DVD or USB stick and perform a file system check on your root partition.

2. Apparently there is some nonsense in your sources.list configuration file.
We need some additional information before we can give advice (the output that you provided so far is somewhat contradictory, not clearly stating the Ubuntu release you are running).

What is the output of the following commands (to be executed in a terminal window):

uname -a
lsb_release -crid
cat -n /etc/apt/sources.list

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

1. With respect to the disk or file system problems I was not referring to bad blocks, but to a possible inconsistency in the file system structure (e.g. files not listed in any directory, or directory entries pointing to non-existent files).

2. In the listing of your sources.list file the first 27 lines are missing. These usually are the crucial ones, so please provide them.

3. Your question text is a bit misleading. What do you want to do by "install ubuntu"? I assume that you already have a bootable Ubuntu installation on your hard disk.

What output do you now get for the command

sudo apt-get update

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#8

Did you MD5 test the ISO you downloaded? I have given the MD5sum of a good image.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#10

If you didn't MD5 test the ISO, how do you know it is complete and error free?

https://help.ubuntu.com/community/HowToMD5SUM

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#11

I suggest you redownload the ISO using the link I gave and MD5 test it. Transfer the data to your USB as normal.

Revision history for this message
Manfred Hampl (m-hampl) said :
#12

I have some problems to understand what you are doing.
It does not make sense to change the sources.list file before having the Ubuntu system installed.

Revision history for this message
aaron (themightyspringwater) said :
#13

ok, i didnt know that, i havent tried to install for a long time and there were problems with the source list apparently, I assumed that during the install the system was trying to connect and get more files.. but couldnt because the source list was not configured for China. Of course i thought, this is crazy, why are there sufficient source files in the .iso to complete an installation.. I didnt think to do a checksum, nor have i ever, 99 % of all downloads that i do come through intact.. I hadn't researched thoroughly when I chose the trusty (in my case haha) .iso ..I just searched for the most current stable release and as led to some official link and downloaded it.. but I think i should try xenial because that seems to be the build I was after and may not have the trouble with partitoned drives that is a known issue with trusty..according to what I recently read.. I think maybe that could be the issue..

Revision history for this message
aaron (themightyspringwater) said :
#14

Sorry , I meant to say " Of course i thought, this is crazy, why AREN'T there sufficient source files in the .iso to complete an installation?!!. " but as you seem to be pointing out, working with that file befor installation.. is unneccesary, my problem lies elsewhere.

Revision history for this message
Manfred Hampl (m-hampl) said :
#15

Before we can give any further advice, please clarify:
Do you already have a Ubuntu system installed, or are you still working with the installer?

Revision history for this message
Manfred Hampl (m-hampl) said :
#16

The installer can work even without network connection.
Only adding additional programs (packages) works reasonable only with a working connection to a repository server.

Revision history for this message
aaron (themightyspringwater) said :
#17

ok, i downloaded a different iso, xenial.. and even a different trusty, no problems.. it was a faulty iso image.. thanks so much..

Revision history for this message
aaron (themightyspringwater) said :
#18

Thanks actionparsnip, that solved my question.