U.S. import prices rose for a second straight month in October as the cost of petroleum and motor vehicles increased.